public function remove($profile_id_) { Logger::debug('main', "ProfileDB::internal::remove({$profile_id_})"); $profile = $this->import($profile_id_); if (is_object($profile) == false) { Logger::error('main', "ProfileDB::internal::remove({$profile_id_}) failed, unable to import profile"); return false; } if (self::invalidate($profile_id_) == false) { return false; } if (Abstract_Network_Folder::delete($profile_id_) == false) { return false; } return true; }
public function remove($sharedfolder_id_) { Logger::debug('main', "SharedFolderDB::internal::remove({$sharedfolder_id_})"); $sharedfolder = $this->import($sharedfolder_id_); if (is_object($sharedfolder) == false) { Logger::error('main', "SharedFolderDB::internal::remove({$sharedfolder_id_}) failed, unable to import sharedfolder"); return false; } if (self::invalidate($sharedfolder_id_) == false) { return false; } if (Abstract_Network_Folder::delete($sharedfolder_id_) == false) { return false; } return true; }
public function network_folder_remove($id_) { $this->check_authorized('manageServers'); $network_folder = Abstract_Network_Folder::load($id_); if (!is_object($network_folder)) { Logger::error('api', sprintf("Network folder '%s' do not exists", $id_)); return false; } $server = Abstract_Server::load($network_folder->server); if ($server && $server->isOnline()) { $server->deleteNetworkFolder($network_folder->id, true); } Abstract_Network_Folder::delete($network_folder->id); $this->log_action('network_folder_remove', array('id' => $id_)); return true; }