PHP Класс Sulu\Bundle\MediaBundle\Entity\FileVersion

Наследование: implements Sulu\Component\Persistence\Model\AuditableInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__clone() публичный Метод

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

__construct() публичный Метод

Constructor.
public __construct ( )

addCategory() публичный Метод

Add categories.
public addCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $categories ) : self
$categories Sulu\Bundle\CategoryBundle\Entity\CategoryInterface
Результат self

addContentLanguage() публичный Метод

Add contentLanguages.
public addContentLanguage ( FileVersionContentLanguage $contentLanguages ) : FileVersion
$contentLanguages FileVersionContentLanguage
Результат FileVersion

addFormatOptions() публичный Метод

Adds a format-options entity to the file-version.
public addFormatOptions ( FormatOptions $formatOptions ) : FileVersion
$formatOptions FormatOptions
Результат FileVersion

addMeta() публичный Метод

Add meta.
public addMeta ( FileVersionMeta $meta ) : FileVersion
$meta FileVersionMeta
Результат FileVersion

addPublishLanguage() публичный Метод

Add publishLanguages.
public addPublishLanguage ( FileVersionPublishLanguage $publishLanguages ) : FileVersion
$publishLanguages FileVersionPublishLanguage
Результат FileVersion

addTag() публичный Метод

Add tags.
public addTag ( Tag $tags ) : FileVersion
$tags Sulu\Bundle\TagBundle\Entity\Tag
Результат FileVersion

getCategories() публичный Метод

Get categories.
public getCategories ( ) : Collection
Результат Collection

getChanged() публичный Метод

Get changed.
public getChanged ( ) : DateTime
Результат DateTime

getChanger() публичный Метод

Get changer.
public getChanger ( ) : Sulu\Component\Security\Authentication\UserInterface
Результат Sulu\Component\Security\Authentication\UserInterface

getContentLanguages() публичный Метод

Get contentLanguages.
public getContentLanguages ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection

getCreated() публичный Метод

Get created.
public getCreated ( ) : DateTime
Результат DateTime

getCreator() публичный Метод

Get creator.
public getCreator ( ) : Sulu\Component\Security\Authentication\UserInterface
Результат Sulu\Component\Security\Authentication\UserInterface

getDefaultMeta() публичный Метод

Get defaultMeta.
public getDefaultMeta ( ) : FileVersionMeta
Результат FileVersionMeta

getDownloadCounter() публичный Метод

Get downloadCounter.
public getDownloadCounter ( ) : integer
Результат integer

getFile() публичный Метод

Get file.
public getFile ( ) : File
Результат File

getFocusPointX() публичный Метод

Returns the x coordinate of the focus point.
public getFocusPointX ( ) : integer
Результат integer

getFocusPointY() публичный Метод

Returns the y coordinate of the focus point.
public getFocusPointY ( ) : integer
Результат integer

getFormatOptions() публичный Метод

Get formatOptions.
public getFormatOptions ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection

getId() публичный Метод

Get id.
public getId ( ) : integer
Результат integer

getMeta() публичный Метод

Get meta.
public getMeta ( ) : FileVersionMeta[]
Результат FileVersionMeta[]

getMimeType() публичный Метод

Get mimeType.
public getMimeType ( ) : string
Результат string

getName() публичный Метод

Get name.
public getName ( ) : string
Результат string

getProperties() публичный Метод

public getProperties ( ) : array
Результат array

getPublishLanguages() публичный Метод

Get publishLanguages.
public getPublishLanguages ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection

getSize() публичный Метод

Get size.
public getSize ( ) : integer
Результат integer

getStorageOptions() публичный Метод

Get storageOptions.
public getStorageOptions ( ) : string
Результат string

getStorageType() публичный Метод

Get storageType.
public getStorageType ( ) : string
Результат string

getSubVersion() публичный Метод

Get subVersion.
public getSubVersion ( ) : integer
Результат integer

getTags() публичный Метод

Get tags.
public getTags ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection

getVersion() публичный Метод

Get version.
public getVersion ( ) : integer
Результат integer

increaseSubVersion() публичный Метод

Increases the subversion. Required for cache busting on certain operations which change the image without creating a new file version.
public increaseSubVersion ( ) : FileVersion
Результат FileVersion

removeCategories() публичный Метод

Remove categories.
public removeCategories ( )

removeContentLanguage() публичный Метод

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

removeMeta() публичный Метод

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

removePublishLanguage() публичный Метод

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

removeTag() публичный Метод

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

removeTags() публичный Метод

Remove all tags.
public removeTags ( )

setChanged() публичный Метод

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

setChanger() публичный Метод

Set changer.
public setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : FileVersion
$changer Sulu\Component\Security\Authentication\UserInterface
Результат FileVersion

setCreated() публичный Метод

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

setCreator() публичный Метод

Set creator.
public setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator = null ) : FileVersion
$creator Sulu\Component\Security\Authentication\UserInterface
Результат FileVersion

setDefaultMeta() публичный Метод

Set defaultMeta.
public setDefaultMeta ( FileVersionMeta $defaultMeta = null ) : FileVersion
$defaultMeta FileVersionMeta
Результат FileVersion

setDownloadCounter() публичный Метод

Set downloadCounter.
public setDownloadCounter ( integer $downloadCounter ) : FileVersion
$downloadCounter integer
Результат FileVersion

setFile() публичный Метод

Set file.
public setFile ( File $file = null ) : FileVersion
$file File
Результат FileVersion

setFocusPointX() публичный Метод

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

setFocusPointY() публичный Метод

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

setMimeType() публичный Метод

Set mimeType.
public setMimeType ( string $mimeType ) : FileVersion
$mimeType string
Результат FileVersion

setName() публичный Метод

Set name.
public setName ( string $name ) : FileVersion
$name string
Результат FileVersion

setProperties() публичный Метод

public setProperties ( array $properties ) : self
$properties array
Результат self

setSize() публичный Метод

Set size.
public setSize ( integer $size ) : FileVersion
$size integer
Результат FileVersion

setStorageOptions() публичный Метод

Set storageOptions.
public setStorageOptions ( string $storageOptions ) : FileVersion
$storageOptions string
Результат FileVersion

setStorageType() публичный Метод

Set storageType.
public setStorageType ( string $storageType ) : FileVersion
$storageType string
Результат FileVersion

setVersion() публичный Метод

Set version.
public setVersion ( integer $version ) : FileVersion
$version integer
Результат FileVersion