SPHPlayground API
SPHPlayground
sphplayground sphplayground

Validator aggregates

The ValidatorChain validator

The ValidatorChain is an aggregation of Validator objects. It validates the given input against all of its inner validators and the input is valid only if it passes all of them.

Synopsis

class ValidatorChain

The ArrayValidator validator

A ArrayValidator is an aggregate of validators validating user inputs data provided by HTML forms. A ArrayValidator can validate PHP's native arrays and just about any kind of Traversable data containing key value pairs.

Synopsis

class ArrayValidator