Method | Description | |
---|---|---|
count ( integer $depth, array $filter = [], Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection = null ) : integer | Returns the number of matched collections by a given set of parameters. | |
countMedia ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection ) : integer | Returns the number of media contained in a given collection. | |
countSubCollections ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection ) : integer | Returns the number of sub collections contained in a given collection. | |
findCollectionBreadcrumbById ( integer $id ) : |
Finds the breadcrumb of a collection with given id. | |
findCollectionById ( integer $id ) : |
Finds the collection with a given id. | |
findCollectionByKey ( string $key ) : |
Finds collection by key. | |
findCollectionSet ( integer $depth, array $filter = [], Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection = null, array $sortBy = [], Sulu\Component\Security\Authentication\UserInterface $user = null, integer $permission = null ) : |
Finds a collection set starting by given ID and depth. | |
findCollectionTypeById ( integer $id ) : string | Returns collection-type for collection-id. | |
findCollections ( array $filter = [], integer $limit = null, integer $offset = null, array $sortBy = [] ) : |
finds all collections, can be filtered with parent and depth. | |
findTree ( id $id, string $locale ) : |
Finds the parent collections and all the sliblings of them + the children of given id. |
public count ( integer $depth, array $filter = [], Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection = null ) : integer | ||
$depth | integer | The depth to which collections are loaded |
$filter | array | The array of filters to apply |
$collection | Sulu\Bundle\MediaBundle\Entity\CollectionInterface | |
return | integer | The number of matched collections |
public countMedia ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection ) : integer | ||
$collection | Sulu\Bundle\MediaBundle\Entity\CollectionInterface | The collection for which the number of media should be returned |
return | integer | The number of media in the given collection |
public countSubCollections ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection ) : integer | ||
$collection | Sulu\Bundle\MediaBundle\Entity\CollectionInterface | The collectionf or which the number of sub collections should be returned |
return | integer | The number of sub collection in the given collection |
public findCollectionBreadcrumbById ( integer $id ) : |
||
$id | integer | |
return |
public findCollectionById ( integer $id ) : |
||
$id | integer | |
return |
public findCollectionByKey ( string $key ) : |
||
$key | string | |
return |
public findCollectionSet ( integer $depth, array $filter = [], Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection = null, array $sortBy = [], Sulu\Component\Security\Authentication\UserInterface $user = null, integer $permission = null ) : |
||
$depth | integer | |
$filter | array | |
$collection | Sulu\Bundle\MediaBundle\Entity\CollectionInterface | |
$sortBy | array | |
$user | Sulu\Component\Security\Authentication\UserInterface | The user for which the additional access control should be checked |
$permission | integer | The permission mask the user requires, if it is passed for the access control check |
return |
public findCollectionTypeById ( integer $id ) : string | ||
$id | integer | |
return | string |