'ParserClearState': called at the end of Parser::clearState()
$parser: Parser object being cleared
+'ParserCloned': called when the parser is cloned
+$parser: Newly-cloned Parser object
+
'ParserFirstCallInit': called when the parser initialises for the first time
&$parser: Parser object being cleared
}
}
+ /**
+ * Allow extensions to clean up when the parser is cloned
+ */
+ function __clone() {
+ wfRunHooks( 'ParserCloned', array( $this ) );
+ }
+
/**
* Do various kinds of initialisation on the first call of the parser
*/