PHP Class Sulu\Bundle\MediaBundle\Entity\FileVersion

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

Public Methods

Method Description
__clone ( ) don't clone id to create a new entities.
__construct ( ) Constructor.
addCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $categories ) : self Add categories.
addContentLanguage ( FileVersionContentLanguage $contentLanguages ) : FileVersion Add contentLanguages.
addFormatOptions ( FormatOptions $formatOptions ) : FileVersion Adds a format-options entity to the file-version.
addMeta ( FileVersionMeta $meta ) : FileVersion Add meta.
addPublishLanguage ( FileVersionPublishLanguage $publishLanguages ) : FileVersion Add publishLanguages.
addTag ( Tag $tags ) : FileVersion Add tags.
getCategories ( ) : Collection Get categories.
getChanged ( ) : DateTime Get changed.
getChanger ( ) : Sulu\Component\Security\Authentication\UserInterface Get changer.
getContentLanguages ( ) : Doctrine\Common\Collections\Collection Get contentLanguages.
getCreated ( ) : DateTime Get created.
getCreator ( ) : Sulu\Component\Security\Authentication\UserInterface Get creator.
getDefaultMeta ( ) : FileVersionMeta Get defaultMeta.
getDownloadCounter ( ) : integer Get downloadCounter.
getFile ( ) : File Get file.
getFocusPointX ( ) : integer Returns the x coordinate of the focus point.
getFocusPointY ( ) : integer Returns the y coordinate of the focus point.
getFormatOptions ( ) : Doctrine\Common\Collections\Collection Get formatOptions.
getId ( ) : integer Get id.
getMeta ( ) : FileVersionMeta[] Get meta.
getMimeType ( ) : string Get mimeType.
getName ( ) : string Get name.
getProperties ( ) : array
getPublishLanguages ( ) : Doctrine\Common\Collections\Collection Get publishLanguages.
getSize ( ) : integer Get size.
getStorageOptions ( ) : string Get storageOptions.
getStorageType ( ) : string Get storageType.
getSubVersion ( ) : integer Get subVersion.
getTags ( ) : Doctrine\Common\Collections\Collection Get tags.
getVersion ( ) : integer Get version.
increaseSubVersion ( ) : FileVersion Increases the subversion. Required for cache busting on certain operations which change the image without creating a new file version.
removeCategories ( ) Remove categories.
removeContentLanguage ( FileVersionContentLanguage $contentLanguages ) Remove contentLanguages.
removeMeta ( FileVersionMeta $meta ) Remove meta.
removePublishLanguage ( FileVersionPublishLanguage $publishLanguages ) Remove publishLanguages.
removeTag ( Tag $tags ) Remove tags.
removeTags ( ) Remove all tags.
setChanged ( DateTime $changed ) Set changed.
setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : FileVersion Set changer.
setCreated ( DateTime $created ) Get created.
setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator = null ) : FileVersion Set creator.
setDefaultMeta ( FileVersionMeta $defaultMeta = null ) : FileVersion Set defaultMeta.
setDownloadCounter ( integer $downloadCounter ) : FileVersion Set downloadCounter.
setFile ( File $file = null ) : FileVersion Set file.
setFocusPointX ( integer $focusPointX ) Sets the x coordinate of the focus point.
setFocusPointY ( integer $focusPointY ) Sets the y coordinate of the focus point.
setMimeType ( string $mimeType ) : FileVersion Set mimeType.
setName ( string $name ) : FileVersion Set name.
setProperties ( array $properties ) : self
setSize ( integer $size ) : FileVersion Set size.
setStorageOptions ( string $storageOptions ) : FileVersion Set storageOptions.
setStorageType ( string $storageType ) : FileVersion Set storageType.
setVersion ( integer $version ) : FileVersion Set version.

Method Details

__clone() public method

don't clone id to create a new entities.
public __clone ( )

__construct() public method

Constructor.
public __construct ( )

addCategory() public method

Add categories.
public addCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $categories ) : self
$categories Sulu\Bundle\CategoryBundle\Entity\CategoryInterface
return self

addContentLanguage() public method

Add contentLanguages.
public addContentLanguage ( FileVersionContentLanguage $contentLanguages ) : FileVersion
$contentLanguages FileVersionContentLanguage
return FileVersion

addFormatOptions() public method

Adds a format-options entity to the file-version.
public addFormatOptions ( FormatOptions $formatOptions ) : FileVersion
$formatOptions FormatOptions
return FileVersion

addMeta() public method

Add meta.
public addMeta ( FileVersionMeta $meta ) : FileVersion
$meta FileVersionMeta
return FileVersion

addPublishLanguage() public method

