Nextcloud PHP API (master)

AutoCompleteFilterEvent extends Event
in package

Base event class for the event dispatcher service

Tags
brief

This event is triggered when autocompleting a search query.

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

since
28.0.0
template
Attributes
#[Consumable]
$since: '28.0.0'

Table of Contents

Properties

$itemId  : string|null
$itemType  : string|null
$limit  : int
$results  : array<string|int, mixed>
$search  : string
$shareTypes  : array<string|int, mixed>
$sorter  : string|null

Methods

__construct()  : mixed
Compatibility constructor
getItemId()  : string|null
getItemType()  : string|null
getLimit()  : int
getResults()  : T
getSearchTerm()  : string
getShareTypes()  : array<string|int, int>
getSorter()  : string|null
isPropagationStopped()  : bool
{@inheritDoc}
setResults()  : void
stopPropagation()  : void
Stops the propagation of the event to further event listeners

Properties

Methods

__construct()

Compatibility constructor

public __construct(T $results, string $search, string|null $itemType, string|null $itemId, string|null $sorter, array<string|int, mixed> $shareTypes, int $limit) : mixed
Parameters
$results : T
$search : string
$itemType : string|null
$itemId : string|null
$sorter : string|null
$shareTypes : array<string|int, mixed>
$limit : int
Tags
since
28.0.0

getShareTypes()

public getShareTypes() : array<string|int, int>
Tags
since
28.0.0
Return values
array<string|int, int> —

List of \OCP\Share\IShare::TYPE_* constants

getSorter()

public getSorter() : string|null

Unused

Tags
since
28.0.0
Return values
string|null —

List of desired sort identifiers, top priority first. When multiple are given they are joined with a pipe: commenters|share-recipients

isPropagationStopped()

{@inheritDoc}

public isPropagationStopped() : bool
Tags
since
22.0.0
see
StoppableEventInterface
Attributes
#[Override]
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