Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
CHAIN_APPEND = 'append'
Details CHAIN_PREPEND = 'prepend'
Detailsarray $_defaultNamespaces = 'array'Default Namespaces
Detailsarray $_filters = 'array'Filter chain
DetailsaddDefaultNamespaces(
array|string $namespace
)
:
nullAdds a new default namespace
DetailsaddFilter(
Zend_Filter_Interface $filter, string $placement
=
self
)
:
Zend_FilterAdds a filter to the chain
DetailsappendFilter(
Zend_Filter_Interface $filter
)
:
Zend_FilterAdd a filter to the end of the chain
Detailsfilter(
mixed $value
)
:
mixedReturns $value filtered through each filter in the chain
Filters are run in the order in which they were added to the chain (FIFO)
DetailsfilterStatic(
mixed $value, string $classBaseName, array $args
=
array, array|string $namespaces
=
array
)
:
mixedReturns a value filtered through a specified filter class, without requiring separate instantiation of the filter object.
The first argument of this method is a data input value, that you would have filtered. The second argument is a string, which corresponds to the basename of the filter class, relative to the Zend_Filter namespace. This method automatically loads the class, creates an instance, and applies the filter() method to the data input. You can also pass an array of constructor arguments, if they are needed for the filter class.
Detailsget(
mixed $value, string $classBaseName, array $args
=
array, array|string $namespaces
=
array
)
:
mixed
DetailsgetDefaultNamespaces(
)
:
arrayReturns the set default namespaces
DetailsgetFilters(
)
:
arrayGet all the filters
DetailshasDefaultNamespaces(
)
:
booleanReturns true when defaultNamespaces are set
DetailsprependFilter(
Zend_Filter_Interface $filter
)
:
Zend_FilterAdd a filter to the start of the chain
DetailssetDefaultNamespaces(
array|string $namespace
)
:
nullSets new default namespaces
Details