コード例 #1
0
ファイル: AO.php プロジェクト: ronseigel/agent-ohm
 /**
  * Varien Objects Cache
  *
  * @param string $key optional, if specified will load this key
  * @return Varien_Object_Cache
  */
 public static function objects($key = null)
 {
     if (!self::$_objects) {
         self::$_objects = new Varien_Object_Cache();
     }
     if (is_null($key)) {
         return self::$_objects;
     } else {
         return self::$_objects->load($key);
     }
 }