public function save($isLogging = true) { if ($this->hasField("oldImage") && $this->image != $this->oldImage) { $this->createImage(); } $this->set("meta_id", $this->getMeta()->getPk()); return parent::save($isLogging); }
public function save($logging = true) { if ($this->hasField('oldImage')) { if ($this->oldImage != $this->image) { $this->deleteImage(); $this->saveImage(); } $this->removeField('oldImage'); } return parent::save($logging); }
public function save($isLogging = true) { $isNew = $this->isNew(); $res = parent::save($isLogging); if ($res && $isNew) { $this->doSendEmail(); } return $res; }
/** * Сохроненние * @author Nesterenko Nikita * @since 2011/08/25 * @return bool */ public function save($logging = true) { if ($this->hasField('oldFile')) { if ($this->oldFile != $this->file) { $this->deleteFile(); $this->saveFile(); } $this->removeField('oldFile'); } if ($this->hasField('oldIcon')) { if ($this->oldIcon != $this->icon) { $this->deleteIcon(); $this->saveIcon(); } $this->removeField('oldIcon'); } return parent::save($logging); }
public function save($isLogging = true) { $this->set("meta_id", $this->getMeta()->getPk()); return parent::save($isLogging); }