コード例 #1
0
ファイル: Static.php プロジェクト: jasmun/Noco100
 /**
  * Interceptor child method to handle the case where an Inner
  * Cache object is being set since it's not supported by the
  * standard backend interface
  *
  * @param  string $name
  * @param  mixed $value
  * @return IfwPsn_Vendor_Zend_Cache_Backend_Static
  */
 public function setOption($name, $value)
 {
     if ($name == 'tag_cache') {
         $this->setInnerCache($value);
     } else {
         // See #ZF-12047 and #GH-91
         if ($name == 'cache_file_umask') {
             trigger_error("'cache_file_umask' is deprecated -> please use 'cache_file_perm' instead", E_USER_NOTICE);
             $name = 'cache_file_perm';
         }
         if ($name == 'cache_directory_umask') {
             trigger_error("'cache_directory_umask' is deprecated -> please use 'cache_directory_perm' instead", E_USER_NOTICE);
             $name = 'cache_directory_perm';
         }
         parent::setOption($name, $value);
     }
     return $this;
 }