/** * Do various kinds of initialisation on the first call of the parser */ public function firstCallInit() { if (!$this->mFirstCall) { return; } $this->mFirstCall = false; CoreParserFunctions::register($this); CoreTagHooks::register($this); $this->initialiseVariables(); Hooks::run('ParserFirstCallInit', array(&$this)); }
/** * Do various kinds of initialisation on the first call of the parser */ function firstCallInit() { if (!$this->mFirstCall) { return; } $this->mFirstCall = false; wfProfileIn(__METHOD__); CoreParserFunctions::register($this); CoreTagHooks::register($this); $this->initialiseVariables(); wfRunHooks('ParserFirstCallInit', array(&$this)); wfProfileOut(__METHOD__); }
/** * This mathod activates raw html insertion on mediawiki pages. In other * words, it enables tags <html> and </html>. */ protected function enableTagHTML() { global $wgRawHtml; global $wgParser; $wgRawHtml = true; /* * Resetting core tags to enable tag <html> * Only, from version 1.17 and above. * @{ */ if (class_exists('CoreTagHooks')) { CoreTagHooks::register($wgParser); } /* @} */ }