[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
A service for generating links from page titles This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Author: | Daniel Kinzler |
License: | GPL 2+ |
File Size: | 131 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 1 time |
Includes or requires: | 0 files |
MediaWikiPageLinkRenderer:: (4 methods):
__construct()
getPageUrl()
renderHtmlLink()
renderWikitextLink()
Class: MediaWikiPageLinkRenderer - X-Ref
A service for generating links from page titles.__construct( TitleFormatter $formatter, $baseUrl = null ) X-Ref |
param: TitleFormatter $formatter Formatter for generating the target title string param: string $baseUrl (currently unused, pending refactoring of Linker). |
getPageUrl( TitleValue $page, $params = array() X-Ref |
Returns the (partial) URL for the given page (including any section identifier). param: TitleValue $page The link's target param: array $params Any additional URL parameters. return: string |
renderHtmlLink( TitleValue $page, $text = null ) X-Ref |
Returns an HTML link to the given page, using the given surface text. param: TitleValue $page The link's target param: string $text The link's surface text (will be derived from $page if not given). return: string |
renderWikitextLink( TitleValue $page, $text = null ) X-Ref |
Returns a wikitext link to the given page, using the given surface text. param: TitleValue $page The link's target param: string $text The link's surface text (will be derived from $page if not given). return: string |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |