package |
Default |
---|
__construct( $validation = array(), $required = array(), $sanatation = array())
addError( $field, string $type = 'string')
string
getData() : array
array
getErrors() : array
array
sanatize(array $items) : mixed
example: $sanatation = array('fieldname', 'otherfieldname'=>'float');
array
mixed
sanatizeItem( $var, $type) : mixed
Allows for static calling to allow simple sanatization
mixed
validate(array $items) : boolean
array
boolean
validateItem( $var, $type) : boolean
Allows for static calling to allow simple validation.
boolean
expression :
validation :
sanatation :
required :
errors :
corrects :
fields :