[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/title/ -> PageLinkRenderer.php (summary)

Represents a link rendering service for %MediaWiki. 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: 67 lines (2 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

PageLinkRenderer:: (3 methods):
  getPageUrl()
  renderHtmlLink()
  renderWikitextLink()


Interface: PageLinkRenderer  - X-Ref

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.

getPageUrl( TitleValue $page, $params = array()   X-Ref
Returns the URL for the given page.

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