Nextcloud PHP API (stable19)

ManagerEvent extends Event

Class ManagerEvent

Typically this class isn't instantiated directly but sub classed for specific event types

Tags
since
9.0.0

Table of Contents

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'
$appID  : string
$event  : string
$groups  : \OCP\IGroup[]|null
__construct()  : mixed
DispatcherEvent constructor.
getAppID()  : string
getEvent()  : string
getGroups()  : string[]
returns the group Ids

Constants

EVENT_APP_DISABLE

public mixed EVENT_APP_DISABLE = 'OCP\App\IAppManager::disableApp'

EVENT_APP_ENABLE

public mixed EVENT_APP_ENABLE = 'OCP\App\IAppManager::enableApp'

EVENT_APP_ENABLE_FOR_GROUPS

public mixed EVENT_APP_ENABLE_FOR_GROUPS = 'OCP\App\IAppManager::enableAppForGroups'

EVENT_APP_UPDATE

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

Properties

Methods

__construct()

DispatcherEvent constructor.

public __construct(string $event,  $appID[, \OCP\IGroup[]|null $groups = null ]) : mixed

In Nextcloud 17.0.0 this event class used a now deprecated/removed Symfony base class that had a constructor (with default arguments). To lower the risk of a breaking change (PHP won't allow parent constructor calls if there is none), this empty constructor's only purpose is to hopefully not break existing sub- classes of this class.

Parameters
$event : string
$appID :
$groups : \OCP\IGroup[]|null = null
Tags
since
9.0.0
Return values
mixed

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() : string[]
Tags
since
9.0.0
Return values
string[]

Search results