PHP Class Sulu\Bundle\MediaBundle\Entity\CollectionRepository

This class was generated by the Doctrine ORM. Add your own custom repository methods below.
Inheritance: extends Gedmo\Tree\Entity\Repository\NestedTreeRepository, implements Sulu\Bundle\MediaBundle\Entity\CollectionRepositoryInterface
Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
count ( $depth, $filter = [], Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection = null )
countMedia ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection )
countSubCollections ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection )
findCollectionBreadcrumbById ( $id )
findCollectionById ( $id )
findCollectionByKey ( $key )
findCollectionSet ( $depth, $filter = [], Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection = null, $sortBy = [], Sulu\Component\Security\Authentication\UserInterface $user = null, $permission = null )
findCollectionTypeById ( $id )
findCollections ( $filter = [], $limit = null, $offset = null, $sortBy = [] )
findTree ( $id, $locale )

Private Methods

Method Description
getIdsQuery ( integer $depth, array $filter = [], array $sortBy = [], Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection = null, string $select = 'collection.id' ) : Doctrine\ORM\Query Returns the basic query which selects the ids of a collection for a given set of parameters.

Method Details

count() public method

public count ( $depth, $filter = [], Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection = null )
$collection Sulu\Bundle\MediaBundle\Entity\CollectionInterface

countMedia() public method

public countMedia ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection )
$collection Sulu\Bundle\MediaBundle\Entity\CollectionInterface

countSubCollections() public method

public countSubCollections ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection )
$collection Sulu\Bundle\MediaBundle\Entity\CollectionInterface

findCollectionBreadcrumbById() public method

findCollectionById() public method

public findCollectionById ( $id )

findCollectionByKey() public method

public findCollectionByKey ( $key )

findCollectionSet() public method

public findCollectionSet ( $depth, $filter = [], Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection = null, $sortBy = [], Sulu\Component\Security\Authentication\UserInterface $user = null, $permission = null )
$collection Sulu\Bundle\MediaBundle\Entity\CollectionInterface
$user Sulu\Component\Security\Authentication\UserInterface

findCollectionTypeById() public method

public findCollectionTypeById ( $id )

findCollections() public method

public findCollections ( $filter = [], $limit = null, $offset = null, $sortBy = [] )

findTree() public method

public findTree ( $id, $locale )