MediaWiki master
TitleParser.php
Go to the documentation of this file.
1<?php
24namespace MediaWiki\Title;
25
35interface TitleParser {
47 public function parseTitle( $text, $defaultNamespace = NS_MAIN );
48
59 public function makeTitleValueSafe( $namespace, $text, $fragment = '', $interwiki = '' );
60}
61
63class_alias( TitleParser::class, 'TitleParser' );
const NS_MAIN
Definition Defines.php:65
A title parser service for MediaWiki.
makeTitleValueSafe( $namespace, $text, $fragment='', $interwiki='')
Given a namespace and title, return a TitleValue if valid, or null if invalid.
parseTitle( $text, $defaultNamespace=NS_MAIN)
Parses the given text and constructs a TitleValue.