/** * Performs any additional actions that are needed before row is saved */ protected function beforeSaveAction() { parent::beforeSaveAction(); if (($this->getData1() != $this->oldFileId) && ($this->oldFileId!='')) { $this->deleteTempDir(new Gpf_Io_File($this->getZipFolderUrl().$this->oldFileId)); } }