Nextcloud PHP API (master)

AutoCompleteFilterEvent extends Event
in package

Base event class for the event dispatcher service

Tags
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
$propagationStopped  : bool

Methods

__construct()  : mixed
Compatibility constructor
getItemId()  : string|null
getItemType()  : string|null
getLimit()  : int
getResults()  : array<string|int, mixed>
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

$propagationStopped

private bool $propagationStopped = false
Tags
since
22.0.0

Methods

__construct()

Compatibility constructor

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

getResults()

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

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
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
Return values
bool

setResults()

public setResults(array<string|int, mixed> $results) : void
Parameters
$results : array<string|int, mixed>
Tags
since
28.0.0

stopPropagation()

Stops the propagation of the event to further event listeners

public stopPropagation() : void
Tags
since
22.0.0

        
On this page

Search results