category | Zend |
---|---|
package | Zend_Filter |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
addDefaultNamespaces(array|string $namespace) : null
array
string
null
addFilter(\Zend_Filter_Interface $filter, string $placement = self::CHAIN_APPEND
) : \Zend_Filter
\Zend_Filter_Interface
string
\Zend_Filter
Provides a fluent interfaceappendFilter(\Zend_Filter_Interface $filter) : \Zend_Filter
\Zend_Filter_Interface
\Zend_Filter
Provides a fluent interfacefilter(mixed $value) : mixed
Filters are run in the order in which they were added to the chain (FIFO)
inherited_from | \Zend_Filter_Interface::filter() |
---|
mixed
mixed
filterStatic(mixed $value, string $classBaseName, array $args= array()
, array|string $namespaces= array()
) : mixed
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.
mixed
string
array
OPTIONAL
array
string
OPTIONAL
\Zend_Filter_Exception |
---|
mixed
get(mixed $value, string $classBaseName, array $args= array()
, array|string $namespaces= array()
) : mixed
getDefaultNamespaces() : array
array
getFilters() : array
array
hasDefaultNamespaces() : boolean
boolean
prependFilter(\Zend_Filter_Interface $filter) : \Zend_Filter
\Zend_Filter_Interface
\Zend_Filter
Provides a fluent interfacesetDefaultNamespaces(array|string $namespace) : null
array
string
null
$_defaultNamespaces : array
array()
$_filters : array
array()
CHAIN_APPEND = 'append'
CHAIN_PREPEND = 'prepend'