PHP 클래스 Sulu\Bundle\MediaBundle\Api\Media

상속: extends Sulu\Component\Rest\ApiWrapper
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$additionalVersionData array
$file Sulu\Bundle\MediaBundle\Entity\File
$fileVersion Sulu\Bundle\MediaBundle\Entity\FileVersion
$formats array
$locale string
$localizedMeta Sulu\Bundle\MediaBundle\Entity\FileVersionMeta
$url string
$version integer

공개 메소드들

메소드 설명
__construct ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media, $locale, $version = null )
addCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category ) Adds a category to the entity.
addTag ( Tag $tagEntity )
getAdditionalVersionData ( ) : array
getCategories ( ) : Category[] Returns the categories of the media.
getChanged ( ) : string
getChanger ( ) : string
getCollection ( ) : integer
getContentLanguages ( ) : array
getCopyright ( ) : string Returns copyright for media.
getCreated ( ) : mixed
getCreator ( ) : string
getCredits ( ) : string Returns copyright for media.
getDescription ( ) : string
getDownloadCounter ( ) : string
getFallbackLocale ( ) : string
getFile ( ) : File
getFileVersion ( ) : FileVersion
getFocusPointX ( ) : integer Returns the x coordinate of the focus point.
getFocusPointY ( ) : integer Returns the y coordinate of the focus point.
getFormats ( ) : array
getId ( ) : integer
getLocale ( ) : string
getMimeType ( ) : string
getName ( ) : integer
getProperties ( ) : array
getPublishLanguages ( ) : array
getSize ( ) : integer
getStorageOptions ( ) : string
getSubVersion ( ) : integer
getTags ( ) : array
getThumbnails ( ) : array
getTitle ( ) : string
getType ( ) : MediaType
getUrl ( ) : string
getVersion ( ) : integer
getVersions ( ) : array
isAudio ( ) : boolean
isDocument ( ) : boolean
isImage ( ) : boolean
isTypeOf ( string $type ) : boolean
isVideo ( ) : boolean
removeCategories ( ) Removes all category from the entity.
removeTags ( )
setAdditionalVersionData ( array $additionalVersionData )
setChanged ( DateTime | string $changed )
setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer )
setCollection ( Collection $collection )
setContentLanguages ( array $contentLanguages )
setCopyright ( string $copyright )
setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator )
setCredits ( string $credits )
setDescription ( string $description )
setFocusPointX ( integer $focusPointX ) Sets the x coordinate of the focus point.
setFocusPointY ( integer $focusPointY ) Sets the y coordinate of the focus point.
setFormats ( array $formats )
setMimeType ( string $mimeType )
setName ( integer $name )
setProperties ( array $properties )
setPublishLanguages ( array $publishLanguages )
setSize ( integer $size )
setStorageOptions ( string $storageOptions )
setTitle ( string $title )
setType ( MediaType $type )
setUrl ( string $url )
setVersion ( integer $version )

비공개 메소드들

메소드 설명
getLocalizedMeta ( ) : FileVersionMeta Searches the meta for the file version in the media locale. Might also return a fallback.
getMeta ( boolean $create = false ) : FileVersionMeta

메소드 상세

__construct() 공개 메소드

public __construct ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media, $locale, $version = null )
$media Sulu\Bundle\MediaBundle\Entity\MediaInterface

addCategory() 공개 메소드

Adds a category to the entity.
public addCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category )
$category Sulu\Bundle\CategoryBundle\Entity\CategoryInterface

addTag() 공개 메소드

public addTag ( Tag $tagEntity )
$tagEntity Sulu\Bundle\TagBundle\Entity\Tag

getAdditionalVersionData() 공개 메소드

public getAdditionalVersionData ( ) : array
리턴 array

getCategories() 공개 메소드

Returns the categories of the media.
public getCategories ( ) : Category[]
리턴 Sulu\Bundle\CategoryBundle\Api\Category[]

getChanged() 공개 메소드

public getChanged ( ) : string
리턴 string

getChanger() 공개 메소드

public getChanger ( ) : string
리턴 string

getCollection() 공개 메소드

public getCollection ( ) : integer
리턴 integer

getContentLanguages() 공개 메소드

public getContentLanguages ( ) : array
리턴 array

getCopyright() 공개 메소드

Returns copyright for media.
public getCopyright ( ) : string
리턴 string

getCreated() 공개 메소드

public getCreated ( ) : mixed
리턴 mixed

getCreator() 공개 메소드

public getCreator ( ) : string
리턴 string

getCredits() 공개 메소드

Returns copyright for media.
public getCredits ( ) : string
리턴 string

getDescription() 공개 메소드

public getDescription ( ) : string
리턴 string

getDownloadCounter() 공개 메소드

public getDownloadCounter ( ) : string
리턴 string

getFallbackLocale() 공개 메소드

public getFallbackLocale ( ) : string
리턴 string

getFile() 공개 메소드

public getFile ( ) : File
리턴 Sulu\Bundle\MediaBundle\Entity\File

getFileVersion() 공개 메소드

