MediaWiki
REL1_30
TitleFormatter.php
Go to the documentation of this file.
1
<?php
24
use
MediaWiki\Linker\LinkTarget
;
25
35
interface
TitleFormatter
{
49
public
function
formatTitle
( $namespace, $text, $fragment =
''
, $interwiki =
''
);
50
60
public
function
getText
(
LinkTarget
$title );
61
69
public
function
getPrefixedText
(
LinkTarget
$title );
70
81
public
function
getPrefixedDBkey
(
LinkTarget
$target );
82
90
public
function
getFullText
(
LinkTarget
$title );
91
104
public
function
getNamespaceName
( $namespace, $text );
105
}
MediaWiki\Linker\LinkTarget
Definition
LinkTarget.php:27
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\getFullText
getFullText(LinkTarget $title)
Returns the title formatted for display, with namespace and fragment.
TitleFormatter\getPrefixedText
getPrefixedText(LinkTarget $title)
Returns the title formatted for display, including the namespace name.
TitleFormatter\getPrefixedDBkey
getPrefixedDBkey(LinkTarget $target)
Return the title in prefixed database key form, with interwiki and namespace.
TitleFormatter\getText
getText(LinkTarget $title)
Returns the title text formatted for display, without namespace of fragment.
includes
title
TitleFormatter.php
Generated on Mon Nov 25 2024 15:43:01 for MediaWiki by
1.10.0