FileCollectionRepository

Read onlyYes

Repository for accessing file collections stored in the database

Table of Contents

Methods

__construct()  : mixed
findAll()  : array<string|int, CollectionInterface>|null
Finds all record collections.
findByType()  : array<string|int, CollectionInterface>|null
Finds record collection by type.
findByUid()  : CollectionInterface|null
Finds a record collection by uid.
createDomainObject()  : CollectionInterface
Creates a record collection domain object.
createMultipleDomainObjects()  : array<string|int, CollectionInterface>
Creates multiple record collection domain objects.
isFrontendRequest()  : bool
queryMultipleRecords()  : array<string|int, CollectionInterface>|null
Queries for multiple records for the given conditions.

Methods

createDomainObject()

Creates a record collection domain object.

protected createDomainObject(array<string|int, mixed> $record) : CollectionInterface
Parameters
$record : array<string|int, mixed>

Database record to be reconstituted

Return values
CollectionInterface

createMultipleDomainObjects()

Creates multiple record collection domain objects.

protected createMultipleDomainObjects(array<string|int, mixed> $data) : array<string|int, CollectionInterface>
Parameters
$data : array<string|int, mixed>

Array of multiple database records to be reconstituted

Return values
array<string|int, CollectionInterface>

isFrontendRequest()

protected isFrontendRequest() : bool
Return values
bool

queryMultipleRecords()

Queries for multiple records for the given conditions.

protected queryMultipleRecords([array<string|int, mixed> $conditions = [] ]) : array<string|int, CollectionInterface>|null
Parameters
$conditions : array<string|int, mixed> = []

Conditions concatenated with AND for query

Return values
array<string|int, CollectionInterface>|null

        
On this page

Search results