_loggerSanity example


        foreach ($directives as $name => $value) {
            if (!is_string($name)) {
                Zend_Cache::throwException("Incorrect option name : $name");
            }
            $name = strtolower($name);
            if (array_key_exists($name$this->_directives)) {
                $this->_directives[$name] = $value;
            }
        }

        $this->_loggerSanity();
    }

    /** * Set an option * * @param string $name * @param mixed $value * * @throws Zend_Cache_Exception */
    public function setOption($name$value)
    {

        if ($options instanceof Zend_Config) {
            $options = $options->toArray();
        }
        if (!is_array($options)) {
            Zend_Cache::throwException('Options passed were not an array'
            . ' or Zend_Config instance.');
        }
        foreach ($options as $name => $value) {
            $this->setOption($name$value);
        }
        $this->_loggerSanity();
    }

    /** * Set options using an instance of type Zend_Config * * @param Zend_Config $config * * @return Zend_Cache_Core */
    public function setConfig(Zend_Config $config)
    {
        
Home | Imprint | This part of the site doesn't use cookies.