This project is no longer maintained and no further public releases are planned.

No further support will be given.

Feel free to fork the git repository.

Arrays

Array checks are useful when dealing with arrays of check boxes and similar cases.

Version added

1.0.0

Example code

validators {
  1.class = Validator\DefaultValidator
  1.config {
    fieldConf {
      interests.errorCheck {
        1 = minItems
        1.value = 2
      }
    }
  }
}

minItems

Checks if a field contains at least the configured amount of items (e.g. checkboxes)

maxItems

Checks if a field contains less than the configured amount of items (e.g. checkboxes)

betweenItems

Checks if a field contains values between the configured amount of items (e.g. checkboxes)