1 | <?php |
||
24 | class Equals extends Rule |
||
|
|||
25 | { |
||
26 | /** |
||
27 | * Method to test if two values are equal. To use this rule, the form |
||
28 | * XML needs a validate attribute of equals and a field attribute |
||
29 | * that is equal to the field to test against. |
||
30 | * |
||
31 | * @param SimpleXMLElement $element The SimpleXMLElement object representing the <field /> tag for the form field object. |
||
32 | * @param mixed $value The form field value to validate. |
||
33 | * @param string $group The field name group control value. This acts as as an array container for the field. |
||
34 | * For example if the field has name="foo" and the group value is set to "bar" then the |
||
35 | * full field name would end up being "bar[foo]". |
||
36 | * @param Registry $input An optional Registry object with the entire data set to validate against the entire form. |
||
37 | * @param Form $form The form object for which the field is being tested. |
||
38 | * |
||
39 | * @return boolean True if the value is valid, false otherwise. |
||
40 | * |
||
41 | * @since 1.0 |
||
42 | * @throws InvalidArgumentException |
||
43 | * @throws UnexpectedValueException |
||
44 | */ |
||
45 | public function test(SimpleXMLElement $element, $value, $group = null, Registry $input = null, Form $form = null) |
||
75 | } |
||
76 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.