MediaWiki  master
TitleFormatter.php
Go to the documentation of this file.
1 <?php
25 
35 interface TitleFormatter {
49  public function formatTitle( $namespace, $text, $fragment = '', $interwiki = '' );
50 
58  public function getText( $title );
59 
67  public function getPrefixedText( $title );
68 
79  public function getPrefixedDBkey( $target );
80 
88  public function getFullText( $title );
89 
102  public function getNamespaceName( $namespace, $text );
103 }
TitleFormatter\getPrefixedText
getPrefixedText( $title)
Returns the title formatted for display, including the namespace name.
TitleFormatter\getText
getText( $title)
Returns the title text formatted for display, without namespace or fragment.
Page\PageReference
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.
Definition: PageReference.php:49
TitleFormatter\getNamespaceName
getNamespaceName( $namespace, $text)
Returns the name of the namespace for the given title.
$title
$title
Definition: testCompression.php:38
TitleFormatter\getFullText
getFullText( $title)
Returns the title formatted for display, with namespace and fragment.
TitleFormatter\getPrefixedDBkey
getPrefixedDBkey( $target)
Return the title in prefixed database key form, with interwiki and namespace.
TitleFormatter
A title formatter service for MediaWiki.
Definition: TitleFormatter.php:35
TitleFormatter\formatTitle
formatTitle( $namespace, $text, $fragment='', $interwiki='')
Returns the title formatted for display.
MediaWiki\Linker\LinkTarget
Definition: LinkTarget.php:26