PHP Класс Webiny\Component\Entity\Attribute\AbstractCollectionAttribute

Наследование: extends AbstractAttribute, implements IteratorAggregate, implements ArrayAccess, use trait Webiny\Component\StdLib\StdLibTrait
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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