mirror of
https://github.com/nextcloud/server.git
synced 2025-02-07 18:09:45 +00:00
64 lines
1.2 KiB
PHP
64 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OCP\Calendar\Resource;
|
|
|
|
/**
|
|
* @since 14.0.0
|
|
*/
|
|
interface IManager {
|
|
/**
|
|
* Registers a resource backend
|
|
*
|
|
* @param string $backendClass
|
|
* @return void
|
|
* @since 14.0.0
|
|
* @deprecated 24.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCalendarResourceBackend
|
|
*/
|
|
public function registerBackend(string $backendClass);
|
|
|
|
/**
|
|
* Unregisters a resource backend
|
|
*
|
|
* @param string $backendClass
|
|
* @return void
|
|
* @since 14.0.0
|
|
* @deprecated 24.0.0
|
|
*/
|
|
public function unregisterBackend(string $backendClass);
|
|
|
|
/**
|
|
* @return IBackend[]
|
|
* @since 14.0.0
|
|
* @deprecated 24.0.0
|
|
*/
|
|
public function getBackends():array;
|
|
|
|
/**
|
|
* @param string $backendId
|
|
* @return IBackend|null
|
|
* @since 14.0.0
|
|
* @deprecated 24.0.0
|
|
*/
|
|
public function getBackend($backendId);
|
|
|
|
/**
|
|
* removes all registered backend instances
|
|
* @return void
|
|
* @since 14.0.0
|
|
* @deprecated 24.0.0
|
|
*/
|
|
public function clear();
|
|
|
|
/**
|
|
* Update all resources from all backends right now.
|
|
*
|
|
* @since 30.0.0
|
|
*/
|
|
public function update(): void;
|
|
}
|