public getFileVersion ( ) : FileVersion
리턴 Sulu\Bundle\MediaBundle\Entity\FileVersion

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

getFormats() 공개 메소드

public getFormats ( ) : array
리턴 array

getId() 공개 메소드

public getId ( ) : integer
리턴 integer

getLocale() 공개 메소드

public getLocale ( ) : string
리턴 string

getMimeType() 공개 메소드

public getMimeType ( ) : string
리턴 string

getName() 공개 메소드

public getName ( ) : integer
리턴 integer

getProperties() 공개 메소드

public getProperties ( ) : array
리턴 array

getPublishLanguages() 공개 메소드

public getPublishLanguages ( ) : array
리턴 array

getSize() 공개 메소드

public getSize ( ) : integer
리턴 integer

getStorageOptions() 공개 메소드

public getStorageOptions ( ) : string
리턴 string

getSubVersion() 공개 메소드

public getSubVersion ( ) : integer
리턴 integer

getTags() 공개 메소드

public getTags ( ) : array
리턴 array

getThumbnails() 공개 메소드

public getThumbnails ( ) : array
리턴 array

getTitle() 공개 메소드

public getTitle ( ) : string
리턴 string

getType() 공개 메소드

public getType ( ) : MediaType
리턴 Sulu\Bundle\MediaBundle\Entity\MediaType

getUrl() 공개 메소드

public getUrl ( ) : string
리턴 string

getVersion() 공개 메소드

public getVersion ( ) : integer
리턴 integer

getVersions() 공개 메소드

public getVersions ( ) : array
리턴 array

isAudio() 공개 메소드

public isAudio ( ) : boolean
리턴 boolean

isDocument() 공개 메소드

public isDocument ( ) : boolean
리턴 boolean

isImage() 공개 메소드

public isImage ( ) : boolean
리턴 boolean

isTypeOf() 공개 메소드

public isTypeOf ( string $type ) : boolean
$type string
리턴 boolean

isVideo() 공개 메소드

public isVideo ( ) : boolean
리턴 boolean

removeCategories() 공개 메소드

Removes all category from the entity.
public removeCategories ( )

removeTags() 공개 메소드

public removeTags ( )

setAdditionalVersionData() 공개 메소드

public setAdditionalVersionData ( array $additionalVersionData )
$additionalVersionData array

setChanged() 공개 메소드

public setChanged ( DateTime | string $changed )
$changed DateTime | string

setChanger() 공개 메소드

public setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer )
$changer Sulu\Component\Security\Authentication\UserInterface

setCollection() 공개 메소드

public setCollection ( Collection $collection )
$collection Collection

setContentLanguages() 공개 메소드

public setContentLanguages ( array $contentLanguages )
$contentLanguages array

setCopyright() 공개 메소드

public setCopyright ( string $copyright )
$copyright string

setCreator() 공개 메소드

public setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator )
$creator Sulu\Component\Security\Authentication\UserInterface

setCredits() 공개 메소드

public setCredits ( string $credits )
$credits string

setDescription() 공개 메소드

public setDescription ( string $description )
$description string

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

setFormats() 공개 메소드

public setFormats ( array $formats )
$formats array

setMimeType() 공개 메소드

public setMimeType ( string $mimeType )
$mimeType string

setName() 공개 메소드

public setName ( integer $name )
$name integer

setProperties() 공개 메소드

public setProperties ( array $properties )
$properties array

setPublishLanguages() 공개 메소드

public setPublishLanguages ( array $publishLanguages )
$publishLanguages array

setSize() 공개 메소드

public setSize ( integer $size )
$size integer

setStorageOptions() 공개 메소드

public setStorageOptions ( string $storageOptions )
$storageOptions string

setTitle() 공개 메소드

public setTitle ( string $title )
$title string

setType() 공개 메소드

public setType ( MediaType $type )
$type Sulu\Bundle\MediaBundle\Entity\MediaType

setUrl() 공개 메소드

public setUrl ( string $url )
$url string

setVersion() 공개 메소드

public setVersion ( integer $version )
$version integer

프로퍼티 상세

$additionalVersionData 보호되어 있는 프로퍼티

protected array $additionalVersionData
리턴 array

$file 보호되어 있는 프로퍼티

protected File,Sulu\Bundle\MediaBundle\Entity $file
리턴 Sulu\Bundle\MediaBundle\Entity\File

$fileVersion 보호되어 있는 프로퍼티

protected FileVersion,Sulu\Bundle\MediaBundle\Entity $fileVersion
리턴 Sulu\Bundle\MediaBundle\Entity\FileVersion

$formats 보호되어 있는 프로퍼티

protected array $formats
리턴 array

$locale 보호되어 있는 프로퍼티

protected string $locale
리턴 string

$localizedMeta 보호되어 있는 프로퍼티

protected FileVersionMeta,Sulu\Bundle\MediaBundle\Entity $localizedMeta
리턴 Sulu\Bundle\MediaBundle\Entity\FileVersionMeta

$url 보호되어 있는 프로퍼티

protected string $url
리턴 string

$version 보호되어 있는 프로퍼티

protected int $version
리턴 integer