/** * 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 'set': $this->setSet($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 'query': if (!is_array($value)) { $value = array(array('query' => $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; } } }