LocationList
This class represents a queried location list holding a totalCount and a partial list of locations (by offset/limit parameters and permission filters).
Properties¶
$locations
¶
|
|
- the partial list of Locations controlled by offset/limit.
$locations
¶
the partial list of locations controlled by offset/limit.
|
|
$totalCount
¶
|
|
- the total count of found locations (filtered by permissions)
$totalCount
¶
The total count of non-paginated Locations (filtered by permissions).
|
|
Use getTotalCount to fetch it.
Methods¶
__construct()
¶
Construct object optionally with a set of properties.
|
|
Readonly properties values must be set using $properties
as they aren't writable anymore
after object has been created.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$properties | array<string, mixed> | [] | - |
getIterator()
¶
|
|
Return values
array<string|int, Location>|Traversable
getTotalCount()
¶
Get a total number of items matched by criteria, regardless of slice (page, collection) size.
|
|
Return values
int
getProperties()
¶
Returns list of available properties' names.
|
|
Override to add dynamic properties.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$dynamicProperties | array<int, string> | [] |
Additional dynamic properties exposed on the object |
Return values
array<int, string>