Nextcloud PHP API (stable18)

ICloudFederationProviderManager

Class ICloudFederationProviderManager

Manage cloud federation providers

Tags
since
14.0.0

Table of Contents

addCloudFederationProvider()  : mixed
Registers an callback function which must return an cloud federation provider
getAllCloudFederationProviders()  : array
get a list of all cloudFederationProviders
getCloudFederationProvider()  : ICloudFederationProvider
get a specific cloud federation provider
isReady()  : bool
check if the new cloud federation API is ready to be used
removeCloudFederationProvider()  : mixed
remove cloud federation provider
sendNotification()  : mixed
send notification about existing share
sendShare()  : mixed
send federated share

Methods

addCloudFederationProvider()

Registers an callback function which must return an cloud federation provider

public addCloudFederationProvider(string $resourceType, string $displayName, callable $callback) : mixed
Parameters
$resourceType : string

which resource type does the provider handles

$displayName : string

user facing name of the federated share provider

$callback : callable
Tags
throws
ProviderAlreadyExistsException
since
14.0.0
Return values
mixed

getAllCloudFederationProviders()

get a list of all cloudFederationProviders

public getAllCloudFederationProviders() : array
Tags
since
14.0.0
Return values
array

[resourceType => ['resourceType' => $resourceType, 'displayName' => $displayName, 'callback' => callback]]

isReady()

check if the new cloud federation API is ready to be used

public isReady() : bool
Tags
since
14.0.0
Return values
bool

removeCloudFederationProvider()

remove cloud federation provider

public removeCloudFederationProvider(string $resourceType) : mixed
Parameters
$resourceType : string
Tags
since
14.0.0
Return values
mixed

Search results