PHP 인터페이스 Sulu\Bundle\MediaBundle\Media\FormatOptions\FormatOptionsManagerInterface

파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
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.

메소드 상세

delete() 공개 메소드

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() 공개 메소드

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
리턴 array

getAll() 공개 메소드

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

save() 공개 메소드

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