behaviors() public method

public behaviors ( )
コード例 #1
0
ファイル: AuthController.php プロジェクト: cboy868/nana
 public function behaviors()
 {
     $behavior = parent::behaviors();
     $access = $behavior['access'];
     return ['access' => $access, 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]]];
 }
コード例 #2
0
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]]]);
 }
コード例 #3
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), ['access' => ['class' => AccessControl::className(), 'rules' => [['actions' => ['error'], 'allow' => true], ['actions' => ['index'], 'allow' => true, 'roles' => ['@']]]]]);
 }