PHP Class Sulu\Bundle\MediaBundle\Entity\FileVersion

Inheritance: implements Sulu\Component\Persistence\Model\AuditableInterface
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

__construct() public méthode

Constructor.
public __construct ( )

addCategory() public méthode

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

addContentLanguage() public méthode

Add contentLanguages.
public addContentLanguage ( FileVersionContentLanguage $contentLanguages ) : FileVersion
$contentLanguages FileVersionContentLanguage
Résultat FileVersion

addFormatOptions() public méthode

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

addMeta() public méthode

Add meta.
public addMeta ( FileVersionMeta $meta ) : FileVersion
$meta FileVersionMeta
Résultat FileVersion

addPublishLanguage() public méthode

Add publishLanguages.
public addPublishLanguage ( FileVersionPublishLanguage $publishLanguages ) : FileVersion
$publishLanguages FileVersionPublishLanguage
Résultat FileVersion

addTag() public méthode

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

getCategories() public méthode

Get categories.
public getCategories ( ) : Collection
Résultat Collection

getChanged() public méthode

Get changed.
public getChanged ( ) : DateTime
Résultat DateTime

getChanger() public méthode

Get changer.
public getChanger ( ) : Sulu\Component\Security\Authentication\UserInterface
Résultat Sulu\Component\Security\Authentication\UserInterface

getContentLanguages() public méthode

Get contentLanguages.
public getContentLanguages ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

getCreated() public méthode

Get created.
public getCreated ( ) : DateTime
Résultat DateTime

getCreator() public méthode

Get creator.
public getCreator ( ) : Sulu\Component\Security\Authentication\UserInterface
Résultat Sulu\Component\Security\Authentication\UserInterface

getDefaultMeta() public méthode

Get defaultMeta.
public getDefaultMeta ( ) : FileVersionMeta
Résultat FileVersionMeta

getDownloadCounter() public méthode

Get downloadCounter.
public getDownloadCounter ( ) : integer
Résultat integer

getFile() public méthode

Get file.
public getFile ( ) : File
Résultat File

getFocusPointX() public méthode

Returns the x coordinate of the focus point.
public getFocusPointX ( ) : integer
Résultat integer

getFocusPointY() public méthode

Returns the y coordinate of the focus point.
public getFocusPointY ( ) : integer
Résultat integer

getFormatOptions() public méthode

Get formatOptions.
public getFormatOptions ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

getId() public méthode

Get id.
public getId ( ) : integer
Résultat integer

getMeta() public méthode

Get meta.
public getMeta ( ) : FileVersionMeta[]
Résultat FileVersionMeta[]

getMimeType() public méthode

Get mimeType.
public getMimeType ( ) : string
Résultat string

getName() public méthode

Get name.
public getName ( ) : string
Résultat string

getProperties() public méthode

public getProperties ( ) : array
Résultat array

getPublishLanguages() public méthode

Get publishLanguages.
public getPublishLanguages ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

getSize() public méthode

Get size.
public getSize ( ) : integer
Résultat integer

getStorageOptions() public méthode

Get storageOptions.
public getStorageOptions ( ) : string
Résultat string

getStorageType() public méthode

Get storageType.
public getStorageType ( ) : string
Résultat string

getSubVersion() public méthode

Get subVersion.
public getSubVersion ( ) : integer
Résultat integer

getTags() public méthode

Get tags.
public getTags ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

getVersion() public méthode

Get version.
public getVersion ( ) : integer
Résultat integer

increaseSubVersion() public méthode

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

removeCategories() public méthode

Remove categories.
public removeCategories ( )

removeContentLanguage() public méthode

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

removeMeta() public méthode

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

removePublishLanguage() public méthode

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

removeTag() public méthode

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

removeTags() public méthode

Remove all tags.
public removeTags ( )

setChanged() public méthode

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

setChanger() public méthode

Set changer.
public setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : FileVersion
$changer Sulu\Component\Security\Authentication\UserInterface
Résultat FileVersion

setCreated() public méthode

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

setCreator() public méthode

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

setDefaultMeta() public méthode

Set defaultMeta.
public setDefaultMeta ( FileVersionMeta $defaultMeta = null ) : FileVersion
$defaultMeta FileVersionMeta
Résultat FileVersion

setDownloadCounter() public méthode

Set downloadCounter.
public setDownloadCounter ( integer $downloadCounter ) : FileVersion
$downloadCounter integer
Résultat FileVersion

setFile() public méthode

Set file.
public setFile ( File $file = null ) : FileVersion
$file File
Résultat FileVersion

setFocusPointX() public méthode

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

setFocusPointY() public méthode

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

setMimeType() public méthode

Set mimeType.
public setMimeType ( string $mimeType ) : FileVersion
$mimeType string
Résultat FileVersion

setName() public méthode

Set name.
public setName ( string $name ) : FileVersion
$name string
Résultat FileVersion

setProperties() public méthode

public setProperties ( array $properties ) : self
$properties array
Résultat self

setSize() public méthode

Set size.
public setSize ( integer $size ) : FileVersion
$size integer
Résultat FileVersion

setStorageOptions() public méthode

Set storageOptions.
public setStorageOptions ( string $storageOptions ) : FileVersion
$storageOptions string
Résultat FileVersion

setStorageType() public méthode

Set storageType.
public setStorageType ( string $storageType ) : FileVersion
$storageType string
Résultat FileVersion

setVersion() public méthode

Set version.
public setVersion ( integer $version ) : FileVersion
$version integer
Résultat FileVersion