Countable: number of inputs in this input filter
Only details the number of direct children.
| Return type: | int |
|---|
Add an input to the input filter
| Parameters: |
|
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | InputFilterInterface |
Retrieve a named input
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | InputInterface|InputFilterInterface |
Test if an input or input filter by the given name is attached
| Parameters: | string – |
|---|---|
| Return type: | bool |
Remove a named input
| Parameters: | string – |
|---|---|
| Return type: | InputFilterInterface |
Set data to use when validating and filtering
| Parameters: | array|Traversable – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | InputFilterInterface |
Provide a list of one or more elements indicating the complete set to validate
When provided, calls to {@link isValid()} will only validate the provided set.
If the initial value is {@link 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.
| Parameters: | mixed – |
|---|---|
| Return type: | InputFilterInterface |
Return a list of inputs that were invalid.
Implementations should return an associative array of name/input pairs that failed validation.
| Return type: | InputInterface[] |
|---|
Return a list of inputs that were valid.
Implementations should return an associative array of name/input pairs that passed validation.
| Return type: | InputInterface[] |
|---|
Retrieve a value from a named input
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | mixed |
Return a list of filtered values
List should be an associative array, with the values filtered. If validation failed, this should raise an exception.
| Return type: | array |
|---|
Retrieve a raw (unfiltered) value from a named input
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | mixed |
Return a list of unfiltered values
List should be an associative array of named input/value pairs, with the values unfiltered.
| Return type: | array |
|---|
Return a list of validation failure messages
Should return an associative array of named input/message list pairs. Pairs should only be returned for inputs that failed validation.
| Return type: | array |
|---|
Ensure all names of a validation group exist as input in the filter
| Parameters: | array – |
|---|---|
| Return type: | void |
| Throws : | ExceptionInvalidArgumentException |
Populate the values of all attached inputs
| Return type: | void |
|---|