protected function _init() { if (count($this->_settings['component']) > 1) { if (isset($this->_settings['box'])) { throw new Kwf_Exception("How would you put multiple components into one box?"); } } parent::_init(); }
protected function _init() { if (is_array($this->_settings['component'])) { if (isset($this->_settings['box'])) { throw new Kwf_Exception("How would you put multiple components into one box?"); } } else { $this->_settings['component'] = array($this->_settings['generator'] => $this->_settings['component']); } parent::_init(); }
protected function _init() { if (!is_array($this->_settings['component']) || $this->_settings['component'] < 2) { throw new Kwf_Exception("You need at least two components for a Box_StaticSelect generator"); } if (!isset($this->_settings['model'])) { $this->_settings['model'] = 'Kwf_Component_Generator_Box_StaticSelect_Model'; } if (!isset($this->_settings['boxName'])) { $this->_settings['boxName'] = null; } parent::_init(); }