PHP Class Yosymfony\Spress\Core\ContentManager\Collection\CollectionManager

Author: Victor Puertas ([email protected])
Show file Open project: spress/spress Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
getCollectionForItem ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) : Yosymfony\Spress\Core\ContentManager\Collection\CollectionInterface Collection matching of a item.
getCollectionItemCollection ( ) : Yosymfony\Spress\Core\Support\Collection Gets the collection-item collection.

Method Details

__construct() public method

Inserts the "pages" collection as default collection.
public __construct ( )

getCollectionForItem() public method

Collection matching of a item.
public getCollectionForItem ( Yosymfony\Spress\Core\DataSource\ItemInterface $item ) : Yosymfony\Spress\Core\ContentManager\Collection\CollectionInterface
$item Yosymfony\Spress\Core\DataSource\ItemInterface
return Yosymfony\Spress\Core\ContentManager\Collection\CollectionInterface

getCollectionItemCollection() public method

Gets the collection-item collection.
public getCollectionItemCollection ( ) : Yosymfony\Spress\Core\Support\Collection
return Yosymfony\Spress\Core\Support\Collection The collection