package Default

 Methods

__construct()

__construct(\Zend\InputFilter\InputFilterPluginManager $inputFilterManager = null

Parameters

$inputFilterManager

\Zend\InputFilter\InputFilterPluginManager

Clear the default filter chain (i.e., don't inject one into new inputs)

clearDefaultFilterChain() : void

Clear the default validator chain (i.e., don't inject one into new inputs)

clearDefaultValidatorChain() : void

Factory for input objects

createInput(array|\Traversable|\Zend\InputFilter\InputProviderInterface $inputSpecification) : \Zend\InputFilter\InputInterface | \Zend\InputFilter\InputFilterInterface

Parameters

$inputSpecification

array\Traversable\Zend\InputFilter\InputProviderInterface

Exceptions

\Zend\InputFilter\Exception\InvalidArgumentException
\Zend\InputFilter\Exception\RuntimeException

Returns

\Zend\InputFilter\InputInterface\Zend\InputFilter\InputFilterInterface

Factory for input filters

createInputFilter(array|\Traversable|\Zend\InputFilter\InputFilterProviderInterface $inputFilterSpecification) : \Zend\InputFilter\InputFilterInterface

Parameters

$inputFilterSpecification

array\Traversable\Zend\InputFilter\InputFilterProviderInterface

Exceptions

\Zend\InputFilter\Exception\InvalidArgumentException
\Zend\InputFilter\Exception\RuntimeException

Returns

\Zend\InputFilter\InputFilterInterface

Get default filter chain, if any

getDefaultFilterChain() : null | \Zend\Filter\FilterChain

Returns

null\Zend\Filter\FilterChain

Get default validator chain, if any

getDefaultValidatorChain() : null | \Zend\Validator\ValidatorChain

Returns

null\Zend\Validator\ValidatorChain

getInputFilterManager()

getInputFilterManager() : \Zend\InputFilter\InputFilterPluginManager

Returns

\Zend\InputFilter\InputFilterPluginManager

Set default filter chain to use

setDefaultFilterChain(\Zend\Filter\FilterChain $filterChain) : \Zend\InputFilter\Factory

Parameters

$filterChain

\Zend\Filter\FilterChain

Returns

\Zend\InputFilter\Factory

Set default validator chain to use

setDefaultValidatorChain(\Zend\Validator\ValidatorChain $validatorChain) : \Zend\InputFilter\Factory

Parameters

$validatorChain

\Zend\Validator\ValidatorChain

Returns

\Zend\InputFilter\Factory

setInputFilterManager()

setInputFilterManager(\Zend\InputFilter\InputFilterPluginManager $inputFilterManager) : \Zend\InputFilter\Factory
fluent This method is part of a fluent interface and will return the same instance

Parameters

$inputFilterManager

\Zend\InputFilter\InputFilterPluginManager

Returns

\Zend\InputFilter\Factory

populateFilters()

populateFilters(\Zend\Filter\FilterChain $chain, array|\Traversable $filters) : void

Parameters

$chain

\Zend\Filter\FilterChain

$filters

array\Traversable

Exceptions

\Zend\InputFilter\Exception\RuntimeException

populateValidators()

populateValidators(\Zend\Validator\ValidatorChain $chain, array<mixed,string>|array<mixed,\Zend\Validator\ValidatorInterface> $validators) : void

Parameters

$chain

\Zend\Validator\ValidatorChain

$validators

array<mixed,string>array<mixed,\Zend\Validator\ValidatorInterface>

Exceptions

\Zend\InputFilter\Exception\RuntimeException

 Properties

 

$defaultFilterChain

$defaultFilterChain : \Zend\Filter\FilterChain

Default

 

$defaultValidatorChain

$defaultValidatorChain : \Zend\Validator\ValidatorChain

Default

 

$inputFilterManager

$inputFilterManager : \Zend\InputFilter\InputFilterPluginManager

Default