Ejemplo n.º 1
0
Archivo: File.php Proyecto: rexmac/zf2
 /**
  * Public frontend to set an option
  *
  * Just a wrapper to get a specific behaviour for master_file
  *
  * @param  string $name  Name of the option
  * @param  mixed  $value Value of the option
  * @throws \Zend\Cache\Exception
  * @return void
  */
 public function setOption($name, $value)
 {
     if ($name == 'master_file') {
         $this->setMasterFile($value);
     } else {
         if ($name == 'master_files') {
             $this->setMasterFiles($value);
         } else {
             parent::setOption($name, $value);
         }
     }
 }
Ejemplo n.º 2
0
 /**
  * Public frontend to set an option
  *
  * Just a wrapper to get a specific behaviour for cached_entity
  *
  * @param  string $name  Name of the option
  * @param  mixed  $value Value of the option
  * @throws \Zend\Cache\Exception
  * @return void
  */
 public function setOption($name, $value)
 {
     if ($name == 'cached_entity') {
         $this->setCachedEntity($value);
     } else {
         parent::setOption($name, $value);
     }
 }