PHP Interface Sulu\Bundle\MediaBundle\Entity\MediaInterface

Inheritance: extends Sulu\Component\Persistence\Model\AuditableInterface
Mostrar archivo Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
addFile ( File $files ) : Media Add files.
getChanged ( ) : DateTime Get changed.
getChanger ( ) : Sulu\Component\Security\Authentication\UserInterface Get changer.
getCollection ( ) : Sulu\Bundle\MediaBundle\Entity\CollectionInterface Get collectionInterface.
getCreated ( ) : DateTime Get created.
getCreator ( ) : Sulu\Component\Security\Authentication\UserInterface Get creator.
getFiles ( ) : File[] Get files.
getId ( ) : integer Get id.
getPreviewImage ( ) : Media Get preview image.
getType ( ) : MediaType Get type.
removeFile ( File $files ) Remove files.
setChanged ( DateTime $changed ) Set changed.
setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : Media Set changer.
setCollection ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection ) : Media Set collection.
setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator = null ) : Media Set creator.
setPreviewImage ( Media $previewImage = null ) : Media Set preview image.
setType ( MediaType $type ) : Media Set type.

Method Details

addFile() public method

Add files.
public addFile ( File $files ) : Media
$files File
return Media

getChanged() public method

Get changed.
public getChanged ( ) : DateTime
return DateTime

getChanger() public method

Get changer.
public getChanger ( ) : Sulu\Component\Security\Authentication\UserInterface
return Sulu\Component\Security\Authentication\UserInterface

getCollection() public method

Get collectionInterface.
public getCollection ( ) : Sulu\Bundle\MediaBundle\Entity\CollectionInterface
return Sulu\Bundle\MediaBundle\Entity\CollectionInterface

getCreated() public method

Get created.
public getCreated ( ) : DateTime
return DateTime

getCreator() public method

Get creator.
public getCreator ( ) : Sulu\Component\Security\Authentication\UserInterface
return Sulu\Component\Security\Authentication\UserInterface

getFiles() public method

Get files.
public getFiles ( ) : File[]
return File[]

getId() public method

Get id.
public getId ( ) : integer
return integer

getPreviewImage() public method

Get preview image.
public getPreviewImage ( ) : Media
return Media

getType() public method

Get type.
public getType ( ) : MediaType
return MediaType

removeFile() public method

Remove files.
public removeFile ( File $files )
$files File

setChanged() public method

Set changed.
public setChanged ( DateTime $changed )
$changed DateTime

setChanger() public method

Set changer.
public setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : Media
$changer Sulu\Component\Security\Authentication\UserInterface
return Media

setCollection() public method

Set collection.
public setCollection ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection ) : Media
$collection Sulu\Bundle\MediaBundle\Entity\CollectionInterface
return Media

setCreator() public method

Set creator.
public setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator = null ) : Media
$creator Sulu\Component\Security\Authentication\UserInterface
return Media

setPreviewImage() public method

Set preview image.
public setPreviewImage ( Media $previewImage = null ) : Media
$previewImage Media
return Media

setType() public method

Set type.
public setType ( MediaType $type ) : Media
$type MediaType
return Media