[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/maintenance/ -> parse.php (summary)

Parse some wikitext. Wikitext can be given by stdin or using a file. The wikitext will be parsed using 'CLIParser' as a title. This can be overriden with --title option.

Author: Antoine Musso
License: GNU General Public License 2.0 or later
File Size: 140 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 maintenance/Maintenance.php

Defines 1 class

CLIParser:: (7 methods):
  __construct()
  execute()
  render()
  Wikitext()
  initParser()
  getTitle()
  parse()


Class: CLIParser  - X-Ref

Maintenance script to parse some wikitext.

__construct()   X-Ref
No description

execute()   X-Ref
No description

render( $wikitext )   X-Ref

param: string $wikitext Wikitext to get rendered
return: string HTML Rendering

Wikitext()   X-Ref
Get wikitext from a the file passed as argument or STDIN

return: string Wikitext

initParser()   X-Ref
No description

getTitle()   X-Ref
Title object to use for CLI parsing.
Default title is 'CLIParser', it can be overriden with the option
--title <Your:Title>

return: Title

parse( $wikitext )   X-Ref

param: string $wikitext Wikitext to parse
return: ParserOutput



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