Nextcloud PHP API (master)

ManagerEvent extends Event
in package

Class ManagerEvent

Tags
since
9.0.0

Table of Contents

Constants

EVENT_APP_DISABLE  = 'OCP\App\IAppManager::disableApp'
EVENT_APP_ENABLE  = 'OCP\App\IAppManager::enableApp'
EVENT_APP_ENABLE_FOR_GROUPS  = 'OCP\App\IAppManager::enableAppForGroups'
EVENT_APP_UPDATE  = 'OCP\App\IAppManager::updateApp'

Properties

$appID  : string
$event  : string
$groups  : array<string|int, IGroup>|null
$propagationStopped  : bool

Methods

__construct()  : mixed
DispatcherEvent constructor.
getAppID()  : string
getEvent()  : string
getGroups()  : array<string|int, string>
returns the group Ids
isPropagationStopped()  : bool
{@inheritDoc}
stopPropagation()  : void
Stops the propagation of the event to further event listeners

Constants

EVENT_APP_DISABLE

public mixed EVENT_APP_DISABLE = 'OCP\App\IAppManager::disableApp'
Tags
since
9.0.0

EVENT_APP_ENABLE

public mixed EVENT_APP_ENABLE = 'OCP\App\IAppManager::enableApp'
Tags
since
9.0.0

EVENT_APP_ENABLE_FOR_GROUPS

public mixed EVENT_APP_ENABLE_FOR_GROUPS = 'OCP\App\IAppManager::enableAppForGroups'
Tags
since
9.0.0

EVENT_APP_UPDATE

public mixed EVENT_APP_UPDATE = 'OCP\App\IAppManager::updateApp'
Tags
since
9.1.0

Properties

$propagationStopped

private bool $propagationStopped = false
Tags
since
22.0.0

Methods

__construct()

DispatcherEvent constructor.

public __construct(string $event, mixed $appID[, array<string|int, IGroup>|null $groups = null ]) : mixed
Parameters
$event : string
$appID : mixed
$groups : array<string|int, IGroup>|null = null
Tags
since
9.0.0

getAppID()

public getAppID() : string
Tags
since
9.0.0
Return values
string

getEvent()

public getEvent() : string
Tags
since
9.0.0
Return values
string

getGroups()

returns the group Ids

public getGroups() : array<string|int, string>
Tags
since
9.0.0
Return values
array<string|int, string>

isPropagationStopped()

{@inheritDoc}

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

stopPropagation()

Stops the propagation of the event to further event listeners

public stopPropagation() : void
Tags
since
22.0.0

        
On this page

Search results