/** * Initialize options * * Several options need some extra checks or setup work, for these options * the setters are called. * * @return void */ protected function _init() { parent::_init(); foreach ($this->_options as $name => $value) { switch ($name) { case 'query': if (!is_array($value)) { $value = array($value); } $this->addQueries($value); break; } } }
/** * Initialize options * * Several options need some extra checks or setup work, for these options * the setters are called. * * @return void */ protected function _init() { parent::_init(); foreach ($this->_options as $name => $value) { switch ($name) { case 'include': $this->setInclude($value); break; case 'other': $this->setOther($value); break; } } }