PHP Class Bolt\Storage\Field\Collection\RepeatingFieldCollection

Author: Ross Riley ([email protected])
Inheritance: extends Doctrine\Common\Collections\ArrayCollection
ファイルを表示 Open project: bolt/bolt Class Usage Examples

Protected Properties

Property Type Description
$em
$mapping
$name

Public Methods

Method 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[]

Protected Methods

Method Description
getFieldType ( $field ) : mixed
getFieldTypeName ( $field ) : mixed

Method Details

__construct() public method

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

add() public method

public add ( FieldCollection $collection ) : boolean
$collection FieldCollection
return boolean

addFromArray() public method

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

addFromReferences() public method

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

flatten() public method

public flatten ( )

getEmptySet() public method

public getEmptySet ( )

getExisting() public method

public getExisting ( ) : array
return array

getFieldType() protected method

protected getFieldType ( $field ) : mixed
$field
return mixed

getFieldTypeName() protected method

protected getFieldTypeName ( $field ) : mixed
$field
return mixed

getName() public method

public getName ( ) : mixed
return mixed

getNew() public method

public getNew ( ) : array
return array

getOriginal() public method

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
return mixed | null

setName() public method

public setName ( mixed $name )
$name mixed

update() public method

public update ( RepeatingFieldCollection $collection ) : RepeatingFieldCollection[]
$collection RepeatingFieldCollection
return RepeatingFieldCollection[]

Property Details

$em protected_oe property

protected $em

$mapping protected_oe property

protected $mapping

$name protected_oe property

protected $name