Nextcloud PHP API (master)

ResourceTypeRegisterEvent extends Event
in package

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

Tags
since
28.0.0

Table of Contents

Properties

$provider  : IOCMProvider
$propagationStopped  : bool

Methods

__construct()  : mixed
Compatibility constructor
isPropagationStopped()  : bool
{@inheritDoc}
registerResourceType()  : void
stopPropagation()  : void
Stops the propagation of the event to further event listeners

Properties

$propagationStopped

private bool $propagationStopped = false
Tags
since
22.0.0

Methods

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
28.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