PhotoCollection
class PhotoCollection extends AbstractCollection
Class PhotoCollection
Properties
protected array | $items | from AbstractCollection | |
protected int | $index | from AbstractCollection | |
protected string | $item_class |
Methods
mixed
parseItem($item)
No description
mixed|null
seek(int|null $index = 0)
Move the index at the specified position
from AbstractCollection
mixed|null
last()
Move index at the end of collection and return current element
from AbstractCollection
Details
in AbstractCollection at line 35
__construct(array|null $items = [])
AbstractCollection constructor.
in AbstractCollection at line 46
protected AbstractCollection
setItems(array|null $items = [])
in AbstractCollection at line 63
AbstractCollection
addItem($item)
at line 32
protected mixed
parseItem($item)
in AbstractCollection at line 86
string
toJson()
in AbstractCollection at line 95
array
toArray()
in AbstractCollection at line 104
string
__toString()
in AbstractCollection at line 115
int
position()
Return the current position of the index
in AbstractCollection at line 126
mixed|null
first()
Move index to first position and return current element
in AbstractCollection at line 137
mixed|null
get(int $index)
in AbstractCollection at line 150
mixed|null
seek(int|null $index = 0)
Move the index at the specified position
in AbstractCollection at line 161
int
count()
in AbstractCollection at line 170
int
getLastIndex()
in AbstractCollection at line 183
mixed|null
last()
Move index at the end of collection and return current element
in AbstractCollection at line 193
mixed|null
current()
in AbstractCollection at line 204
mixed|null
next()
Move index to next position and return current element
in AbstractCollection at line 215
mixed|null
key()
Return current key/index
in AbstractCollection at line 226
mixed|null
valid()
Return current key/index
in AbstractCollection at line 237
mixed|null
rewind()
Move index to first position and return current element