MediaWiki
1.42.1
TitleFormatter.php
Go to the documentation of this file.
1
<?php
24
namespace
MediaWiki\Title
;
25
26
use InvalidArgumentException;
27
use
MediaWiki\Linker\LinkTarget
;
28
use
MediaWiki\Page\PageReference
;
29
39
interface
TitleFormatter
{
53
public
function
formatTitle
( $namespace, $text, $fragment =
''
, $interwiki =
''
);
54
62
public
function
getText
( $title );
63
71
public
function
getPrefixedText
( $title );
72
83
public
function
getPrefixedDBkey
( $target );
84
92
public
function
getFullText
( $title );
93
106
public
function
getNamespaceName
( $namespace, $text );
107
}
108
110
class_alias( TitleFormatter::class,
'TitleFormatter'
);
MediaWiki\Linker\LinkTarget
Represents the target of a wiki link.
Definition
LinkTarget.php:32
MediaWiki\Page\PageReference
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.
Definition
PageReference.php:51
MediaWiki\Title\TitleFormatter
A title formatter service for MediaWiki.
Definition
TitleFormatter.php:39
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 Thu Jun 27 2024 16:01:32 for MediaWiki by
1.10.0