MediaWiki REL1_40
TitleFormatter.php
Go to the documentation of this file.
1<?php
25
35interface 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}
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.
A title formatter service for MediaWiki.
getNamespaceName( $namespace, $text)
Returns the name of the namespace for the given title.
formatTitle( $namespace, $text, $fragment='', $interwiki='')
Returns the title formatted for display.
getPrefixedText( $title)
Returns the title formatted for display, including the namespace name.
getPrefixedDBkey( $target)
Return the title in prefixed database key form, with interwiki and namespace.
getFullText( $title)
Returns the title formatted for display, with namespace and fragment.
getText( $title)
Returns the title text formatted for display, without namespace or fragment.