The ExecutionRulesRule Class. Validates execution rules, with input for other fields as context.
- Depuis
- 4.1.0
◆ test()
- Paramètres
-
\SimpleXMLElement | $element | The SimpleXMLElement object representing the <field> tag for the form field object. |
mixed | $value | The form field value to validate. |
| ?string | $group The field name group control value. This acts as an array container for the field. For example if the field has name="foo" and the group value is set to "bar" then the full field name would end up being "bar[foo]". |
| ?Registry | $input An optional Registry object with the entire data set to validate against the entire form. |
| ?Form | $form The form object for which the field is being tested. |
- Renvoie
- boolean
- Depuis
- 4.1.0
Références $form, $input, et $value.
◆ validateField()
validateField |
( |
\SimpleXMLElement |
$element, |
|
|
|
$value, |
|
|
?string |
$group = null , |
|
|
?Form |
$form = null |
|
) |
| |
|
private |
- Paramètres
-
\SimpleXMLElement | $element | The SimpleXMLElement for the field. |
mixed | $value | The field value. |
| ?string | $group The form field group the element belongs to. |
Form | null | $form | The Form object against which the field is tested/ |
- Renvoie
- boolean True if field is valid
- Depuis
- 4.1.0
Références $form, $value, et null.
◆ CUSTOM_RULE_GROUP
const CUSTOM_RULE_GROUP = "execution_rules.custom" |
|
private |
◆ RULE_TYPE_FIELD
const RULE_TYPE_FIELD = "execution_rules.rule-type" |
|
private |
La documentation de cette classe a été générée à partir du fichier suivant :