class EntryQueryOptions

Properties

string|null $batchId

The batch ID that entries should belong to.

string|null $tag

The tag that must belong to retrieved entries.

bool $exactTag

Whether the tag should be matched literally instead of as a search expression.

string|null $familyHash

The family hash that must belong to retrieved entries.

int|string|null $beforeSequence

The ID that all retrieved entries should be less than.

array|null $uuids

The list of UUIDs of entries to retrieve.

int $limit

The number of entries to retrieve.

Methods

fromRequest(Request $request)

Create new entry query options from the incoming request.

forBatchId(string|null $batchId)

Create new entry query options for the given batch ID.

batchId(string|null $batchId)

Set the batch ID for the query.

uuids(array|null $uuids)

Set the list of UUIDs of entries to retrieve.

beforeSequence(int|string|null $id)

Set the ID that all retrieved entries should be less than.

tag(string|null $tag)

Set the tag that must belong to retrieved entries.

exactTag(bool $exactTag = true)

Match the tag literally instead of as a search expression.

familyHash(string|null $familyHash)

Set the family hash that must belong to retrieved entries.

limit(int $limit)

Set the number of entries that should be retrieved.

Details

at line 49
static EntryQueryOptions fromRequest(Request $request)

Create new entry query options from the incoming request.

Parameters

Request $request

Return Value

EntryQueryOptions

at line 64
static EntryQueryOptions forBatchId(string|null $batchId)

Create new entry query options for the given batch ID.

Parameters

string|null $batchId

Return Value

EntryQueryOptions

at line 74
EntryQueryOptions batchId(string|null $batchId)

Set the batch ID for the query.

Parameters

string|null $batchId

Return Value

EntryQueryOptions

at line 86
EntryQueryOptions uuids(array|null $uuids)

Set the list of UUIDs of entries to retrieve.

Parameters

array|null $uuids

Return Value

EntryQueryOptions

at line 98
EntryQueryOptions beforeSequence(int|string|null $id)

Set the ID that all retrieved entries should be less than.

Parameters

int|string|null $id

Return Value

EntryQueryOptions

at line 110
EntryQueryOptions tag(string|null $tag)

Set the tag that must belong to retrieved entries.

Parameters

string|null $tag

Return Value

EntryQueryOptions

at line 122
EntryQueryOptions exactTag(bool $exactTag = true)

Match the tag literally instead of as a search expression.

Parameters

bool $exactTag

Return Value

EntryQueryOptions

at line 134
EntryQueryOptions familyHash(string|null $familyHash)

Set the family hash that must belong to retrieved entries.

Parameters

string|null $familyHash

Return Value

EntryQueryOptions

at line 146
EntryQueryOptions limit(int $limit)

Set the number of entries that should be retrieved.

Parameters

int $limit

Return Value

EntryQueryOptions