public function init() { parent::init(); $this->on(self::EVENT_BEFORE_DELETE, [$this, 'eventBeforeDelete']); }
public function init() { parent::init(); $this->on(self::EVENT_BEFORE_INSERT, [$this, 'eventBeforeInsert']); $this->on(self::EVENT_BEFORE_UPDATE, [$this, 'eventBeforeUpdate']); }
public function init() { parent::init(); $this->on(self::EVENT_BEFORE_INSERT, [$this, 'beforeCreate']); $this->on(self::EVENT_BEFORE_VALIDATE, [$this, 'eventBeforeValidate']); }
public function init() { parent::init(); $this->on(self::EVENT_BEFORE_INSERT, [$this, 'encodePassword']); }
public function init() { parent::init(); $this->on(self::EVENT_BEFORE_INSERT, [$this, 'beforeCreate']); }