Метод | Описание | |
---|---|---|
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 ) : |
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. |
public findMedia ( $filter = [], $limit = null, $offset = null, Sulu\Component\Security\Authentication\UserInterface $user = null, $permission = null ) | ||
$user | Sulu\Component\Security\Authentication\UserInterface |
public findMediaByCollectionId ( $collectionId, $limit, $offset ) : array | ||
$collectionId | ||
$limit | ||
$offset | ||
Результат | array |
public findMediaWithFilenameInCollectionWithId ( string $filename, integer $collectionId ) : |
||
$filename | string | |
$collectionId | integer | |
Результат |