Json
- Full name:
\Zemit\Filter\Validation\Validator\Json
- Parent class:
AbstractValidator
- This class implements:
\Phalcon\Filter\Validation\ValidatorInterface
Properties
template
protected $template
Methods
__construct
public __construct(array $options = []): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$options | array | = [ 'message' => '', 'template' => '', 'depth' => 512, 'flags' => 0, 'allowEmpty' => false ] |
validate
public validate(\Phalcon\Filter\Validation $validation, mixed $field): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$validation | \Phalcon\Filter\Validation | |
$field | mixed |