\Hazaar\Model
ChildModel
Automatic implementing child model

The ChildModel class is used to allow a strict model to automatically be implemented by the implementing models field definition. This is a field with type 'model' that contains a parameter 'items', which is the child models field definition.

More of these can be contained within each ChildModel object and there is no limit to how far the child model definitions can recurse other than memory and the time you are willing to spend defining your fields.

Summary
Methods Properties Constants
set
No properties No constants
Methods
__construct()
__construct($field_definition, $values = Array ( ) )
ChildModel constructor

Child model extends the Model\Strict class and so operates almost exactly the same. The only difference is how the field definition is defined. Because this is not an abstract class and there is no implementing class code, the definition is provided by the parent class and is defines in a higher level class' field definition.

Parameters

$field_definitionmixed

The field definition for this strict model.

$valuesmixed

The initial values to populate the model with.

set()
set($key, $value, $exec_filters = true)

Parameters

$key

No description

$value

No description

$exec_filters

No description