PHP Class Sulu\Bundle\MediaBundle\Entity\Collection

Inheritance: extends BaseCollection
Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( )
addChildren ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $children ) : Collection Add children.
addMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) : Collection Add media.
addMeta ( CollectionMeta $meta ) : Collection Add meta.
getChildren ( ) : Doctrine\Common\Collections\Collection
getDefaultMeta ( ) : CollectionMeta Get defaultMeta.
getMedia ( ) : Doctrine\Common\Collections\Collection Get media.
getMeta ( ) : Doctrine\Common\Collections\Collection Get meta.
getParent ( ) : Sulu\Bundle\MediaBundle\Entity\CollectionInterface Get parent.
getSecurityContext ( )
removeChildren ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $children ) Remove children.
removeMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) Remove media.
removeMeta ( CollectionMeta $meta ) Remove meta.
setChildren ( Doctrine\Common\Collections\Collection $children )
setDefaultMeta ( CollectionMeta $defaultMeta = null ) : Collection Set defaultMeta.
setParent ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $parent = null ) : Sulu\Bundle\MediaBundle\Entity\CollectionInterface Set parent.

Method Details

__construct() public method

public __construct ( )

addChildren() public method

Add children.
public addChildren ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $children ) : Collection
$children Sulu\Bundle\MediaBundle\Entity\CollectionInterface
return Collection

addMedia() public method

Add media.
public addMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) : Collection
$media Sulu\Bundle\MediaBundle\Entity\MediaInterface
return Collection

addMeta() public method

Add meta.
public addMeta ( CollectionMeta $meta ) : Collection
$meta CollectionMeta
return Collection

getChildren() public method

public getChildren ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getDefaultMeta() public method

Get defaultMeta.
public getDefaultMeta ( ) : CollectionMeta
return CollectionMeta

getMedia() public method

Get media.
public getMedia ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getMeta() public method

Get meta.
public getMeta ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getParent() public method

Get parent.
public getParent ( ) : Sulu\Bundle\MediaBundle\Entity\CollectionInterface
return Sulu\Bundle\MediaBundle\Entity\CollectionInterface

getSecurityContext() public method

public getSecurityContext ( )

removeChildren() public method

Remove children.
public removeChildren ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $children )
$children Sulu\Bundle\MediaBundle\Entity\CollectionInterface

removeMedia() public method

Remove media.
public removeMedia ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media )
$media Sulu\Bundle\MediaBundle\Entity\MediaInterface

removeMeta() public method

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

setChildren() public method

public setChildren ( Doctrine\Common\Collections\Collection $children )
$children Doctrine\Common\Collections\Collection

setDefaultMeta() public method

Set defaultMeta.
public setDefaultMeta ( CollectionMeta $defaultMeta = null ) : Collection
$defaultMeta CollectionMeta
return Collection

setParent() public method

Set parent.
public setParent ( Sulu\Bundle\MediaBundle\Entity\CollectionInterface $parent = null ) : Sulu\Bundle\MediaBundle\Entity\CollectionInterface
$parent Sulu\Bundle\MediaBundle\Entity\CollectionInterface
return Sulu\Bundle\MediaBundle\Entity\CollectionInterface