category Zend
package Zend_Filter

 Methods

Constructor

__construct() 

Invoke filter as a command

__invoke(mixed $value) : mixed
Inherited

Proxies to filter()

inherited_from \Zend\Filter\AbstractFilter::__invoke()
inherited_from \Zend\Filter\PregReplace::__invoke()
inherited_from \Zend\Filter\Word\AbstractSeparator::__invoke()
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::__invoke()

Parameters

$value

mixed

Exceptions

\Zend\Filter\Exception\ExceptionInterface If filtering $value is impossible

Returns

mixed

Defined by Zend\Filter\Filter

filter(string $value) : string
Inherited

inherited_from \Zend\Filter\Word\SeparatorToCamelCase::filter()

Parameters

$value

string

Exceptions

\Zend\Filter\Exception\RuntimeException

Returns

string

Retrieve options representing object state

getOptions() : array
Inherited

inherited_from \Zend\Filter\AbstractFilter::getOptions()
inherited_from \Zend\Filter\PregReplace::getOptions()
inherited_from \Zend\Filter\Word\AbstractSeparator::getOptions()
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::getOptions()

Returns

array

Get currently set match pattern

getPattern() : string | array
Inherited

inherited_from \Zend\Filter\PregReplace::getPattern()
inherited_from \Zend\Filter\Word\AbstractSeparator::getPattern()
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::getPattern()

Returns

stringarray

Get currently set replacement value

getReplacement() : string | array
Inherited

inherited_from \Zend\Filter\PregReplace::getReplacement()
inherited_from \Zend\Filter\Word\AbstractSeparator::getReplacement()
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::getReplacement()

Returns

stringarray

Returns the actual set separator

getSeparator() : string
Inherited

inherited_from \Zend\Filter\Word\AbstractSeparator::getSeparator()
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::getSeparator()

Returns

string

hasPcreUnicodeSupport()

hasPcreUnicodeSupport() : bool
Inherited

inherited_from \Zend\Filter\AbstractFilter::hasPcreUnicodeSupport()
inherited_from \Zend\Filter\PregReplace::hasPcreUnicodeSupport()
inherited_from \Zend\Filter\Word\AbstractSeparator::hasPcreUnicodeSupport()
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::hasPcreUnicodeSupport()

Returns

bool

setOptions()

setOptions(array | \Traversable $options) : \Zend\Filter\AbstractFilter
Inherited

inherited_from \Zend\Filter\AbstractFilter::setOptions()
inherited_from \Zend\Filter\PregReplace::setOptions()
inherited_from \Zend\Filter\Word\AbstractSeparator::setOptions()
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::setOptions()

Parameters

$options

array\Traversable

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

Set the regex pattern to search for

setPattern(string | array $pattern) : \Zend\Filter\PregReplace
Inherited

see \Zend\Filter\preg_replace()
inherited_from \Zend\Filter\PregReplace::setPattern()
inherited_from \Zend\Filter\Word\AbstractSeparator::setPattern()
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::setPattern()

Parameters

$pattern

stringarray
  • same as the first argument of preg_replace

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

Set the replacement array/string

setReplacement(array | string $replacement) : \Zend\Filter\PregReplace
Inherited

see \Zend\Filter\preg_replace()
inherited_from \Zend\Filter\PregReplace::setReplacement()
inherited_from \Zend\Filter\Word\AbstractSeparator::setReplacement()
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::setReplacement()

Parameters

$replacement

arraystring
  • same as the second argument of preg_replace

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

Sets a new separator

setSeparator(string $separator) : \Zend\Filter\Word\AbstractSeparator
Inherited

inherited_from \Zend\Filter\Word\AbstractSeparator::setSeparator()
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::setSeparator()

Parameters

$separator

string

Separator

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

isOptions()

isOptions(mixed $options) : bool
Inherited

inherited_from \Zend\Filter\AbstractFilter::isOptions()
inherited_from \Zend\Filter\PregReplace::isOptions()
inherited_from \Zend\Filter\Word\AbstractSeparator::isOptions()
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::isOptions()

Parameters

$options

mixed

Returns

bool

 Properties

 

Is PCRE is compiled with UTF-8 and Unicode support

$hasPcreUnicodeSupport : bool
Inherited

inherited_from \Zend\Filter\AbstractFilter::$$hasPcreUnicodeSupport
inherited_from \Zend\Filter\PregReplace::$$hasPcreUnicodeSupport
inherited_from \Zend\Filter\Word\AbstractSeparator::$$hasPcreUnicodeSupport
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::$$hasPcreUnicodeSupport
 

Filter options

$options : array
Inherited

inherited_from \Zend\Filter\PregReplace::$$options
inherited_from \Zend\Filter\Word\AbstractSeparator::$$options
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::$$options
 

$separator

$separator 
Inherited

inherited_from \Zend\Filter\Word\AbstractSeparator::$$separator
inherited_from \Zend\Filter\Word\SeparatorToCamelCase::$$separator