PHP 클래스 Neos\Media\Domain\Model\AssetCollection

파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$assets Collection<\Neos\Media\Domain\Model\Asset>
$tags Collection<\Neos\Media\Domain\Model\Tag>
$title string

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

public __construct ( string $title )
$title string

addAsset() 공개 메소드

Add one asset to the asset collection
public addAsset ( Asset $asset ) : boolean
$asset Asset
리턴 boolean

addTag() 공개 메소드

Add a single tag to this asset
public addTag ( Tag $tag ) : boolean
$tag Tag
리턴 boolean

getAssets() 공개 메소드

Returns the Assets
public getAssets ( ) : ArrayCollection
리턴 Doctrine\Common\Collections\ArrayCollection

getTags() 공개 메소드

Return the tags assigned to this asset
public getTags ( ) : Doctrine\Common\Collections\Collection
리턴 Doctrine\Common\Collections\Collection

getTitle() 공개 메소드

Returns the Title
public getTitle ( ) : string
리턴 string

removeAsset() 공개 메소드

Remove one asset from the asset collection
public removeAsset ( Asset $asset ) : boolean
$asset Asset
리턴 boolean

removeTag() 공개 메소드

Remove a single tag from this asset
public removeTag ( Tag $tag ) : boolean
$tag Tag
리턴 boolean

setAssets() 공개 메소드

Sets the Assets
public setAssets ( ArrayCollection $assets ) : void
$assets Doctrine\Common\Collections\ArrayCollection
리턴 void

setTags() 공개 메소드

Set the tags assigned to this asset
public setTags ( Doctrine\Common\Collections\Collection $tags ) : void
$tags Doctrine\Common\Collections\Collection
리턴 void

setTitle() 공개 메소드

Sets the Title
public setTitle ( string $title ) : void
$title string
리턴 void

프로퍼티 상세

$assets 보호되어 있는 프로퍼티

protected Collection<\Neos\Media\Domain\Model\Asset> $assets
리턴 Collection<\Neos\Media\Domain\Model\Asset>

$tags 보호되어 있는 프로퍼티

protected Collection<\Neos\Media\Domain\Model\Tag> $tags
리턴 Collection<\Neos\Media\Domain\Model\Tag>

$title 보호되어 있는 프로퍼티

protected string $title
리턴 string