Метод | Описание | |
---|---|---|
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 ) : |
Finds all media, can be filtered with parent. | |
findMediaByCollectionId ( $collectionId, $limit, $offset ) : mixed | ||
findMediaById ( $id ) : |
Finds the media with a given id. | |
findMediaByIdForRendering ( $id, $formatKey ) : |
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 ) : |
public findMedia ( array $filter = [], integer $limit = null, integer $offset = null, Sulu\Component\Security\Authentication\UserInterface $user = null, null $permission = null ) : |
||
$filter | array | |
$limit | integer | |
$offset | integer | |
$user | Sulu\Component\Security\Authentication\UserInterface | |
$permission | null | |
Результат |
public findMediaByCollectionId ( $collectionId, $limit, $offset ) : mixed | ||
$collectionId | ||
$limit | ||
$offset | ||
Результат | mixed |
public findMediaById ( $id ) : |
||
$id | ||
Результат |
public findMediaByIdForRendering ( $id, $formatKey ) : |
||
$id | ||
$formatKey | ||
Результат |
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 |
public findMediaWithFilenameInCollectionWithId ( string $filename, integer $collectionId ) : |
||
$filename | string | |
$collectionId | integer | |
Результат |