Пример #1
0
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_BEFORE_DELETE, [$this, 'eventBeforeDelete']);
 }
Пример #2
0
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_BEFORE_INSERT, [$this, 'eventBeforeInsert']);
     $this->on(self::EVENT_BEFORE_UPDATE, [$this, 'eventBeforeUpdate']);
 }
Пример #3
0
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_BEFORE_INSERT, [$this, 'beforeCreate']);
     $this->on(self::EVENT_BEFORE_VALIDATE, [$this, 'eventBeforeValidate']);
 }
Пример #4
0
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_BEFORE_INSERT, [$this, 'encodePassword']);
 }
Пример #5
0
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_BEFORE_INSERT, [$this, 'beforeCreate']);
 }