MediaWiki
1.23.2
|
Represents a link rendering service for MediaWiki. More...
Public Member Functions | |
getPageUrl (TitleValue $page, $params=array()) | |
Returns the URL for the given page. More... | |
renderHtmlLink (TitleValue $page, $text=null) | |
Returns an HTML link to the given page, using the given surface text. More... | |
renderWikitextLink (TitleValue $page, $text=null) | |
Returns a wikitext link to the given page, using the given surface text. More... | |
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.