| Fully Qualified Name: | Laminas\InputFilter\CollectionInputFilter |
| Extends: | InputFilter |
| Name | Description | Defined By |
|---|---|---|
| add() | Add an input to the input filter | InputFilter |
| clearRawValues() | Clear collectionRawValues | CollectionInputFilter |
| clearValues() | Clear collectionValues | CollectionInputFilter |
| count() | Countable: number of inputs in this input filter | BaseInputFilter |
| get() | Retrieve a named input | BaseInputFilter |
| getCount() | Get the count of data to validate, use the count of data by default | CollectionInputFilter |
| getFactory() | Get factory to use when adding inputs and filters by spec | InputFilter |
| getInputFilter() | Get the input filter used when looping the data | CollectionInputFilter |
| getInputs() | Get an array of all inputs | BaseInputFilter |
| getInvalidInput() | Return a list of inputs that were invalid. | BaseInputFilter |
| getIsRequired() | Get if collection can be empty | CollectionInputFilter |
| getMessages() | {@inheritdoc} | CollectionInputFilter |
| getNotEmptyValidator() | Retrieve the NotEmpty validator to use for failed "required" validations. | CollectionInputFilter |
| getRawValue() | Retrieve a raw (unfiltered) value from a named input | BaseInputFilter |
| getRawValues() | {@inheritdoc} | CollectionInputFilter |
| getUnfilteredData() | BaseInputFilter | |
| getUnknown() | {@inheritdoc} | CollectionInputFilter |
| getValidInput() | Return a list of inputs that were valid. | BaseInputFilter |
| getValue() | Retrieve a value from a named input | BaseInputFilter |
| getValues() | {@inheritdoc} | CollectionInputFilter |
| has() | Test if an input or input filter by the given name is attached | BaseInputFilter |
| hasUnknown() | Is the data set has unknown input ? | BaseInputFilter |
| init() | This function is automatically called when creating element with factory. It allows to perform various operations (add elements. | BaseInputFilter |
| isValid() | {@inheritdoc} | CollectionInputFilter |
| merge() | Merges the inputs from an InputFilter into the current one | BaseInputFilter |
| remove() | Remove a named input | BaseInputFilter |
| replace() | Replace a named input | BaseInputFilter |
| setCount() | Set the count of data to validate | CollectionInputFilter |
| setData() | {@inheritdoc} | CollectionInputFilter |
| setFactory() | Set factory to use when adding inputs and filters by spec | InputFilter |
| setInputFilter() | Set the input filter to use when looping the data | CollectionInputFilter |
| setIsRequired() | Set if the collection can be empty | CollectionInputFilter |
| setNotEmptyValidator() | Set the NotEmpty validator to use for failed "required" validations. | CollectionInputFilter |
| setUnfilteredData() | BaseInputFilter | |
| setValidationGroup() | {@inheritdoc} | CollectionInputFilter |
Add an input to the input filter
| Parameter Name | Type | Description |
|---|---|---|
| $input | array|\Traversable|\InputInterface|\InputFilterInterface | |
| $name | null|string |
Returns: \InputFilter
Clear collectionRawValues
Returns: array[]
Clear collectionValues
Returns: array[]
Countable: number of inputs in this input filter
Only details the number of direct children.
Returns: int
Retrieve a named input
| Parameter Name | Type | Description |
|---|---|---|
| $name | string |
Returns: \InputInterface|\InputFilterInterface
Get the count of data to validate, use the count of data by default
Returns: int
Get factory to use when adding inputs and filters by spec
Lazy-loads a Factory instance if none attached.
Returns: \Factory
Get the input filter used when looping the data
Returns: \BaseInputFilter
Get an array of all inputs
Returns: \InputInterface[]|\InputFilterInterface[]
Return a list of inputs that were invalid.
Implementations should return an associative array of name/input pairs that failed validation.
Returns: \InputInterface[]
Get if collection can be empty
Returns: bool
{@inheritdoc}
Returns:
Retrieve the NotEmpty validator to use for failed "required" validations.
This validator will be used to produce a validation failure message in cases where the collection is empty but required.
Returns: \NotEmpty
Retrieve a raw (unfiltered) value from a named input
| Parameter Name | Type | Description |
|---|---|---|
| $name | string |
Returns: mixed
{@inheritdoc}
Returns:
Returns: array|object
{@inheritdoc}
Returns:
Return a list of inputs that were valid.
Implementations should return an associative array of name/input pairs that passed validation.
Returns: \InputInterface[]
Retrieve a value from a named input
| Parameter Name | Type | Description |
|---|---|---|
| $name | string |
Returns: mixed
{@inheritdoc}
Returns:
Test if an input or input filter by the given name is attached
| Parameter Name | Type | Description |
|---|---|---|
| $name | string |
Returns: bool
Is the data set has unknown input ?
Returns: bool
This function is automatically called when creating element with factory. It allows to perform various operations (add elements.
..)
Returns: void
{@inheritdoc}
| Parameter Name | Type | Description |
|---|---|---|
| $context | mixed | Ignored, |
Returns:
Merges the inputs from an InputFilter into the current one
| Parameter Name | Type | Description |
|---|---|---|
| $inputFilter | \BaseInputFilter |
Returns: self
Remove a named input
| Parameter Name | Type | Description |
|---|---|---|
| $name | string |
Returns: \InputFilterInterface
Replace a named input
| Parameter Name | Type | Description |
|---|---|---|
| $input | mixed | Any |
| $name | string | Name |
Returns: self
Set the count of data to validate
| Parameter Name | Type | Description |
|---|---|---|
| $count | int |
Returns: \CollectionInputFilter
{@inheritdoc}
| Parameter Name | Type | Description |
|---|---|---|
| $data |
Returns:
Set factory to use when adding inputs and filters by spec
| Parameter Name | Type | Description |
|---|---|---|
| $factory | \Factory |
Returns: \InputFilter
Set the input filter to use when looping the data
| Parameter Name | Type | Description |
|---|---|---|
| $inputFilter | \BaseInputFilter|array|\Traversable |
Returns: \CollectionInputFilter
Set if the collection can be empty
| Parameter Name | Type | Description |
|---|---|---|
| $isRequired | bool |
Returns: \CollectionInputFilter
Set the NotEmpty validator to use for failed "required" validations.
This validator will be used to produce a validation failure message in cases where the collection is empty but required.
| Parameter Name | Type | Description |
|---|---|---|
| $notEmptyValidator | \NotEmpty |
Returns: $this
| Parameter Name | Type | Description |
|---|---|---|
| $data | array|object |
Returns: $this
{@inheritdoc}
| Parameter Name | Type | Description |
|---|---|---|
| $name |
Returns: