예제 #1
0
파일: File.php 프로젝트: ajaboa/crmpuan
 protected function afterDelete()
 {
     $this->_removeQuota();
     if (!File::$deleteInDatabaseOnly) {
         $this->fsFile->delete();
     }
     $versioningFolder = new \GO\Base\Fs\Folder(\GO::config()->file_storage_path . $this->getVersionStoragePath());
     $versioningFolder->delete();
     $this->notifyUsers($this->folder_id, FolderNotificationMessage::DELETE_FILE, $this->path);
     return parent::afterDelete();
 }