Property | Description | Returns |
---|---|---|
current | Return the current element | Collection (CacheList) |
key | Return the key of the current element | Collection (CacheList) |
next | Move forward to next element | |
keys | Gets all keys/indices of the collection. | array |
values | Gets all values of the collection. | array |
toArray | Gets an array representation of the collection. | array |
first | Get the first element in the collection without modifying the pointer | Collection (CacheList) |
first | Sets the internal iterator to the first element in the collection and returns the element. | Collection (CacheList) |
last | Get the last element in the collection without modifying the pointer | Collection (CacheList) |
last | Sets the internal iterator to the first element in the collection and returns the element. | Collection (CacheList) |
iterator | Retrieve an external iterator. | Traversable |
count | Count the elements inside of the collection. | int |
valid | Checks if current position is valid. Returns true on success or false on failure. | bool |
rewind | Rewind the Iterator to the first element. | |
shuffled | Get a shuffled collection from this collection. | Collection (CacheList) |
__toString | Get a string representation of the ResponseModelsCollection. | string |
jsonEncode | Get a representation of the ResponseModel to be used with json_encode. Uses the list representation with the id as key in an object that is returned |
string |
Collection of Sites\Models\Api\CacheList
Contains a collection of records. Provides methods for sorting and filtering the collection. Can be iterated in a foreach-loop