MediaWiki
master
TitleFormatter.php
Go to the documentation of this file.
1
<?php
24
namespace
MediaWiki\Title
;
25
26
use
MediaWiki\Linker\LinkTarget
;
27
use
MediaWiki\Page\PageReference
;
28
38
interface
TitleFormatter
{
52
public
function
formatTitle
( $namespace, $text, $fragment =
''
, $interwiki =
''
);
53
61
public
function
getText
( $title );
62
70
public
function
getPrefixedText
( $title );
71
82
public
function
getPrefixedDBkey
( $target );
83
91
public
function
getFullText
( $title );
92
104
public
function
getNamespaceName
( $namespace, $text );
105
}
106
108
class_alias( TitleFormatter::class,
'TitleFormatter'
);
MediaWiki\Linker\LinkTarget
Represents the target of a wiki link.
Definition
LinkTarget.php:33
MediaWiki\Page\PageReference
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.
Definition
PageReference.php:52
MediaWiki\Title\TitleFormatter
A title formatter service for MediaWiki.
Definition
TitleFormatter.php:38
MediaWiki\Title\TitleFormatter\getNamespaceName
getNamespaceName( $namespace, $text)
Returns the name of the namespace for the given title.
MediaWiki\Title\TitleFormatter\getPrefixedText
getPrefixedText( $title)
Returns the title formatted for display, including the namespace name.
MediaWiki\Title\TitleFormatter\formatTitle
formatTitle( $namespace, $text, $fragment='', $interwiki='')
Returns the title formatted for display.
MediaWiki\Title\TitleFormatter\getFullText
getFullText( $title)
Returns the title formatted for display, with namespace and fragment.
MediaWiki\Title\TitleFormatter\getText
getText( $title)
Returns the title text formatted for display, without namespace or fragment.
MediaWiki\Title\TitleFormatter\getPrefixedDBkey
getPrefixedDBkey( $target)
Return the title in prefixed database key form, with interwiki and namespace.
MediaWiki\Title
Definition
ForeignTitle.php:24
includes
title
TitleFormatter.php
Generated on Sat Oct 5 2024 11:25:55 for MediaWiki by
1.10.0