add()
count()
get()
getInvalidInput()
getMessages()
getRawValue()
getRawValues()
getUnknown()
getValidInput()
getValue()
getValues()
has()
hasUnknown()
isValid()
remove()
setData()
setValidationGroup()
populate()
validateValidationGroup()
$data
$inputs
$invalidInputs
$validInputs
$validationGroup
VALIDATE_ALL
| todo | How should we deal with required input when data is missing? should a message be returned? if so, what message? |
|---|
add(\Zend\InputFilter\InputInterface | \Zend\InputFilter\InputFilterInterface $input, null | string $name) : \Zend\InputFilter\InputFilterInterface
nullstringName used to retrieve this input
\Zend\InputFilter\Exception\InvalidArgumentException |
|---|
count() : int
Only details the number of direct children.
intget(string $name) : \Zend\InputFilter\InputInterface | \Zend\InputFilter\InputFilterInterface
getInvalidInput() : \Zend\InputFilter\InputInterface[]
Implementations should return an associative array of name/input pairs that failed validation.
getMessages() : array
Should return an associative array of named input/message list pairs. Pairs should only be returned for inputs that failed validation.
arraygetRawValue(string $name) : mixed
string
\Zend\InputFilter\Exception\InvalidArgumentException |
|---|
mixedgetRawValues() : array
List should be an associative array of named input/value pairs, with the values unfiltered.
arraygetUnknown() : array
getValidInput() : \Zend\InputFilter\InputInterface[]
Implementations should return an associative array of name/input pairs that passed validation.
getValue(string $name) : mixed
string
\Zend\InputFilter\Exception\InvalidArgumentException |
|---|
mixedgetValues() : array
List should be an associative array, with the values filtered. If validation failed, this should raise an exception.
arrayhas(string $name) : bool
string
boolhasUnknown() : bool
isValid() : bool
setData(array | \Traversable $data) : \Zend\InputFilter\InputFilterInterface
array\Traversable
\Zend\InputFilter\Exception\InvalidArgumentException |
|---|
setValidationGroup(mixed $name) : \Zend\InputFilter\InputFilterInterface
When provided, calls to isValid() will only validate the provided set.
If the initial value is VALIDATE_ALL, the current validation group, if any, should be cleared.
Implementations should allow passing a single array value, or multiple arguments, each specifying a single input.
mixed
populate() : void
validateValidationGroup(array $inputs) : void
$data
$inputs
$invalidInputs
$validInputs
$validationGroup
VALIDATE_ALL
| inherited_from | \Zend\InputFilter\InputFilterInterface::VALIDATE_ALL |
|---|