コード例 #1
0
 /**
  * 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__);
 }
コード例 #2
0
ファイル: Parser.php プロジェクト: Tarendai/spring-website
 /**
  * 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__);
 }
コード例 #3
0
ファイル: Parser.php プロジェクト: rrameshs/mediawiki
 /**
  * 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));
 }