PHP Class Bolt\Storage\Field\Collection\RepeatingFieldCollection

Author: Ross Riley ([email protected])
Inheritance: extends Doctrine\Common\Collections\ArrayCollection
Afficher le fichier Open project: bolt/bolt Class Usage Examples

Protected Properties

Свойство Type Description
$em
$mapping
$name

Méthodes publiques

Méthode Description
__construct ( EntityManager $em, array $mapping, array $elements = [] ) RepeatingFieldCollection constructor.
add ( FieldCollection $collection ) : boolean
addFromArray ( array $fields, integer $grouping, object $entity = null )
addFromReferences ( array $ids, integer $grouping )
flatten ( )
getEmptySet ( )
getExisting ( ) : array
getName ( ) : mixed
getNew ( ) : array
getOriginal ( object $entity ) : mixed | null This loops over the existing collection to see if the properties in the incoming are already available on a saved record.
setName ( mixed $name )
update ( RepeatingFieldCollection $collection ) : RepeatingFieldCollection[]

Méthodes protégées

Méthode Description
getFieldType ( $field ) : mixed
getFieldTypeName ( $field ) : mixed

Method Details

__construct() public méthode

RepeatingFieldCollection constructor.
public __construct ( EntityManager $em, array $mapping, array $elements = [] )
$em Bolt\Storage\EntityManager
$mapping array
$elements array

add() public méthode

public add ( FieldCollection $collection ) : boolean
$collection FieldCollection
Résultat boolean

addFromArray() public méthode

public addFromArray ( array $fields, integer $grouping, object $entity = null )
$fields array
$grouping integer
$entity object

addFromReferences() public méthode

public addFromReferences ( array $ids, integer $grouping )
$ids array
$grouping integer

flatten() public méthode

public flatten ( )

getEmptySet() public méthode

public getEmptySet ( )

getExisting() public méthode

public getExisting ( ) : array
Résultat array

getFieldType() protected méthode

protected getFieldType ( $field ) : mixed
$field
Résultat mixed

getFieldTypeName() protected méthode

protected getFieldTypeName ( $field ) : mixed
$field
Résultat mixed

getName() public méthode

public getName ( ) : mixed
Résultat mixed

getNew() public méthode

public getNew ( ) : array
Résultat array

getOriginal() public méthode

This loops over the existing collection to see if the properties in the incoming are already available on a saved record.
public getOriginal ( object $entity ) : mixed | null
$entity object
Résultat mixed | null

setName() public méthode

public setName ( mixed $name )
$name mixed

update() public méthode

public update ( RepeatingFieldCollection $collection ) : RepeatingFieldCollection[]
$collection RepeatingFieldCollection
Résultat RepeatingFieldCollection[]

Property Details

$em protected_oe property

protected $em

$mapping protected_oe property

protected $mapping

$name protected_oe property

protected $name