PHP Interface Sulu\Bundle\MediaBundle\Media\FormatOptions\FormatOptionsManagerInterface

Mostra file Open project: sulu/sulu

Public Methods

Method Description
delete ( $mediaId, $formatKey ) Deletes a format option, identified by the id of the file-version and the key of the format.
get ( $mediaId, $formatKey ) : array Returns the options for a single media identified by the id of the media and the key of the format.
getAll ( $mediaId ) : mixed Returns the options for all formats for a single media identified by its id.
save ( integer $mediaId, string $formatKey, array $data ) : FormatOptions Creates or changes a format options with given data.

Method Details

delete() public method

Deletes a format option, identified by the id of the file-version and the key of the format.
public delete ( $mediaId, $formatKey )
$mediaId
$formatKey

get() public method

Returns the options for a single media identified by the id of the media and the key of the format.
public get ( $mediaId, $formatKey ) : array
$mediaId
$formatKey
return array

getAll() public method

Returns the options for all formats for a single media identified by its id.
public getAll ( $mediaId ) : mixed
$mediaId
return mixed

save() public method

Creates or changes a format options with given data.
public save ( integer $mediaId, string $formatKey, array $data ) : FormatOptions
$mediaId integer
$formatKey string
$data array
return Sulu\Bundle\MediaBundle\Entity\FormatOptions