Validator
Table of Contents
Interfaces
- ValidatorInterface
Classes
- ValidatorDate
- Example config:
'expires' => ['date']
or
'expires' => ['date' => true]
- ValidatorEmpty
- Example config:
'expires' => ['empty' => false]
- ValidatorLength
- Example config (requires min and/or max):
'admin' => ['length' => ['min' => 1, 'max' => 50]]
or
'admin' => ['length' => ['min' => 1]]
or
'admin' => ['length' => ['max' => 50]]
- ValidatorNull
- Example config:
'expires' => ['null' => false]
- ValidatorNumerical
- Example config (optional min and max):
'tokenLength' => ['numerical' => true] or 'tokenLength' => ['numerical']
or
'tokenLength' => ['numerical' => ['min' => -1]]
or
'tokenLength' => ['numerical' => ['max' => 50]]
or
'tokenLength' => ['numerical' => ['min' => -1, 'max' => 50]]
- ValidatorRange
- Example config:
'showGroupInfo' => ['range' => ['B', 'N', 'D', 'X', 'I']]
- ValidatorRegex
- Example config:
'googleAnalyticsApiKey' => ['pattern' => '/^[a-zA-Z\-\d]*$/']
- ValidatorRequired
- Example config:
'expires' => ['required'] or 'expires' => ['required' => true]
or required only on certain operation types
'expires' => ['required' => ['create', 'update']]