before_insert()
before_save()
before_update()
instance()
orm_notify()
set_fields()
validate()
$_instances
Observer class to validate the properties of the model before save.
It is also used in Fieldset generation based on a model, to populate the fields and field validation rules of the Fieldset.
before_insert(\Orm\Model $obj)
before_save(\Orm\Model $obj)
before_update(\Orm\Model $obj)
instance(string $model_class)
inherited_from | \Orm\Observer::instance() |
---|
string
name of the model class
set_fields($obj, $fieldset) : \Fieldset
string
\Fieldset|null
\Fieldset
validate(\Orm\Model $obj)
$_instances : array
inherited_from | \Orm\Observer::$$_instances |
---|