MediaWiki  REL1_22
CLIParser Class Reference

Maintenance script to parse some wikitext. More...

Inheritance diagram for CLIParser:
Collaboration diagram for CLIParser:

List of all members.

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

Detailed Description

Maintenance script to parse some wikitext.

Definition at line 59 of file parse.php.


Constructor & Destructor Documentation

Reimplemented from Maintenance.

Definition at line 62 of file parse.php.

References Maintenance\addArg(), and Maintenance\addOption().


Member Function Documentation

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>

Returns:
Title object

Definition at line 112 of file parse.php.

References $title, Maintenance\getOption(), and Title\newFromText().

Referenced by parse().

CLIParser::initParser ( ) [protected]

Definition at line 99 of file parse.php.

References global.

Referenced by execute().

CLIParser::parse ( wikitext) [protected]
Parameters:
string$wikitextWikitext to parse
Returns:
ParserOutput

Definition at line 124 of file parse.php.

References getTitle().

Referenced by render().

CLIParser::render ( wikitext)
Parameters:
string$wikitextWikitext to get rendered
Returns:
string HTML Rendering

Definition at line 78 of file parse.php.

References parse().

Referenced by execute().

CLIParser::Wikitext ( ) [protected]

Get wikitext from a the file passed as argument or STDIN.

Returns:
string Wikitext

Definition at line 86 of file parse.php.

References Maintenance\error(), Maintenance\getArg(), and wfIsWindows().


Member Data Documentation

CLIParser::$parser [protected]

Definition at line 60 of file parse.php.


The documentation for this class was generated from the following file: