コード例 #1
0
 /**
  * Singleton method
  *
  * @return oxSeoEncoderManufacturer
  */
 public static function getInstance()
 {
     if (defined('OXID_PHP_UNIT')) {
         self::$_instance = modInstances::getMod(__CLASS__);
     }
     if (!self::$_instance) {
         self::$_instance = oxNew("oxSeoEncoderManufacturer");
         if (defined('OXID_PHP_UNIT')) {
             modInstances::addMod(__CLASS__, self::$_instance);
         }
     }
     if (defined('OXID_PHP_UNIT')) {
         // resetting cache
         self::$_instance->_aSeoCache = array();
     }
     return self::$_instance;
 }