Public Member Functions | |
renderAddAttributeErrorSettingsScript ($formId) | |
error ($model, $attribute, $htmlOptions=array(), $enableAjaxValidation=true, $enableClientValidation=true, $id=null) | |
errorSummary ($models, $header=null, $footer=null, $htmlOptions=array()) | |
run () | |
getAttributes () | |
radioButtonList ($model, $attribute, $data, $htmlOptions=array(), $dataSelectOptions=array(), $dataHtmlOptions=array()) | |
checkBox ($model, $attribute, $htmlOptions=array()) | |
checkBoxList ($model, $attribute, $data, $htmlOptions=array()) | |
dropDownList ($model, $attribute, $data, $htmlOptions=array()) | |
Static Public Member Functions | |
static | makeErrorsSummaryId ($id) |
static | makeErrorsDataAndResolveForOwnedModelAttributes ($model) |
static | makeErrorsDataAndResolveForOwnedModelAttributesAndHasOneRelations ($model) |
Data Fields | |
$modelClassNameForError | |
$bindAsLive = false | |
Protected Member Functions | |
resolveId ($model, $attribute) | |
resolveModelClassNameForError ($model) | |
Definition at line 37 of file ZurmoActiveForm.php.
|
static |
Makes errorsData by getting errors from model. Also resolves for owned related models such as Email. Prior to having this method, things such as currencyValue, emailAddress, and street1 for example were not properly showing validation errors on failure. This method properly handles Address, Email, and CurrencyValue which are three special related models where there are multiple attributes that are all shown as if they are the attributes on the base model. Custom fields don't follow this because they only have 'value' to show so are ok without special manipulation.
$model |
Definition at line 69 of file ZurmoActiveForm.php.
renderAddAttributeErrorSettingsScript | ( | $formId | ) |
Use this method to register dynamically created attributes during an ajax call. An example is if you add a filter or trigger, the inputs need to be added to the yiiactiveform so that validation handling can work properly. This method replaces the id and model elements with the correctly needed values. Only adds inputs that have not been added already
Definition at line 124 of file ZurmoActiveForm.php.
error | ( | $model, | |
$attribute, | |||
$htmlOptions = array() , |
|||
$enableAjaxValidation = true , |
|||
$enableClientValidation = true , |
|||
$id = null |
|||
) |
Override for special handling of dynamically added attributes. Allows for overriding the model class name and id. (non-PHPdoc)
Definition at line 159 of file ZurmoActiveForm.php.
errorSummary | ( | $models, | |
$header = null , |
|||
$footer = null , |
|||
$htmlOptions = array() |
|||
) |
Override to handle relation model error summary information. This information needs to be parsed properly otherwise it will show up as 'Array' for the error text.
Definition at line 266 of file ZurmoActiveForm.php.
run | ( | ) |
Override to allow for optional live binding of yiiactiveform.
Definition at line 305 of file ZurmoActiveForm.php.
radioButtonList | ( | $model, | |
$attribute, | |||
$data, | |||
$htmlOptions = array() , |
|||
$dataSelectOptions = array() , |
|||
$dataHtmlOptions = array() |
|||
) |
(non-PHPdoc)
Definition at line 389 of file ZurmoActiveForm.php.
checkBox | ( | $model, | |
$attribute, | |||
$htmlOptions = array() |
|||
) |
Override to support adding label class = 'hasCheckBox' (non-PHPdoc)
Definition at line 401 of file ZurmoActiveForm.php.
checkBoxList | ( | $model, | |
$attribute, | |||
$data, | |||
$htmlOptions = array() |
|||
) |
(non-PHPdoc)
Definition at line 410 of file ZurmoActiveForm.php.
dropDownList | ( | $model, | |
$attribute, | |||
$data, | |||
$htmlOptions = array() |
|||
) |
(non-PHPdoc)
Definition at line 419 of file ZurmoActiveForm.php.