Nextcloud PHP API (master)

SearchResult
in package
implements JsonSerializable

FinalYes
Tags
since
20.0.0

Table of Contents

Interfaces

JsonSerializable

Properties

$cursor  : int|string|null
$entries  : array<string|int, SearchResultEntry>
$isPaginated  : bool
$name  : string

Methods

complete()  : static
jsonSerialize()  : array<string|int, mixed>
paginated()  : static
__construct()  : mixed

Properties

Methods

jsonSerialize()

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

paginated()

public static paginated(string $name, array<string|int, SearchResultEntry$entries, int|string $cursor) : static
Parameters
$name : string
$entries : array<string|int, SearchResultEntry>
$cursor : int|string
Tags
since
20.0.0
Return values
static

__construct()

private __construct(string $name, bool $isPaginated, array<string|int, SearchResultEntry$entries[, int|null|string|null $cursor = null ]) : mixed
Parameters
$name : string

the translated name of the result section or group, e.g. "Mail"

$isPaginated : bool
$entries : array<string|int, SearchResultEntry>
$cursor : int|null|string|null = null
Tags
since
20.0.0

        
On this page

Search results