MediaWiki  REL1_24
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 74 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

Definition at line 118 of file parse.php.

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

Referenced by parse().

CLIParser::initParser ( ) [protected]

Definition at line 105 of file parse.php.

References global.

Referenced by execute().

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

Definition at line 130 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 83 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 91 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: