mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 20:10:37 -05:00
58 lines
1.1 KiB
PHP
58 lines
1.1 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
|
|
* @deprecated 24.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();
|
|
}
|