Method |
Description |
|
__construct ( array $items = [] ) |
Constructor. |
|
add ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) |
Adds an new item. |
|
all ( array $collections = [], boolean $groupByCollection = false ) : array |
Returns all items in this collection. |
|
clear ( ) |
Clears all items in this collection. |
|
count ( ) : integer |
Counts the items registered. |
|
get ( string $id ) : Yosymfony\Spress\Core\DataSource\ItemInterface |
Gets an item. |
|
getIterator ( ) : ArrayIterator |
Gets the current ItemCollection as an Iterator that includes all items. |
|
has ( string $id ) : boolean |
Checks if a item exists. |
|
remove ( string $id ) |
Removes an item. |
|
set ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) |
Sets an item. |
|
sortItems ( string $attribute, boolean $descending = true, array $collections = [] ) : Yosymfony\Spress\Core\Support\ItemCollection |
Sorts items in this collection. |
|