10 defined(
'JPATH_PLATFORM') or die;
40 public function test(SimpleXMLElement $element, $value, $group = null,
JRegistry $input = null,
JForm $form = null)
42 $field = (string) $element[
'field'];
47 throw new UnexpectedValueException(sprintf(
'$field empty in %s::test', get_class($this)));
52 throw new InvalidArgumentException(sprintf(
'The value for $form must not be null in %s', get_class($this)));
57 throw new InvalidArgumentException(sprintf(
'The value for $input must not be null in %s', get_class($this)));
61 if ($value == $input->get($field))