Methods
Sets filter options
__construct(array | \Traversable $options)
Parameters
$options
array\Traversable
Invoke filter as a command
__invoke(mixed $value) : mixed
Inherited
Proxies to filter()
inherited_from |
\Zend\Filter\AbstractFilter::__invoke() |
Parameters
$value
mixed
Exceptions
Returns
mixed
Defined by Zend\Filter\FilterInterface
filter(string $value) : string | mixed
Returns the string $value, converting characters to their corresponding HTML entity
equivalents where they exist
If the value provided is non-scalar, the value will remain unfiltered
Parameters
$value
string
Exceptions
Returns
string
mixed
Returns the charSet option
getCharSet() : string
Returns the doubleQuote option
getDoubleQuote() : bool
Get encoding
getEncoding() : string
Retrieve options representing object state
getOptions() : array
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::getOptions() |
Returns
array
Returns the quoteStyle option
getQuoteStyle() : int
hasPcreUnicodeSupport()
hasPcreUnicodeSupport() : bool
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::hasPcreUnicodeSupport() |
Returns
bool
Sets the charSet option
setCharSet(string $charSet) : \Zend\Filter\self
Proxies to setEncoding()
Parameters
$charSet
string
Returns
\Zend\Filter\self
Provides a fluent interface
Sets the doubleQuote option
setDoubleQuote(bool $doubleQuote) : \Zend\Filter\self
Parameters
$doubleQuote
bool
Returns
\Zend\Filter\self
Provides a fluent interface
Set encoding
setEncoding(string $value) : \Zend\Filter\self
Parameters
$value
string
Returns
\Zend\Filter\self
setOptions()
setOptions(array | \Traversable $options) : \Zend\Filter\self
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::setOptions() |
Parameters
$options
array\Traversable
Exceptions
Returns
\Zend\Filter\self
Sets the quoteStyle option
setQuoteStyle(int $quoteStyle) : \Zend\Filter\self
Parameters
$quoteStyle
int
Returns
\Zend\Filter\self
Provides a fluent interface
isOptions()
isOptions(mixed $options) : bool
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::isOptions() |
Parameters
$options
mixed
Returns
bool
Properties
Corresponds to the forth htmlentities() argument
$doubleQuote : bool
Corresponds to the third htmlentities() argument
$encoding : string
Filter options
$options : array
Inherited
inherited_from |
\Zend\Filter\AbstractFilter::$$options |
Corresponds to the second htmlentities() argument
$quoteStyle : int