/** * Create a typographer and load its configuration */ protected function _createTextParser($aCheckTagLinks) { $sParser = C::Get('module.text.parser'); if ($sParser && strtolower($sParser) == 'qevix') { $this->oTextParser = new Qevix(); $this->_loadTextParserConfig('qevix'); foreach ($aCheckTagLinks as $sTag => $aParams) { $this->oTextParser->cfgSetTagBuildCallback($sTag, array($this, 'CallbackCheckLinks')); } } else { $this->oTextParser = new Jevix(); $this->_loadTextParserConfig(); foreach ($aCheckTagLinks as $sTag => $aParams) { $this->oTextParser->cfgSetTagCallbackFull($sTag, array($this, 'CallbackCheckLinks')); } } }