Esempio n. 1
0
 /**
  * @return Enlight_Config
  */
 public function write()
 {
     if (isset($this->_adapter)) {
         $this->_adapter->write($this);
     }
     return $this;
 }
Esempio n. 2
0
 /**
  * Sets the options from an array.
  *
  * @param array $options
  * @return Enlight_Config_Adapter
  */
 public function setOptions(array $options)
 {
     foreach ($options as $key => $option) {
         switch ($key) {
             case 'exclusiveLock':
             case 'skipExtends':
                 $this->{'_' . $key} = (bool) $option;
                 break;
             case 'configDir':
                 $this->{'_' . $key} = (array) $option;
                 break;
             case 'configType':
                 $this->{'_' . $key} = (string) $option;
                 break;
             default:
                 break;
         }
     }
     return parent::setOptions($options);
 }
Esempio n. 3
0
 /**
  * Sets the options of an array.
  *
  * @param       array $options
  * @return      Enlight_Config_Adapter
  */
 public function setOptions(array $options)
 {
     foreach ($options as $key => $option) {
         switch ($key) {
             case 'nameColumn':
             case 'valueColumn':
             case 'sectionColumn':
             case 'createdColumn':
             case 'updatedColumn':
                 $this->{'_' . $key} = (string) $option;
                 break;
             case 'automaticSerialization':
                 $this->{'_' . $key} = (bool) $option;
                 break;
             case 'db':
                 $this->{'_' . $key} = $option;
                 break;
             default:
                 break;
         }
     }
     return parent::setOptions($options);
 }
Esempio n. 4
0
 /**
  * @return Enlight_Config
  */
 public function write()
 {
     $this->_adapter->write($this);
     return $this;
 }