MediaWiki REL1_35
TitleParser.php
Go to the documentation of this file.
1<?php
33interface TitleParser {
45 public function parseTitle( $text, $defaultNamespace = NS_MAIN );
46
57 public function makeTitleValueSafe( $namespace, $text, $fragment = '', $interwiki = '' );
58}
const NS_MAIN
Definition Defines.php:70
A title parser service for MediaWiki.
parseTitle( $text, $defaultNamespace=NS_MAIN)
Parses the given text and constructs a TitleValue.
makeTitleValueSafe( $namespace, $text, $fragment='', $interwiki='')
Given a namespace and title, return a TitleValue if valid, or null if invalid.