コード例 #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();
 }