MediaWiki
REL1_24
|
Represents a link rendering service for MediaWiki. More...
Public Member Functions | |
getPageUrl (TitleValue $page, $params=array()) | |
Returns the URL for the given page. | |
renderHtmlLink (TitleValue $page, $text=null) | |
Returns an HTML link to the given page, using the given surface text. | |
renderWikitextLink (TitleValue $page, $text=null) | |
Returns a wikitext link to the given page, using the given surface text. |
Represents a link rendering service for MediaWiki.
This is designed to encapsulate the knowledge about how page titles map to URLs, and how links are encoded in a given output format.
Definition at line 33 of file PageLinkRenderer.php.
PageLinkRenderer::getPageUrl | ( | TitleValue $ | page, |
$ | params = array() |
||
) |
Returns the URL for the given page.
TitleValue | $page | The link's target |
array | $params | Any additional URL parameters. |
Implemented in MediaWikiPageLinkRenderer.
PageLinkRenderer::renderHtmlLink | ( | TitleValue $ | page, |
$ | text = null |
||
) |
Returns an HTML link to the given page, using the given surface text.
TitleValue | $page | The link's target |
string | $text | The link's surface text (will be derived from $page if not given). |
Implemented in MediaWikiPageLinkRenderer.
PageLinkRenderer::renderWikitextLink | ( | TitleValue $ | page, |
$ | text = null |
||
) |
Returns a wikitext link to the given page, using the given surface text.
TitleValue | $page | The link's target |
string | $text | The link's surface text (will be derived from $page if not given). |
Implemented in MediaWikiPageLinkRenderer.