コード例 #1
0
ファイル: Products.php プロジェクト: harish-reglobbe/Auction
 public function init(){
     $this->on(Events::UPLOAD_IMAGE, [EventHandler::className(), 'UploadImage']);
 }
コード例 #2
0
 public function init(){
     //Registering create_company Event
     $this->on(Events::CREATE_COMPANY, [EventHandler::className(), 'Registration']);
     $this->on(Events::UPLOAD_IMAGE, [EventHandler::className(), 'UploadImage']);
     $this->on(self::AFTER_SAVE, [$this, 'afterSave']);
 }
コード例 #3
0
ファイル: Users.php プロジェクト: harish-reglobbe/Auction
 public function init(){
     //User Login Event handler
     $this->on(Events::USER_LOGIN, [EventHandler::className(), 'UserLogin']);
 }
コード例 #4
0
 public function init(){
     $this->on(Events::TOKEN_INVALID, [EventHandler::className(), 'TokenInvalid']);
 }
コード例 #5
0
 public function init(){
     $this->on(Events::REGISTRATION, [EventHandler::className(), 'Registration']);
     $this->on(Events::UPLOAD_IMAGE, [EventHandler::className(), 'UploadImage']);
     $this->on(self::AFTER_SAVE, [$this, 'afterSave']);
 }