PHP Интерфейс Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
count ( array $filter ) : integer Returns amount of affected rows.
findMedia ( array $filter = [], integer $limit = null, integer $offset = null, Sulu\Component\Security\Authentication\UserInterface $user = null, null $permission = null ) : Media[] Finds all media, can be filtered with parent.
findMediaByCollectionId ( $collectionId, $limit, $offset ) : mixed
findMediaById ( $id ) : Media Finds the media with a given id.
findMediaByIdForRendering ( $id, $formatKey ) : Media Finds the media with a given id, with just enough information to be able to render the actual media.
findMediaDisplayInfo ( $ids, $locale ) : array Finds all the information needed to generate an url to the media and to display the media. The method finds the information for all medias with given ids.
findMediaWithFilenameInCollectionWithId ( string $filename, integer $collectionId ) : Media

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

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

Returns amount of affected rows.
public count ( array $filter ) : integer
$filter array
Результат integer

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

Finds all media, can be filtered with parent.
public findMedia ( array $filter = [], integer $limit = null, integer $offset = null, Sulu\Component\Security\Authentication\UserInterface $user = null, null $permission = null ) : Media[]
$filter array
$limit integer
$offset integer
$user Sulu\Component\Security\Authentication\UserInterface
$permission null
Результат Media[]

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

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

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

Finds the media with a given id.
public findMediaById ( $id ) : Media
$id
Результат Media

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

Finds the media with a given id, with just enough information to be able to render the actual media.
public findMediaByIdForRendering ( $id, $formatKey ) : Media
$id
$formatKey
Результат Media

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

Finds all the information needed to generate an url to the media and to display the media. The method finds the information for all medias with given ids.
public findMediaDisplayInfo ( $ids, $locale ) : array
$ids array The ids of the medias for which the info should be found
$locale string The locale in which the display info should be loaded
Результат array

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

public findMediaWithFilenameInCollectionWithId ( string $filename, integer $collectionId ) : Media
$filename string
$collectionId integer
Результат Media