/**
  * @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);
 }
Beispiel #2
0
 /**
  * @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);
 }
Beispiel #3
0
 /**
  * @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);
 }