/** * @inheritdoc */ public function beforeAction($action) { if (parent::beforeAction($action) && $this->validateSignature()) { return true; } else { return false; } }
/** * @inheritdoc */ public function behaviors() { parent::behaviors(); return [['class' => TimestampBehavior::className(), 'createdAtAttribute' => 'created_at', 'updatedAtAttribute' => 'updated_at']]; }
public function actions() { $actions = parent::actions(); return $actions; }
/** * @inheritdoc */ public function behaviors() { return ArrayHelper::merge(parent::behaviors(), ['access' => ['class' => AccessControl::class, 'rules' => [['actions' => ['view', 'update', 'create', 'delete'], 'allow' => true, 'roles' => ['@']]]]]); }
/** * @inheritdoc */ public function behaviors() { return ArrayHelper::merge(parent::behaviors(), ['access' => ['class' => AccessControl::className(), 'rules' => [['actions' => ['login', 'error'], 'allow' => true], ['actions' => ['logout', 'index'], 'allow' => true, 'roles' => ['@']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['logout' => ['post']]]]); }