MediaWiki
REL1_20
|
Maintenance script to parse some wikitext. More...
Public Member Functions | |
__construct () | |
Default constructor. | |
execute () | |
Do the actual work. | |
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.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Maintenance.
Definition at line 62 of file parse.php.
References Maintenance\addArg(), and Maintenance\addOption().
Do the actual work.
All child classes will need to implement this
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().