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

Afficher le fichier Open project: sulu/sulu Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getMediaType() public méthode

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