PHP Class Sulu\Bundle\MediaBundle\Entity\File

Inheritance: implements Sulu\Component\Persistence\Model\AuditableInterface
Exibir arquivo Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
addFileVersion ( FileVersion $fileVersions ) : File Add fileVersions.
getChanged ( ) : DateTime Get changed.
getChanger ( ) : Sulu\Component\Security\Authentication\UserInterface Get changer.
getCreated ( ) : DateTime Get created.
getCreator ( ) : Sulu\Component\Security\Authentication\UserInterface Get creator.
getFileVersions ( ) : FileVersion[] Get fileVersions.
getId ( ) : integer Get id.
getLatestFileVersion ( ) : FileVersion Get latest file version.
getMedia ( ) : Media Get media.
getVersion ( ) : integer Get version.
removeFileVersion ( FileVersion $fileVersions ) Remove fileVersions.
setChanged ( DateTime $changed ) Set changed.
setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : File Set changer.
setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator = null ) : File Set creator.
setMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) : File Set media.
setVersion ( integer $version ) : File Set version.

Method Details

__construct() public method

Constructor.
public __construct ( )

addFileVersion() public method

Add fileVersions.
public addFileVersion ( FileVersion $fileVersions ) : File
$fileVersions FileVersion
return File

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

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

getFileVersions() public method

Get fileVersions.
public getFileVersions ( ) : FileVersion[]
return FileVersion[]

getId() public method

Get id.
public getId ( ) : integer
return integer

getLatestFileVersion() public method

Get latest file version.
public getLatestFileVersion ( ) : FileVersion
return FileVersion

getMedia() public method

Get media.
public getMedia ( ) : Media
return Media

getVersion() public method

Get version.
public getVersion ( ) : integer
return integer

removeFileVersion() public method

Remove fileVersions.
public removeFileVersion ( FileVersion $fileVersions )
$fileVersions FileVersion

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 ) : File
$changer Sulu\Component\Security\Authentication\UserInterface
return File

setCreator() public method

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

setMedia() public method

Set media.
public setMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) : File
$media Sulu\Bundle\MediaBundle\Entity\MediaInterface
return File

setVersion() public method

Set version.
public setVersion ( integer $version ) : File
$version integer
return File