PHP Interface Neos\Media\Domain\Model\AssetInterface

Inheritance: extends Neos\Media\Domain\Model\ResourceBasedInterface, extends Neos\Media\Domain\Model\ThumbnailSupportInterface
Afficher le fichier Open project: neos/neos-development-collection Interface Usage Examples

Méthodes publiques

Méthode Description
getFileExtension ( ) : string Returns a file extension fitting to the media type of this asset
getMediaType ( ) : string Returns the IANA media type of this asset
getResource ( ) : PersistentResource Returns the resource of this asset
getTitle ( ) : string The title of this asset
setResource ( PersistentResource $resource ) : void Sets the resource and possibly triggers a refresh of dependent behavior
setTitle ( string $title ) : void Sets the title of this asset

Method Details

getFileExtension() public méthode

Returns a file extension fitting to the media type of this asset
public getFileExtension ( ) : string
Résultat string

getMediaType() public méthode

Returns the IANA media type of this asset
public getMediaType ( ) : string
Résultat string

getResource() public méthode

Returns the resource of this asset
public getResource ( ) : PersistentResource
Résultat Neos\Flow\ResourceManagement\PersistentResource

getTitle() public méthode

The title of this asset
public getTitle ( ) : string
Résultat string Title of the asset

setResource() public méthode

Sets the resource and possibly triggers a refresh of dependent behavior
public setResource ( PersistentResource $resource ) : void
$resource Neos\Flow\ResourceManagement\PersistentResource
Résultat void

setTitle() public méthode

Sets the title of this asset
public setTitle ( string $title ) : void
$title string
Résultat void