예제 #1
0
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_BEFORE_INSERT, [$this, "_processBeforeSave"]);
     $this->on(self::EVENT_BEFORE_UPDATE, [$this, "_processBeforeSave"]);
     $this->on(self::EVENT_BEFORE_DELETE, [$this, "_processBeforeDelete"]);
 }
예제 #2
0
파일: CmsSite.php 프로젝트: Liv1020/cms
 public function init()
 {
     parent::init();
     $this->on(BaseActiveRecord::EVENT_AFTER_INSERT, [$this, 'createTreeAfterInsert']);
     $this->on(BaseActiveRecord::EVENT_BEFORE_INSERT, [$this, 'beforeInsertChecks']);
     $this->on(BaseActiveRecord::EVENT_BEFORE_UPDATE, [$this, 'beforeUpdateChecks']);
 }
예제 #3
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_AFTER_INSERT, [$this, "afterSaveEvent"]);
     $this->on(self::EVENT_AFTER_UPDATE, [$this, "afterSaveEvent"]);
     $this->on(self::EVENT_BEFORE_UPDATE, [$this, "beforeSaveEvent"]);
 }
예제 #4
0
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_BEFORE_INSERT, [$this, 'beforeInsertChecks']);
     $this->on(self::EVENT_BEFORE_UPDATE, [$this, 'beforeUpdateChecks']);
     $this->on(self::EVENT_AFTER_FIND, [$this, 'afterFindInit']);
 }
예제 #5
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_AFTER_INSERT, [$this, "afterInstertCallback"]);
     $this->on(self::EVENT_BEFORE_UPDATE, [$this, "afterUpdateCallback"]);
     $this->on(self::EVENT_AFTER_INSERT, [$this, "afterSaveEvent"]);
     $this->on(self::EVENT_AFTER_UPDATE, [$this, "afterSaveEvent"]);
 }
예제 #6
0
파일: User.php 프로젝트: Liv1020/cms
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_BEFORE_DELETE, [$this, "checkDataBeforeDelete"]);
     $this->on(self::EVENT_AFTER_INSERT, [$this, "checkDataAfterInsert"]);
     $this->on(self::EVENT_BEFORE_UPDATE, [$this, "_cmsSaveEmail"]);
     $this->on(self::EVENT_BEFORE_UPDATE, [$this, "_cmsSavePhone"]);
     $this->on(self::EVENT_AFTER_INSERT, [$this, "_cmsSaveEmail"]);
     $this->on(self::EVENT_AFTER_INSERT, [$this, "_cmsSavePhone"]);
 }
예제 #7
0
파일: CmsLang.php 프로젝트: skeeks-cms/cms
 public function init()
 {
     parent::init();
     $this->on(BaseActiveRecord::EVENT_BEFORE_INSERT, [$this, 'afterBeforeChecks']);
     $this->on(BaseActiveRecord::EVENT_BEFORE_UPDATE, [$this, 'afterBeforeChecks']);
 }
예제 #8
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->on(BaseActiveRecord::EVENT_BEFORE_DELETE, [$this, "checkDelete"]);
 }
예제 #9
0
파일: Tree.php 프로젝트: skeeks-cms/cms
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_BEFORE_INSERT, [$this, 'beforeSaveTree']);
     $this->on(self::EVENT_BEFORE_UPDATE, [$this, 'beforeSaveTree']);
     $this->on(self::EVENT_AFTER_UPDATE, [$this, 'afterUpdateTree']);
     $this->on(self::EVENT_BEFORE_DELETE, [$this, 'beforeDeleteTree']);
     $this->on(self::EVENT_AFTER_DELETE, [$this, 'afterDeleteTree']);
 }
예제 #10
0
파일: User.php 프로젝트: skeeks-cms/cms
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_AFTER_INSERT, [$this, "_cmsAfterSave"]);
     $this->on(self::EVENT_AFTER_UPDATE, [$this, "_cmsAfterSave"]);
     $this->on(self::EVENT_BEFORE_DELETE, [$this, "checkDataBeforeDelete"]);
 }
예제 #11
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_BEFORE_INSERT, [$this, "_beforeSaveEvent"]);
     $this->on(self::EVENT_BEFORE_UPDATE, [$this, "_beforeSaveEvent"]);
     $this->on(self::EVENT_AFTER_INSERT, [$this, "_afterSaveEvent"]);
     $this->on(self::EVENT_AFTER_UPDATE, [$this, "_afterSaveEvent"]);
     $this->on(self::EVENT_AFTER_INSERT, [$this, "_updateParentAfterInsert"]);
     $this->on(self::EVENT_AFTER_INSERT, [$this, "_logQuantityInsert"]);
     $this->on(self::EVENT_BEFORE_UPDATE, [$this, "_logQuantityUpdate"]);
 }
예제 #12
0
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_BEFORE_DELETE, [$this, '_actionBeforeDelete']);
 }
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->on(BaseActiveRecord::EVENT_AFTER_INSERT, [$this, "checkDataAfterSave"]);
     $this->on(BaseActiveRecord::EVENT_AFTER_UPDATE, [$this, "checkDataAfterSave"]);
 }
예제 #14
0
 public function init()
 {
     parent::init();
     $this->on(static::EVENT_AFTER_INSERT, [$this, '_afterCreateOrder']);
     $this->on(static::EVENT_BEFORE_INSERT, [$this, '_beforeCreateOrder']);
 }
예제 #15
0
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_BEFORE_INSERT, [$this, 'beforeSaveCallback']);
     $this->on(self::EVENT_BEFORE_UPDATE, [$this, 'beforeSaveCallback']);
 }
예제 #16
0
 public function init()
 {
     parent::init();
     $this->on(BaseActiveRecord::EVENT_BEFORE_INSERT, [$this, "processBeforeSave"]);
     $this->on(BaseActiveRecord::EVENT_BEFORE_UPDATE, [$this, "processBeforeSave"]);
 }
예제 #17
0
 public function init()
 {
     parent::init();
     $this->on(self::EVENT_AFTER_INSERT, [$this, '_updateCmsContent']);
     $this->on(self::EVENT_AFTER_UPDATE, [$this, '_updateCmsContent']);
 }