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 $value) : string

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

Parameters

$value

string

Exceptions

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

Returns

string

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\AbstractFilter
Inherited

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

Parameters

$options

array\Traversable

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

Sets a new separator which replaces the searched one

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

Parameters

$separator

string

Separator which replaces the searched one

Returns

Sets a new seperator to search for

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

Parameters

$separator

string

Seperator to search for

Returns

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