Method | Description | |
---|---|---|
__construct ( Doctrine\ORM\EntityManagerInterface $em, Doctrine\ORM\EntityRepository $formatOptionsRepository, Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface $mediaManager, Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface $formatManager, array $formats ) | ||
delete ( $mediaId, $formatKey ) | ||
get ( $mediaId, $formatKey ) | ||
getAll ( $mediaId ) | ||
save ( $mediaId, $formatKey, array $data ) |
Method | Description | |
---|---|---|
entityToArray ( |
Converts a given entity to its array representation. | |
getFileVersionForMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) : |
Gets the latest file-version of a given media. | |
purgeMedia ( integer $mediaId, |
Purges a file-version of a media with a given id. | |
setDataOnEntity ( |
Sets a given array of data onto a given format-options entity. |
public __construct ( Doctrine\ORM\EntityManagerInterface $em, Doctrine\ORM\EntityRepository $formatOptionsRepository, Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface $mediaManager, Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface $formatManager, array $formats ) | ||
$em | Doctrine\ORM\EntityManagerInterface | |
$formatOptionsRepository | Doctrine\ORM\EntityRepository | |
$mediaManager | Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface | |
$formatManager | Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface | |
$formats | array |