/** * 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); }
/** * 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); }