Nextcloud PHP API (master)

UserEnumerationFilterEvent extends Event
in package

Base event class for the event dispatcher service

Tags
brief

This event is triggered when a list of users is returned to the user.

Applications that restricts the enumeration of users should listen to this event and modify the list of users with the getUsers and setUsers method.

since
31.0.14
Attributes
#[Consumable]
$since: '31.0.14'
#[Listenable]
$since: '31.0.14'

Table of Contents

Properties

$initialUsers  : array<int, string>
$users  : array<string|int, mixed>

Methods

__construct()  : mixed
Compatibility constructor
getFilteredOutUsers()  : array<int<0, max>, string>
Get the users what were filtered out by one of the listeners of this event.
getUsers()  : array<int, string>
isPropagationStopped()  : bool
{@inheritDoc}
setUsers()  : void
stopPropagation()  : void
Stops the propagation of the event to further event listeners

Properties

Methods

__construct()

Compatibility constructor

public __construct(array<int, string> $users) : mixed
Parameters
$users : array<int, string>
Tags
since
31.0.14

getFilteredOutUsers()

Get the users what were filtered out by one of the listeners of this event.

public getFilteredOutUsers() : array<int<0, max>, string>
Tags
since
31.0.14
Return values
array<int<0, max>, string> —

$users

isPropagationStopped()

{@inheritDoc}

public isPropagationStopped() : bool
Tags
since
22.0.0
see
StoppableEventInterface
Attributes
#[Override]
Return values
bool

setUsers()

public setUsers(array<int, string> $users) : void
Parameters
$users : array<int, string>
Tags
since
31.0.14

stopPropagation()

Stops the propagation of the event to further event listeners

public stopPropagation() : void
Tags
since
22.0.0
On this page

Search results