EDM SDK

EventLocationRepository extends AbstractSearchableRepository
in package

Table of Contents

__construct()  : mixed
create()  : array<string|int, mixed>|null
fetchCollection()  : Collection
fetchSingle()  : array<string|int, mixed>|null
findAll()  : Collection
Returns a collection of all items in the collection
findById()  : array<string|int, mixed>
Returns a single item of the repository.
findBySearchPhrase()  : Collection
Returns a collection of items, matched by a given search phrase.
getClient()  : RestClient
getEndpointPath()  : string
setClient()  : Repository

Methods

create()

public create([array<string|int, mixed> $data = [] ]) : array<string|int, mixed>|null
Parameters
$data : array<string|int, mixed> = []
Return values
array<string|int, mixed>|null

fetchCollection()

public fetchCollection([array<string|int, mixed> $params = [] ][, array<string|int, mixed> $overrideParams = [] ]) : Collection
Parameters
$params : array<string|int, mixed> = []
$overrideParams : array<string|int, mixed> = []
Return values
Collection

fetchSingle()

public fetchSingle(mixed $idOrSlug[, array<string|int, mixed> $params = [] ][, array<string|int, mixed> $overrideParams = [] ]) : array<string|int, mixed>|null
Parameters
$idOrSlug : mixed
$params : array<string|int, mixed> = []
$overrideParams : array<string|int, mixed> = []
Return values
array<string|int, mixed>|null

findAll()

Returns a collection of all items in the collection

public findAll([array<string|int, mixed> $params = [] ]) : Collection
Parameters
$params : array<string|int, mixed> = []

Optional query parameters to filter the results

Return values
Collection

The collection of items

findById()

Returns a single item of the repository.

public findById(int $id[, array<string|int, mixed> $params = [] ]) : array<string|int, mixed>
Parameters
$id : int

The unique ID of the item

$params : array<string|int, mixed> = []
Return values
array<string|int, mixed>

The item as array or NULL, if matching item was not found

findBySearchPhrase()

Returns a collection of items, matched by a given search phrase.

public findBySearchPhrase(string $searchPhrase[, array<string|int, mixed> $params = [] ]) : Collection
Parameters
$searchPhrase : string

The search phrase

$params : array<string|int, mixed> = []

Optional query parameters to filter the results

Return values
Collection

The collection of items

Search results