PHP 클래스 Webiny\Component\Entity\Attribute\AbstractCollectionAttribute

상속: extends AbstractAttribute, implements IteratorAggregate, implements ArrayAccess, use trait Webiny\Component\StdLib\StdLibTrait
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$entityClass
$value null | Webiny\Component\Entity\EntityCollection

공개 메소드들

메소드 설명
__toString ( ) : mixed | null | string Get string of masked entity values when array of instances is being converted to string
count ( ) : integer Count items in result set
delete ( ) : boolean Delete all items in the result set
getEntity ( ) : string Get related entity class for this attribute
getIterator ( )
getParentEntity ( ) : AbstractEntity Returns entity instance to which this attribute belongs
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
setEntity ( string $entityClass ) Set related entity class for this attribute

보호된 메소드들

메소드 설명
normalizeValue ( mixed $value ) : array Normalize given value to be a valid array of entity instances

메소드 상세

__toString() 공개 메소드

Get string of masked entity values when array of instances is being converted to string
public __toString ( ) : mixed | null | string
리턴 mixed | null | string

count() 공개 메소드

Count items in result set
public count ( ) : integer
리턴 integer

delete() 공개 메소드

Delete all items in the result set
public delete ( ) : boolean
리턴 boolean

getEntity() 공개 메소드

Get related entity class for this attribute
public getEntity ( ) : string
리턴 string

getIterator() 공개 메소드

public getIterator ( )

getParentEntity() 공개 메소드

Returns entity instance to which this attribute belongs
public getParentEntity ( ) : AbstractEntity
리턴 Webiny\Component\Entity\AbstractEntity

normalizeValue() 보호된 메소드

Normalize given value to be a valid array of entity instances
protected normalizeValue ( mixed $value ) : array
$value mixed
리턴 array

offsetExists() 공개 메소드

public offsetExists ( $offset )

offsetGet() 공개 메소드

public offsetGet ( $offset )

offsetSet() 공개 메소드

public offsetSet ( $offset, $value )

offsetUnset() 공개 메소드

public offsetUnset ( $offset )

setEntity() 공개 메소드

Set related entity class for this attribute
public setEntity ( string $entityClass )
$entityClass string

프로퍼티 상세

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

protected $entityClass

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

protected null|EntityCollection,Webiny\Component\Entity $value
리턴 null | Webiny\Component\Entity\EntityCollection