コード例 #1
0
 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();
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 public function init()
 {
     $class = $this->_getParam('class');
     $this->_editDialog = array('controllerUrl' => Kwc_Admin::getInstance($class)->getControllerUrl('Download'), 'width' => 500, 'height' => 240);
     parent::init();
 }