_getTagSupportForCache example


                        break;
                    case 'cache' :
                        if ($value === null) {
                            parent::$_cache = null;
                        } else {
                            if (!$value instanceof Zend_Cache_Core) {
                                throw new Zend_Date_Exception("Instance of Zend_Cache expected");
                            }

                            parent::$_cache = $value;
                            parent::$_cacheTags = Zend_Date_DateObject::_getTagSupportForCache();
                            Zend_Locale_Data::setCache($value);
                        }
                        break;
                }
                self::$_options[$name] = $value;
            }
            else {
                throw new Zend_Date_Exception("Unknown option: $name = $value");
            }
        }
    }

    
return self::$_cache;
    }

    /** * Set a cache for Zend_Locale_Data * * @param Zend_Cache_Core $cache A cache frontend */
    public static function setCache(Zend_Cache_Core $cache)
    {
        self::$_cache = $cache;
        self::_getTagSupportForCache();
    }

    /** * Returns true when a cache is set * * @return bool */
    public static function hasCache()
    {
        if (self::$_cache !== null) {
            return true;
        }
return self::$_cache;
    }

    /** * Sets a cache for all Zend_Translate_Adapters * * @param Zend_Cache_Core $cache Cache to store to */
    public static function setCache(Zend_Cache_Core $cache)
    {
        self::$_cache = $cache;
        self::_getTagSupportForCache();
    }

    /** * Returns true when a cache is set * * @return boolean */
    public static function hasCache()
    {
        if (self::$_cache !== null) {
            return true;
        }
Home | Imprint | This part of the site doesn't use cookies.