Validator\AbstractFilter

class AbstractFilter

Base validator for PHPs filter_var function.

getFilter()

Gets the filter to use within the validation. See http://php.net/manual/de/filter.filters.validate.php .

Returns:string the filter to use
getFlags()

Gets the flags to use within the validation. See http://php.net/manual/de/filter.filters.validate.php .

Returns:string|null the flags to use
isValid($value, $parameters)

{@inheritdoc}

Parameters:
  • $value
  • $parameters