/** * Singleton method * * @return oxSeoEncoderContent */ public static function getInstance() { if (defined('OXID_PHP_UNIT')) { self::$_instance = modInstances::getMod(__CLASS__); } if (!self::$_instance) { self::$_instance = oxNew("oxSeoEncoderContent"); if (defined('OXID_PHP_UNIT')) { modInstances::addMod(__CLASS__, self::$_instance); } } if (defined('OXID_PHP_UNIT')) { // resetting cache self::$_instance->_aSeoCache = array(); } return self::$_instance; }
/** * Returns current object type seo encoder object * * @return oxSeoEncoderContent */ protected function _getEncoder() { return oxSeoEncoderContent::getInstance(); }