PHP Class Webiny\Component\Entity\Attribute\AbstractCollectionAttribute

Inheritance: extends AbstractAttribute, implements IteratorAggregate, implements ArrayAccess, use trait Webiny\Component\StdLib\StdLibTrait
Afficher le fichier Open project: Webiny/Framework Class Usage Examples

Protected Properties

Свойство Type Description
$entityClass
$value null | Webiny\Component\Entity\EntityCollection

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
normalizeValue ( mixed $value ) : array Normalize given value to be a valid array of entity instances

Method Details

__toString() public méthode

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

count() public méthode

Count items in result set
public count ( ) : integer
Résultat integer

delete() public méthode

Delete all items in the result set
public delete ( ) : boolean
Résultat boolean

getEntity() public méthode

Get related entity class for this attribute
public getEntity ( ) : string
Résultat string

getIterator() public méthode

public getIterator ( )

getParentEntity() public méthode

Returns entity instance to which this attribute belongs
public getParentEntity ( ) : AbstractEntity
Résultat Webiny\Component\Entity\AbstractEntity

normalizeValue() protected méthode

Normalize given value to be a valid array of entity instances
protected normalizeValue ( mixed $value ) : array
$value mixed
Résultat array

offsetExists() public méthode

public offsetExists ( $offset )

offsetGet() public méthode

public offsetGet ( $offset )

offsetSet() public méthode

public offsetSet ( $offset, $value )

offsetUnset() public méthode

public offsetUnset ( $offset )

setEntity() public méthode

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

Property Details

$entityClass protected_oe property

protected $entityClass

$value protected_oe property

protected null|EntityCollection,Webiny\Component\Entity $value
Résultat null | Webiny\Component\Entity\EntityCollection