Свойство | Type | Description | |
---|---|---|---|
$em |
Méthode | Description | |
---|---|---|
__construct ( Sulu\Bundle\MediaBundle\Entity\CollectionRepositoryInterface $collectionRepository, Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface $mediaRepository, Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface $formatManager, Sulu\Component\Security\Authentication\UserRepositoryInterface $userRepository, |
||
delete ( $id ) | ||
get ( $locale, $filter = [], $limit = null, $offset = null, $sortBy = [] ) | ||
getById ( $id, $locale, $depth, $breadcrumb = false, $filter = [], $sortBy = [] ) | ||
getByKey ( $key, $locale ) | ||
getCount ( ) : integer | ||
getFieldDescriptor ( $key ) | ||
getFieldDescriptors ( ) | ||
getTree ( $locale, $offset, $limit, $search, $depth, $sortBy = [], $systemCollections = true ) | ||
getTreeById ( $id, $locale ) | ||
move ( $id, $locale, $destinationId = null ) | ||
save ( $data, $userId ) |
Méthode | Description | |
---|---|---|
addPreview ( |
||
getApiEntity ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $entity, string $locale, |
Prepare an api entity. | |
getCurrentUser ( ) : Sulu\Component\Security\Authentication\UserInterface | null | Returns the current user from the token storage. | |
getPreview ( integer $id, string $locale ) : array | ||
getPreviewsFromFileVersion ( integer $mediaId, |
||
getTypeById ( $typeId ) : |
||
getUser ( $userId ) : Sulu\Component\Security\Authentication\UserInterface | Returns a user for a given user-id. | |
setDataToCollection ( |
Data can be set over by array. |
Méthode | Description | |
---|---|---|
createCollection ( $data, $user ) : |
||
initializeFieldDescriptors ( ) : |
||
modifyCollection ( $data, $user ) : |
Modified an exists collection. |
public __construct ( Sulu\Bundle\MediaBundle\Entity\CollectionRepositoryInterface $collectionRepository, Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface $mediaRepository, Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface $formatManager, Sulu\Component\Security\Authentication\UserRepositoryInterface $userRepository, |
||
$collectionRepository | Sulu\Bundle\MediaBundle\Entity\CollectionRepositoryInterface | |
$mediaRepository | Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface | |
$formatManager | Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface | |
$userRepository | Sulu\Component\Security\Authentication\UserRepositoryInterface | |
$em | ||
$tokenStorage | Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface |
protected addPreview ( |
||
$collection | ||
Résultat |
public get ( $locale, $filter = [], $limit = null, $offset = null, $sortBy = [] ) |
protected getApiEntity ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $entity, string $locale, |
||
$entity | Sulu\Bundle\MediaBundle\Entity\CollectionInterface | |
$locale | string | |
$entities | nested set | |
$breadcrumbEntities | array | |
Résultat |
public getById ( $id, $locale, $depth, $breadcrumb = false, $filter = [], $sortBy = [] ) |
protected getCurrentUser ( ) : Sulu\Component\Security\Authentication\UserInterface | null | ||
Résultat | Sulu\Component\Security\Authentication\UserInterface | null |
public getTree ( $locale, $offset, $limit, $search, $depth, $sortBy = [], $systemCollections = true ) |
protected getTypeById ( $typeId ) : |
||
$typeId | ||
Résultat |
protected getUser ( $userId ) : Sulu\Component\Security\Authentication\UserInterface | ||
$userId | ||
Résultat | Sulu\Component\Security\Authentication\UserInterface |
protected setDataToCollection ( |
||
$collection | ||
$data | array | |
Résultat |