PHP Interface Neos\Media\Domain\Model\AssetInterface

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

Public Methods

Method 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 method

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

getMediaType() public method

Returns the IANA media type of this asset
public getMediaType ( ) : string
return string

getResource() public method

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

getTitle() public method

The title of this asset
public getTitle ( ) : string
return string Title of the asset

setResource() public method

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

setTitle() public method

Sets the title of this asset
public setTitle ( string $title ) : void
$title string
return void