PHP Class Sulu\Bundle\MediaBundle\Api\Collection

Inheritance: extends Sulu\Component\Rest\ApiWrapper
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Protected Properties

Свойство Type Description
$breadcrumb array
$children Collection[]
$entity Sulu\Bundle\MediaBundle\Entity\CollectionInterface
$mediaCount integer
$parent Collection
$preview array
$properties array
$subCollectionCount integer

Méthodes publiques

Méthode Description
__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 )

Private Methods

Méthode Description
getMeta ( boolean $create = false ) : CollectionMeta

Method Details

__construct() public méthode

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

addChild() public méthode

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

getBreadcrumb() public méthode

public getBreadcrumb ( ) : array
Résultat array

getChanged() public méthode

public getChanged ( ) : string
Résultat string

getChanger() public méthode

public getChanger ( ) : string
Résultat string

getChildren() public méthode

Returns children of resource.
public getChildren ( ) : Collection[]
Résultat Collection[]

getCreated() public méthode

public getCreated ( ) : string
Résultat string

getCreator() public méthode

public getCreator ( ) : string
Résultat string

getDescription() public méthode

public getDescription ( ) : string
Résultat string

getHasSub() public méthode

Indicates if sub collections exists.
public getHasSub ( ) : boolean
Résultat boolean

getId() public méthode

public getId ( ) : integer
Résultat integer

getKey() public méthode

public getKey ( ) : string
Résultat string

getLocale() public méthode

public getLocale ( ) : mixed
Résultat mixed

getLocked() public méthode

public getLocked ( ) : string
Résultat string

getMediaCount() public méthode

public getMediaCount ( ) : integer
Résultat integer The number of media contained by the collection

getObjectCount() public méthode

public getObjectCount ( ) : integer
Résultat integer

getParent() public méthode

public getParent ( ) : Collection
Résultat Collection

getPreview() public méthode

public getPreview ( ) : array
Résultat array

getProperties() public méthode

public getProperties ( ) : array
Résultat array

getStyle() public méthode

public getStyle ( ) : array
Résultat array

getSubCollectionCount() public méthode

public getSubCollectionCount ( ) : integer
Résultat integer The number of sub collections contained by the collection

getTitle() public méthode

public getTitle ( ) : string
Résultat string

getType() public méthode

public getType ( ) : CollectionType
Résultat Sulu\Bundle\MediaBundle\Entity\CollectionType

setBreadcrumb() public méthode

public setBreadcrumb ( array $breadcrumb )
$breadcrumb array

setChanger() public méthode

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

setChildren() public méthode

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

setCreator() public méthode

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

setDescription() public méthode

public setDescription ( string $description )
$description string

setKey() public méthode

public setKey ( string $key )
$key string

setMediaCount() public méthode

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

setParent() public méthode

public setParent ( Collection $parent )
$parent Collection

setPreview() public méthode

public setPreview ( array $preview )
$preview array

setProperties() public méthode

public setProperties ( array $properties )
$properties array

setStyle() public méthode

public setStyle ( array $style )
$style array

setSubCollectionCount() public méthode

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

setTitle() public méthode

public setTitle ( string $title )
$title string

setType() public méthode

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

Property Details

$breadcrumb protected_oe property

protected array $breadcrumb
Résultat array

$children protected_oe property

protected Collection[],Sulu\Bundle\MediaBundle\Api $children
Résultat Collection[]

$entity protected_oe property

protected CollectionInterface,Sulu\Bundle\MediaBundle\Entity $entity
Résultat Sulu\Bundle\MediaBundle\Entity\CollectionInterface

$mediaCount protected_oe property

protected int $mediaCount
Résultat integer

$parent protected_oe property

protected Collection,Sulu\Bundle\MediaBundle\Api $parent
Résultat Collection

$preview protected_oe property

protected array $preview
Résultat array

$properties protected_oe property

protected array $properties
Résultat array

$subCollectionCount protected_oe property

protected int $subCollectionCount
Résultat integer