PHP Класс Sulu\Bundle\MediaBundle\Api\Collection

Наследование: extends Sulu\Component\Rest\ApiWrapper
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$breadcrumb array
$children Collection[]
$entity Sulu\Bundle\MediaBundle\Entity\CollectionInterface
$mediaCount integer
$parent Collection
$preview array
$properties array
$subCollectionCount integer

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

Метод Описание
__construct ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection, $locale )
addChild ( Collection $child ) Add child to resource.
getBreadcrumb ( ) : array
getChanged ( ) : string
getChanger ( ) : string
getChildren ( ) : Collection[] Returns children of resource.
getCreated ( ) : string
getCreator ( ) : string
getDescription ( ) : string
getHasSub ( ) : boolean Indicates if sub collections exists.
getId ( ) : integer
getKey ( ) : string
getLocale ( ) : mixed
getLocked ( ) : string
getMediaCount ( ) : integer
getObjectCount ( ) : integer
getParent ( ) : Collection
getPreview ( ) : array
getProperties ( ) : array
getStyle ( ) : array
getSubCollectionCount ( ) : integer
getTitle ( ) : string
getType ( ) : CollectionType
setBreadcrumb ( array $breadcrumb )
setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer )
setChildren ( Collection[] $children ) Set children of resource.
setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator )
setDescription ( string $description )
setKey ( string $key )
setMediaCount ( integer $mediaCount )
setParent ( Collection $parent )
setPreview ( array $preview )
setProperties ( array $properties )
setStyle ( array $style )
setSubCollectionCount ( integer $subCollectionCount )
setTitle ( string $title )
setType ( CollectionType $type )

Приватные методы

Метод Описание
getMeta ( boolean $create = false ) : CollectionMeta

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

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

public __construct ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $collection, $locale )
$collection Sulu\Bundle\MediaBundle\Entity\CollectionInterface

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

Add child to resource.
public addChild ( Collection $child )
$child Collection

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

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

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

public getChanged ( ) : string
Результат string

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

public getChanger ( ) : string
Результат string

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

Returns children of resource.
public getChildren ( ) : Collection[]
Результат Collection[]

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

public getCreated ( ) : string
Результат string

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

public getCreator ( ) : string
Результат string

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

public getDescription ( ) : string
Результат string

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

Indicates if sub collections exists.
public getHasSub ( ) : boolean
Результат boolean

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

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

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

public getKey ( ) : string
Результат string

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

public getLocale ( ) : mixed
Результат mixed

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

public getLocked ( ) : string
Результат string

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

public getMediaCount ( ) : integer
Результат integer The number of media contained by the collection

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

public getObjectCount ( ) : integer
Результат integer

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

public getParent ( ) : Collection
Результат Collection

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

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

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

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

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

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

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

public getSubCollectionCount ( ) : integer
Результат integer The number of sub collections contained by the collection

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

public getTitle ( ) : string
Результат string

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

public getType ( ) : CollectionType
Результат Sulu\Bundle\MediaBundle\Entity\CollectionType

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

public setBreadcrumb ( array $breadcrumb )
$breadcrumb array

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

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

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

Set children of resource.
public setChildren ( Collection[] $children )
$children Collection[]

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

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

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

public setDescription ( string $description )
$description string

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

public setKey ( string $key )
$key string

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

public setMediaCount ( integer $mediaCount )
$mediaCount integer The new number of media

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

public setParent ( Collection $parent )
$parent Collection

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

public setPreview ( array $preview )
$preview array

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

public setProperties ( array $properties )
$properties array

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

public setStyle ( array $style )
$style array

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

public setSubCollectionCount ( integer $subCollectionCount )
$subCollectionCount integer The new number of sub collections

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

public setTitle ( string $title )
$title string

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

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

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

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

protected array $breadcrumb
Результат array

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

protected Collection[],Sulu\Bundle\MediaBundle\Api $children
Результат Collection[]

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

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

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

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

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

protected Collection,Sulu\Bundle\MediaBundle\Api $parent
Результат Collection

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

protected array $preview
Результат array

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

protected array $properties
Результат array

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

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