コード例 #1
0
 public function init()
 {
     if (!is_string($this->queryClass)) {
         $this->queryClass = BaseMongoMessageQuery::className();
     }
     if ($this->skipInit) {
         return;
     }
     $this->initMessageEvents();
     parent::init();
 }
コード例 #2
0
ファイル: RateLimiter.php プロジェクト: rhosocial/rho.social
 /**
  * @inheritdoc
  */
 public function rules()
 {
     return array_merge(parent::rules(), [[['client_id', 'allowed_remaining'], 'required'], [['client_id'], 'string', 'max' => 80], [['allowed_remaining'], 'number', 'integerOnly' => true, 'min' => -1]]);
 }
コード例 #3
0
 public function init()
 {
     $this->on(static::EVENT_AFTER_DELETE, [$this, 'onDeleteNotificationRead']);
     parent::init();
 }
コード例 #4
0
 public function init()
 {
     $this->attachUserClass();
     parent::init();
 }