[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/title/ -> TitleParser.php (summary)

A title parser service for %MediaWiki. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Author: Daniel Kinzler
License: GPL 2+
File Size: 47 lines (2 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

TitleParser:: (1 method):
  parseTitle()


Interface: TitleParser  - X-Ref

A title parser service for %MediaWiki.

This is designed to encapsulate knowledge about conventions for the title
forms to be used in the database, in urls, in wikitext, etc.

parseTitle( $text, $defaultNamespace )   X-Ref
Parses the given text and constructs a TitleValue. Normalization
is applied according to the rules appropriate for the form specified by $form.

param: string $text The text to parse
param: int $defaultNamespace Namespace to assume per default (usually NS_MAIN)
return: TitleValue



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1