MediaWiki
REL1_41
TitleParser.php
Go to the documentation of this file.
1
<?php
24
namespace
MediaWiki\Title
;
25
35
interface
TitleParser
{
47
public
function
parseTitle
( $text, $defaultNamespace =
NS_MAIN
);
48
59
public
function
makeTitleValueSafe
( $namespace, $text, $fragment =
''
, $interwiki =
''
);
60
}
61
66
class_alias( TitleParser::class,
'TitleParser'
);
NS_MAIN
const NS_MAIN
Definition
Defines.php:64
MediaWiki\Title\TitleParser
A title parser service for MediaWiki.
Definition
TitleParser.php:35
MediaWiki\Title\TitleParser\makeTitleValueSafe
makeTitleValueSafe( $namespace, $text, $fragment='', $interwiki='')
Given a namespace and title, return a TitleValue if valid, or null if invalid.
MediaWiki\Title\TitleParser\parseTitle
parseTitle( $text, $defaultNamespace=NS_MAIN)
Parses the given text and constructs a TitleValue.
MediaWiki\Title
Definition
ForeignTitle.php:24
includes
title
TitleParser.php
Generated on Wed Nov 27 2024 07:25:53 for MediaWiki by
1.10.0