Methods

Constructor

__construct(string $searchSeparator, string $replacementSeparator) 

Parameters

$searchSeparator

string

Separator to search for

$replacementSeparator

string

Separator to replace with

Invoke filter as a command

__invoke(mixed $value) : mixed
Inherited

Proxies to filter()

inherited_from \Zend\Filter\AbstractFilter::__invoke()

Parameters

$value

mixed

Exceptions

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

Returns

mixed

Defined by Zend\Filter\Filter

filter(string | array $value) : string | array

Returns the string $value, replacing the searched separators with the defined ones

Parameters

$value

stringarray

Exceptions

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

Returns

stringarray

Retrieve options representing object state

getOptions() : array
Inherited

inherited_from \Zend\Filter\AbstractFilter::getOptions()

Returns

array

Returns the actual set separator which replaces the searched one

getReplacementSeparator() : string

Returns

string

Returns the actual set separator to search for

getSearchSeparator() : string

Returns

string

hasPcreUnicodeSupport()

hasPcreUnicodeSupport() : bool
Inherited

inherited_from \Zend\Filter\AbstractFilter::hasPcreUnicodeSupport()

Returns

bool

setOptions()

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

inherited_from \Zend\Filter\AbstractFilter::setOptions()

Parameters

$options

array\Traversable

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

\Zend\Filter\self

Sets a new separator which replaces the searched one

setReplacementSeparator(string $separator) : \Zend\Filter\Word\self

Parameters

$separator

string

Separator which replaces the searched one

Returns

\Zend\Filter\Word\self

Sets a new seperator to search for

setSearchSeparator(string $separator) : \Zend\Filter\Word\self

Parameters

$separator

string

Seperator to search for

Returns

\Zend\Filter\Word\self

isOptions()

isOptions(mixed $options) : bool
Inherited

inherited_from \Zend\Filter\AbstractFilter::isOptions()

Parameters

$options

mixed

Returns

bool

 Properties

 

Filter options

$options : array
Inherited

inherited_from \Zend\Filter\AbstractFilter::$$options
 

$replacementSeparator

$replacementSeparator 

 

$searchSeparator

$searchSeparator