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

Наследование: implements Sulu\Bundle\MediaBundle\Entity\MediaInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$changed DateTime
$changer Sulu\Component\Security\Authentication\UserInterface
$collection Sulu\Bundle\MediaBundle\Entity\CollectionInterface
$created DateTime
$creator Sulu\Component\Security\Authentication\UserInterface
$files Doctrine\Common\Collections\Collection
$id integer
$previewImage Media
$type MediaType

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

Метод Описание
__construct ( ) Constructor.
addFile ( File $files ) : Media Add files.
getChanged ( ) : DateTime Get changed.
getChanger ( ) : Sulu\Component\Security\Authentication\UserInterface Get changer.
getCollection ( ) : Sulu\Bundle\MediaBundle\Entity\CollectionInterface Get collectionInterface.
getCreated ( ) : DateTime Get created.
getCreator ( ) : Sulu\Component\Security\Authentication\UserInterface Get creator.
getFiles ( ) : File[] Get files.
getId ( ) : integer Get id.
getPreviewImage ( ) : Media Get preview image.
getType ( ) : MediaType Get type.
removeFile ( File $files ) Remove files.
setChanged ( DateTime $changed ) Set changed.
setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer = null ) : Media Set changer.
setCollection ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection ) : Media Set collection.
setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator = null ) : Media Set creator.
setPreviewImage ( Media $previewImage = null ) : Media Set preview image.
setType ( MediaType $type ) : Media Set type.

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

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

Constructor.
public __construct ( )

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

Add files.
public addFile ( File $files ) : Media
$files File
Результат Media

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

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

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

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

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

Get collectionInterface.
public getCollection ( ) : Sulu\Bundle\MediaBundle\Entity\CollectionInterface
Результат Sulu\Bundle\MediaBundle\Entity\CollectionInterface

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

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

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

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

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

Get files.
public getFiles ( ) : File[]
Результат File[]

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

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

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

Get preview image.
public getPreviewImage ( ) : Media
Результат Media

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

Get type.
public getType ( ) : MediaType
Результат MediaType

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

Remove files.
public removeFile ( File $files )
$files File

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

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

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

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

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

Set collection.
public setCollection ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection ) : Media
$collection Sulu\Bundle\MediaBundle\Entity\CollectionInterface
Результат Media

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

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

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

Set preview image.
public setPreviewImage ( Media $previewImage = null ) : Media
$previewImage Media
Результат Media

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

Set type.
public setType ( MediaType $type ) : Media
$type MediaType
Результат Media

Описание свойств

$changed защищенное свойство

protected DateTime $changed
Результат DateTime

$changer защищенное свойство

protected UserInterface,Sulu\Component\Security\Authentication $changer
Результат Sulu\Component\Security\Authentication\UserInterface

$collection защищенное свойство

protected CollectionInterface,Sulu\Bundle\MediaBundle\Entity $collection
Результат Sulu\Bundle\MediaBundle\Entity\CollectionInterface

$created защищенное свойство

protected DateTime $created
Результат DateTime

$creator защищенное свойство

protected UserInterface,Sulu\Component\Security\Authentication $creator
Результат Sulu\Component\Security\Authentication\UserInterface

$files защищенное свойство

protected Collection,Doctrine\Common\Collections $files
Результат Doctrine\Common\Collections\Collection

$id защищенное свойство

protected int $id
Результат integer

$previewImage защищенное свойство

protected Media,Sulu\Bundle\MediaBundle\Entity $previewImage
Результат Media

$type защищенное свойство

protected MediaType,Sulu\Bundle\MediaBundle\Entity $type
Результат MediaType