PHP Class Sulu\Bundle\MediaBundle\Entity\Media

Inheritance: implements Sulu\Bundle\MediaBundle\Entity\MediaInterface
显示文件 Open project: sulu/sulu Class Usage Examples

Protected Properties

Property Type Description
$changed DateTime
$changer Sulu\Component\Security\Authentication\UserInterface
$collection Sulu\Bundle\MediaBundle\Entity\CollectionInterface
$created DateTime
$creator Sulu\Component\Security\Authentication\UserInterface
$files Doctrine\Common\Collections\Collection
$id integer
$previewImage Media
$type MediaType

Public Methods

Method Description
__construct ( ) Constructor.
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

__construct() public method

Constructor.
public __construct ( )

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

Property Details

$changed protected_oe property

protected DateTime $changed
return DateTime

$changer protected_oe property

protected UserInterface,Sulu\Component\Security\Authentication $changer
return Sulu\Component\Security\Authentication\UserInterface

$collection protected_oe property

protected CollectionInterface,Sulu\Bundle\MediaBundle\Entity $collection
return Sulu\Bundle\MediaBundle\Entity\CollectionInterface

$created protected_oe property

protected DateTime $created
return DateTime

$creator protected_oe property

protected UserInterface,Sulu\Component\Security\Authentication $creator
return Sulu\Component\Security\Authentication\UserInterface

$files protected_oe property

protected Collection,Doctrine\Common\Collections $files
return Doctrine\Common\Collections\Collection

$id protected_oe property

protected int $id
return integer

$previewImage protected_oe property

protected Media,Sulu\Bundle\MediaBundle\Entity $previewImage
return Media

$type protected_oe property

protected MediaType,Sulu\Bundle\MediaBundle\Entity $type
return MediaType