Example #1
0
 /**
  * Set an option
  * 
  * @param string $name name of the option
  * @param mixed $value value of the option
  */
 public function setOption($name, $value)
 {
     if (is_string($name)) {
         if (array_key_exists($name, $this->_options)) {
             // This is a Core option
             parent::setOptions($name, $value);
             return;
         }
         if (array_key_exists($name, $this->_specificOptions)) {
             // This a specic option of this frontend
             $this->_specificOptions[$name] = $value;
             return;
         }
     }
     Zend_Cache::throwException("Incorrect option name : {$name}");
 }