MediaWiki
1.34.0
TitleFormatter.php
Go to the documentation of this file.
1
<?php
23
use
MediaWiki\Linker\LinkTarget
;
24
34
interface
TitleFormatter
{
48
public
function
formatTitle
( $namespace, $text, $fragment =
''
, $interwiki =
''
);
49
59
public
function
getText
(
LinkTarget
$title
);
60
68
public
function
getPrefixedText
(
LinkTarget
$title
);
69
80
public
function
getPrefixedDBkey
(
LinkTarget
$target );
81
89
public
function
getFullText
(
LinkTarget
$title
);
90
103
public
function
getNamespaceName
( $namespace, $text );
104
}
TitleFormatter\getPrefixedText
getPrefixedText(LinkTarget $title)
Returns the title formatted for display, including the namespace name.
TitleFormatter\getNamespaceName
getNamespaceName( $namespace, $text)
Returns the name of the namespace for the given title.
$title
$title
Definition:
testCompression.php:34
TitleFormatter\getPrefixedDBkey
getPrefixedDBkey(LinkTarget $target)
Return the title in prefixed database key form, with interwiki and namespace.
TitleFormatter\getFullText
getFullText(LinkTarget $title)
Returns the title formatted for display, with namespace and fragment.
TitleFormatter
A title formatter service for MediaWiki.
Definition:
TitleFormatter.php:34
TitleFormatter\getText
getText(LinkTarget $title)
Returns the title text formatted for display, without namespace of fragment.
TitleFormatter\formatTitle
formatTitle( $namespace, $text, $fragment='', $interwiki='')
Returns the title formatted for display.
MediaWiki\Linker\LinkTarget
Definition:
LinkTarget.php:26
includes
title
TitleFormatter.php
Generated on Thu Dec 19 2019 14:55:03 for MediaWiki by
1.8.16