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"]); }
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']); }
/** * @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"]); }
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']); }
/** * @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"]); }
/** * @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"]); }
public function init() { parent::init(); $this->on(BaseActiveRecord::EVENT_BEFORE_INSERT, [$this, 'afterBeforeChecks']); $this->on(BaseActiveRecord::EVENT_BEFORE_UPDATE, [$this, 'afterBeforeChecks']); }
/** * @inheritdoc */ public function init() { parent::init(); $this->on(BaseActiveRecord::EVENT_BEFORE_DELETE, [$this, "checkDelete"]); }
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']); }
/** * @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"]); }
/** * @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"]); }
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"]); }
public function init() { parent::init(); $this->on(static::EVENT_AFTER_INSERT, [$this, '_afterCreateOrder']); $this->on(static::EVENT_BEFORE_INSERT, [$this, '_beforeCreateOrder']); }
public function init() { parent::init(); $this->on(self::EVENT_BEFORE_INSERT, [$this, 'beforeSaveCallback']); $this->on(self::EVENT_BEFORE_UPDATE, [$this, 'beforeSaveCallback']); }
public function init() { parent::init(); $this->on(BaseActiveRecord::EVENT_BEFORE_INSERT, [$this, "processBeforeSave"]); $this->on(BaseActiveRecord::EVENT_BEFORE_UPDATE, [$this, "processBeforeSave"]); }
public function init() { parent::init(); $this->on(self::EVENT_AFTER_INSERT, [$this, '_updateCmsContent']); $this->on(self::EVENT_AFTER_UPDATE, [$this, '_updateCmsContent']); }