Пример #1
0
 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();
 }