On 1/22/07, Rob Church robchur@gmail.com wrote:
On 22/01/07, Nick Jenkins nickpj@gmail.com wrote:
public function parse( $text, Title $title, array $options, $linestart = true, $clearState = true, $revid = null ) {
When did Parser::parse() take an array of options? ParserOptions is a class...or have I missed some significant restructuring?
I was only applying a mechanical transformation to a randomly selected function, based on that function's own documentation:
/** * Convert wikitext to HTML * Do not call this function recursively. * * @param string $text Text we want to parse * @param Title &$title A title object * @param array $options ^^^^^^^^^^^^^^^^^^^^^^^^^ * @param boolean $linestart * @param boolean $clearState * @param int $revid number to pass in {{REVISIONID}} * @return ParserOutput a ParserOutput */ public function parse( $text, &$title, $options, $linestart = true, $clearState = true, $revid = null ) {
See, this is why we could use type hinting. :P
Touche! :-)
All the best, Nick.