PHP Interface Sulu\Bundle\MediaBundle\Media\TypeManager\TypeManagerInterface

Mostra file Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
get ( integer $id ) : MediaType Returns a Media Type by a given ID.
getMediaType ( string $fileMimeType ) : integer Returns a Media Type ID by a given mime type.

Method Details

get() public method

Returns a Media Type by a given ID.
public get ( integer $id ) : MediaType
$id integer
return Sulu\Bundle\MediaBundle\Entity\MediaType

getMediaType() public method

Returns a Media Type ID by a given mime type.
public getMediaType ( string $fileMimeType ) : integer
$fileMimeType string
return integer