Nextcloud PHP API (master)

LocalOCMDiscoveryEvent extends Event
in package

Use this event to register additional resources before the API returns them in the OCM provider list and capability

Tags
since
33.0.0
Attributes
#[Listenable]
$since: '33.0.0'

Table of Contents

Properties

$provider  : IOCMProvider

Methods

__construct()  : mixed
Compatibility constructor
addCapability()  : void
Add a new OCM capability to the discovery data of local instance
isPropagationStopped()  : bool
{@inheritDoc}
registerResourceType()  : void
stopPropagation()  : void
Stops the propagation of the event to further event listeners

Properties

Methods

addCapability()

Add a new OCM capability to the discovery data of local instance

public addCapability(string $capability) : void
Parameters
$capability : string
Tags
since
33.0.0

isPropagationStopped()

{@inheritDoc}

public isPropagationStopped() : bool
Tags
since
22.0.0
see
StoppableEventInterface
Return values
bool

registerResourceType()

public registerResourceType(string $name, array<int, string> $shareTypes, array<string, string> $protocols) : void
Parameters
$name : string
$shareTypes : array<int, string>

List of supported share recipients, e.g. 'user', 'group', …

$protocols : array<string, string>

List of supported protocols and their location, e.g. ['webdav' => '/remote.php/webdav/']

Tags
since
33.0.0

stopPropagation()

Stops the propagation of the event to further event listeners

public stopPropagation() : void
Tags
since
22.0.0

        
On this page

Search results