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
__construct()
public
__construct(RestClient $client) : mixed
Parameters
- $client : RestClient
Return values
mixed —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
getClient()
public
getClient() : RestClient
Return values
RestClient —getEndpointPath()
public
static getEndpointPath() : string
Return values
string —setClient()
public
setClient(RestClient $client) : Repository
Parameters
- $client : RestClient