Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), ['secureFilter' => ['class' => SecureFilterBehavior::className(), 'enabled' => $this->isSecureEnabled()]]);
 }
Esempio n. 2
0
 /**
  * @inheritdoc
  * @return ActiveQuery the newly created [[ActiveQuery]] instance.
  */
 public static function find()
 {
     return Yii::createObject(ActiveQuery::className(), [get_called_class()]);
 }