MediaWiki
REL1_22
|
Maintenance script to parse some wikitext. More...
Public Member Functions | |
__construct () | |
execute () | |
render ($wikitext) | |
Protected Member Functions | |
getTitle () | |
Title object to use for CLI parsing. | |
initParser () | |
parse ($wikitext) | |
Wikitext () | |
Get wikitext from a the file passed as argument or STDIN. | |
Protected Attributes | |
$parser |
Maintenance script to parse some wikitext.
Reimplemented from Maintenance.
Definition at line 62 of file parse.php.
References Maintenance\addArg(), and Maintenance\addOption().
Reimplemented from Maintenance.
Definition at line 69 of file parse.php.
References initParser(), print, and render().
CLIParser::getTitle | ( | ) | [protected] |
Title object to use for CLI parsing.
Default title is 'CLIParser', it can be overriden with the option --title <Your:Title>
Definition at line 112 of file parse.php.
References $title, Maintenance\getOption(), and Title\newFromText().
Referenced by parse().
CLIParser::initParser | ( | ) | [protected] |
CLIParser::parse | ( | $ | wikitext | ) | [protected] |
string | $wikitext | Wikitext to parse |
Definition at line 124 of file parse.php.
References getTitle().
Referenced by render().
CLIParser::render | ( | $ | wikitext | ) |
CLIParser::Wikitext | ( | ) | [protected] |
Get wikitext from a the file passed as argument or STDIN.
Definition at line 86 of file parse.php.
References Maintenance\error(), Maintenance\getArg(), and wfIsWindows().