\RequiredUniqueFields
Required Unique Fields allows you to set which fields need to be present before submitting the form and which fields need to be unique on a special Object.
Submit an array of arguments for required fileds, one associative array for unique fields with FieldName => Error Message
and the objectClass, on which the field shall be unique.
Validation is performed on a field by field basis through
{@link FormField::validate}.
Synopsis
class RequiredUniqueFields
extends RequiredFields
{
- // members
- protected $unique;
- protected $objectClass;
- // methods
- public void __construct()
- public boolean php()
Hierarchy
Extends
- RequiredFields
Members
protected
- $objectClass
- $unique
Methods
public
- __construct() — Pass required and unique fields as arrays.
- php() — Allows validation of fields via specification of a php function for validation which is executed after the form is submitted.