예제 #1
0
파일: Cat.php 프로젝트: gitter-badger/luya
 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
파일: User.php 프로젝트: aekkapun/luya
 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
파일: Lang.php 프로젝트: gitter-badger/luya
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_BEFORE_INSERT, [$this, 'beforeCreate']);
 }