MediaWiki
REL1_40
TitleFormatter.php
Go to the documentation of this file.
1
<?php
23
use
MediaWiki\Linker\LinkTarget
;
24
use
MediaWiki\Page\PageReference
;
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
}
MediaWiki\Linker\LinkTarget
Definition
LinkTarget.php:26
MediaWiki\Page\PageReference
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.
Definition
PageReference.php:49
TitleFormatter
A title formatter service for MediaWiki.
Definition
TitleFormatter.php:35
TitleFormatter\getNamespaceName
getNamespaceName( $namespace, $text)
Returns the name of the namespace for the given title.
TitleFormatter\formatTitle
formatTitle( $namespace, $text, $fragment='', $interwiki='')
Returns the title formatted for display.
TitleFormatter\getPrefixedText
getPrefixedText( $title)
Returns the title formatted for display, including the namespace name.
TitleFormatter\getPrefixedDBkey
getPrefixedDBkey( $target)
Return the title in prefixed database key form, with interwiki and namespace.
TitleFormatter\getFullText
getFullText( $title)
Returns the title formatted for display, with namespace and fragment.
TitleFormatter\getText
getText( $title)
Returns the title text formatted for display, without namespace or fragment.
$title
$title
Definition
testCompression.php:39
includes
title
TitleFormatter.php
Generated on Thu Jun 27 2024 14:04:28 for MediaWiki by
1.10.0