/** * @return array action filters */ public function filters() { $out = array_merge(parent::filters(), array('accessControl', 'postOnly + delete')); if (Yii::app()->params['booster']['loadInFilters']) { $out[] = array('booster.filters.BoosterFilter'); } return array_merge(parent::filters(), $out); }
/** * @return array action filters */ public function filters() { $out = array('accessControl'); /** @var UserModule $module */ $module = $this->getModule(); if ($module->loadBoosterInFilters) { $out[] = array('booster.filters.BoosterFilter'); } return array_merge(parent::filters(), $out); }
/** * @return array action filters */ public function filters() { $out = array('accessControl', 'postOnly + addTranslation, deleteTranslation, delete'); /** @var NewsModule $module */ $module = $this->getModule(); if ($module->loadBoosterInFilters) { $out[] = array('booster.filters.BoosterFilter'); } return array_merge(parent::filters(), $out); }