PHP Class Neos\Media\Domain\Model\AssetCollection

Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$assets Collection<\Neos\Media\Domain\Model\Asset>
$tags Collection<\Neos\Media\Domain\Model\Tag>
$title string

Méthodes publiques

Méthode Description
__construct ( string $title )
addAsset ( Asset $asset ) : boolean Add one asset to the asset collection
addTag ( Tag $tag ) : boolean Add a single tag to this asset
getAssets ( ) : ArrayCollection Returns the Assets
getTags ( ) : Doctrine\Common\Collections\Collection Return the tags assigned to this asset
getTitle ( ) : string Returns the Title
removeAsset ( Asset $asset ) : boolean Remove one asset from the asset collection
removeTag ( Tag $tag ) : boolean Remove a single tag from this asset
setAssets ( ArrayCollection $assets ) : void Sets the Assets
setTags ( Doctrine\Common\Collections\Collection $tags ) : void Set the tags assigned to this asset
setTitle ( string $title ) : void Sets the Title

Method Details

__construct() public méthode

public __construct ( string $title )
$title string

addAsset() public méthode

Add one asset to the asset collection
public addAsset ( Asset $asset ) : boolean
$asset Asset
Résultat boolean

addTag() public méthode

Add a single tag to this asset
public addTag ( Tag $tag ) : boolean
$tag Tag
Résultat boolean

getAssets() public méthode

Returns the Assets
public getAssets ( ) : ArrayCollection
Résultat Doctrine\Common\Collections\ArrayCollection

getTags() public méthode

Return the tags assigned to this asset
public getTags ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

getTitle() public méthode

Returns the Title
public getTitle ( ) : string
Résultat string

removeAsset() public méthode

Remove one asset from the asset collection
public removeAsset ( Asset $asset ) : boolean
$asset Asset
Résultat boolean

removeTag() public méthode

Remove a single tag from this asset
public removeTag ( Tag $tag ) : boolean
$tag Tag
Résultat boolean

setAssets() public méthode

Sets the Assets
public setAssets ( ArrayCollection $assets ) : void
$assets Doctrine\Common\Collections\ArrayCollection
Résultat void

setTags() public méthode

Set the tags assigned to this asset
public setTags ( Doctrine\Common\Collections\Collection $tags ) : void
$tags Doctrine\Common\Collections\Collection
Résultat void

setTitle() public méthode

Sets the Title
public setTitle ( string $title ) : void
$title string
Résultat void

Property Details

$assets protected_oe property

protected Collection<\Neos\Media\Domain\Model\Asset> $assets
Résultat Collection<\Neos\Media\Domain\Model\Asset>

$tags protected_oe property

protected Collection<\Neos\Media\Domain\Model\Tag> $tags
Résultat Collection<\Neos\Media\Domain\Model\Tag>

$title protected_oe property

protected string $title
Résultat string