DUF: Declarative Ugly Forms  v0.1-94-g0b7957c
 All Classes Functions Variables Pages
Static Public Member Functions | List of all members
IFieldValidator Interface Reference

Validate given form field value. More...

Inheritance diagram for IFieldValidator:
Inheritance graph

Static Public Member Functions

static validateField (\Duf::Form $form, $group_id, $field_id, $field_def, $value)
 Validate given form field value. More...
 

Detailed Description

Validate given form field value.

Member Function Documentation

static validateField ( \Duf::Form  $form,
  $group_id,
  $field_id,
  $field_def,
  $value 
)
static

Validate given form field value.

Errors are injected directly into the form using Form::setFieldError().

Returns
Returns false when more validation makes no sense.

Implemented in DateTimeInput, Reference, TextInput, EmailInput, NumberInput, and UrlInput.