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
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
$provider
protected
IOCMProvider
$provider
$propagationStopped
private
bool
$propagationStopped
= false
Tags
Methods
__construct()
Compatibility constructor
public
__construct(IOCMProvider $provider) : mixed
Parameters
- $provider : IOCMProvider
Tags
isPropagationStopped()
{@inheritDoc}
public
isPropagationStopped() : bool
Tags
Return values
boolregisterResourceType()
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
stopPropagation()
Stops the propagation of the event to further event listeners
public
stopPropagation() : void