PHP Класс Sulu\Bundle\MediaBundle\Entity\MediaRepository

This class was generated by the Doctrine ORM. Add your own custom repository methods below.
Наследование: extends Doctrine\ORM\EntityRepository, implements Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
count ( array $filter )
findMedia ( $filter = [], $limit = null, $offset = null, Sulu\Component\Security\Authentication\UserInterface $user = null, $permission = null )
findMediaByCollectionId ( $collectionId, $limit, $offset ) : array
findMediaById ( $id, $asArray = false )
findMediaByIdForRendering ( $id, $formatKey )
findMediaDisplayInfo ( $ids, $locale )
findMediaWithFilenameInCollectionWithId ( string $filename, integer $collectionId ) : Media Returns the most recent version of a media for the specified filename within a collection.

Приватные методы

Метод Описание
extractFilterVars ( array $filter ) : array Extracts filter vars.
getIds ( string $collection = null, boolean $systemCollections = true, array $types = null, string $search = null, string $orderBy = null, string $orderSort = null, integer $limit = null, integer $offset = null ) : array returns ids with given filters.
getIdsQuery ( string $collection = null, boolean $systemCollections = true, array $types = null, string $search = null, string $orderBy = null, string $orderSort = null, integer $limit = null, integer $offset = null, string $select = 'media.id' ) : Doctrine\ORM\Query create a query for ids with given filter.

Описание методов

count() публичный Метод

public count ( array $filter )
$filter array

findMedia() публичный Метод

public findMedia ( $filter = [], $limit = null, $offset = null, Sulu\Component\Security\Authentication\UserInterface $user = null, $permission = null )
$user Sulu\Component\Security\Authentication\UserInterface

findMediaByCollectionId() публичный Метод

public findMediaByCollectionId ( $collectionId, $limit, $offset ) : array
$collectionId
$limit
$offset
Результат array

findMediaById() публичный Метод

public findMediaById ( $id, $asArray = false )

findMediaByIdForRendering() публичный Метод

public findMediaByIdForRendering ( $id, $formatKey )

findMediaDisplayInfo() публичный Метод

public findMediaDisplayInfo ( $ids, $locale )

findMediaWithFilenameInCollectionWithId() публичный Метод

Returns the most recent version of a media for the specified filename within a collection.
public findMediaWithFilenameInCollectionWithId ( string $filename, integer $collectionId ) : Media
$filename string
$collectionId integer
Результат Media