Add publishLanguages.
public addPublishLanguage ( FileVersionPublishLanguage $publishLanguages ) : FileVersion
$publishLanguages FileVersionPublishLanguage
return FileVersion

addTag() public method

Add tags.
public addTag ( Tag $tags ) : FileVersion
$tags Sulu\Bundle\TagBundle\Entity\Tag
return FileVersion

getCategories() public method

Get categories.
public getCategories ( ) : Collection
return Collection

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

getContentLanguages() public method

Get contentLanguages.
public getContentLanguages ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

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

getDefaultMeta() public method

Get defaultMeta.
public getDefaultMeta ( ) : FileVersionMeta
return FileVersionMeta

getDownloadCounter() public method

Get downloadCounter.
public getDownloadCounter ( ) : integer
return integer

getFile() public method

Get file.
public getFile ( ) : File
return File

getFocusPointX() public method

Returns the x coordinate of the focus point.
public getFocusPointX ( ) : integer
return integer

getFocusPointY() public method

Returns the y coordinate of the focus point.
public getFocusPointY ( ) : integer
return integer

getFormatOptions() public method

Get formatOptions.
public getFormatOptions ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getId() public method

Get id.
public getId ( ) : integer
return integer

getMeta() public method

Get meta.
public getMeta ( ) : FileVersionMeta[]
return FileVersionMeta[]

getMimeType() public method

Get mimeType.
public getMimeType ( ) : string
return string

getName() public method

Get name.
public getName ( ) : string
return string

getProperties() public method

public getProperties ( ) : array
return array

getPublishLanguages() public method

Get publishLanguages.
public getPublishLanguages ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getSize() public method

Get size.
public getSize ( ) : integer
return integer

getStorageOptions() public method

Get storageOptions.
public getStorageOptions ( ) : string
return string

getStorageType() public method

Get storageType.
public getStorageType ( ) : string
return string

getSubVersion() public method

Get subVersion.
public getSubVersion ( ) : integer
return integer

getTags() public method

Get tags.
public getTags ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getVersion() public method

Get version.
public getVersion ( ) : integer
return integer

increaseSubVersion() public method

Increases the subversion. Required for cache busting on certain operations which change the image without creating a new file version.
public increaseSubVersion ( ) : FileVersion
return FileVersion

removeCategories() public method

Remove categories.
public removeCategories ( )

removeContentLanguage() public method

Remove contentLanguages.
public removeContentLanguage ( FileVersionContentLanguage $contentLanguages )
$contentLanguages FileVersionContentLanguage

removeMeta() public method

Remove meta.
public removeMeta ( FileVersionMeta $meta )
$meta FileVersionMeta

removePublishLanguage() public method

Remove publishLanguages.
public removePublishLanguage ( FileVersionPublishLanguage $publishLanguages )
$publishLanguages FileVersionPublishLanguage

removeTag() public method

Remove tags.
public removeTag ( Tag $tags )
$tags Sulu\Bundle\TagBundle\Entity\Tag

removeTags() public method

Remove all tags.
public removeTags ( )

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

setCreated() public method

Get created.
public setCreated ( DateTime $created )
$created DateTime

setCreator() public method

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

setDefaultMeta() public method

Set defaultMeta.
public setDefaultMeta ( FileVersionMeta $defaultMeta = null ) : FileVersion
$defaultMeta FileVersionMeta
return FileVersion

setDownloadCounter() public method

Set downloadCounter.
public setDownloadCounter ( integer $downloadCounter ) : FileVersion
$downloadCounter integer
return FileVersion

setFile() public method

Set file.
public setFile ( File $file = null ) : FileVersion
$file File
return FileVersion

setFocusPointX() public method

Sets the x coordinate of the focus point.
public setFocusPointX ( integer $focusPointX )
$focusPointX integer

setFocusPointY() public method

Sets the y coordinate of the focus point.
public setFocusPointY ( integer $focusPointY )
$focusPointY integer

setMimeType() public method

Set mimeType.
public setMimeType ( string $mimeType ) : FileVersion
$mimeType string
return FileVersion

setName() public method

Set name.
public setName ( string $name ) : FileVersion
$name string
return FileVersion

setProperties() public method

public setProperties ( array $properties ) : self
$properties array
return self

setSize() public method

Set size.
public setSize ( integer $size ) : FileVersion
$size integer
return FileVersion

setStorageOptions() public method

Set storageOptions.
public setStorageOptions ( string $storageOptions ) : FileVersion
$storageOptions string
return FileVersion

setStorageType() public method

Set storageType.
public setStorageType ( string $storageType ) : FileVersion
$storageType string
return FileVersion

setVersion() public method

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