public function init() { $class = $this->_getParam('componentClass'); if (!Kwc_Abstract::getSetting($class, 'enableStyles') || !Kwc_Abstract::getSetting($class, 'enableStylesEditor')) { throw new Kwf_Exception("Styles are disabled"); } $this->_model = Kwf_Model_Abstract::getInstance(Kwc_Abstract::getSetting($class, 'stylesModel')); parent::init(); }
public function init() { $key = $this->_getParam('subscribeModelKey'); $mailComponent = $this->_getMailComponent(); $rs = $mailComponent->getComponent()->getRecipientSources(); if (isset($rs[$key])) { $this->_model = $rs[$key]['model']; } else { $rs = reset($rs); $this->_model = $rs['model']; } parent::init(); }
public function init() { $class = $this->_getParam('class'); $this->_editDialog = array('controllerUrl' => Kwc_Admin::getInstance($class)->getControllerUrl('Download'), 'width' => 500, 'height' => 240); parent::init(); }