/** * Do various kinds of initialisation on the first call of the parser */ function firstCallInit() { parent::__construct(); if (!$this->mFirstCall) { return; } $this->mFirstCall = false; wfProfileIn(__METHOD__); $this->setHook('pre', array($this, 'renderPreTag')); CoreParserFunctions::register($this); CoreLinkFunctions::register($this); $this->initialiseVariables(); wfRunHooks('ParserFirstCallInit', array(&$this)); wfProfileOut(__METHOD__); }
/** * 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__); }
/** * 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)); }