Class UnderscoreToDash

Summary

Fully Qualified Name: Zend\Filter\Word\UnderscoreToDash
Extends: SeparatorToSeparator

Description

Methods

Name Description Defined By
__construct() Constructor UnderscoreToDash
__invoke() Invoke filter as a command AbstractFilter
filter() Defined by Zend\Filter\Filter SeparatorToSeparator
getOptions() Retrieve options representing object state AbstractFilter
getReplacementSeparator() Returns the actual set separator which replaces the searched one SeparatorToSeparator
getSearchSeparator() Returns the actual set separator to search for SeparatorToSeparator
hasPcreUnicodeSupport() AbstractFilter
setOptions() AbstractFilter
setReplacementSeparator() Sets a new separator which replaces the searched one SeparatorToSeparator
setSearchSeparator() Sets a new separator to search for SeparatorToSeparator

Method Details

__construct()

Constructor

Returns:

__invoke()

Invoke filter as a command

Proxies to {@link filter()}

Parameter Name Type Description
$value mixed

Returns: mixed

filter()

Defined by Zend\Filter\Filter

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

Parameter Name Type Description
$value string|array

Returns: string|array

getOptions()

Retrieve options representing object state

Returns: array

getReplacementSeparator()

Returns the actual set separator which replaces the searched one

Returns: string

getSearchSeparator()

Returns the actual set separator to search for

Returns: string

hasPcreUnicodeSupport()

Returns: bool

setOptions()

Parameter Name Type Description
$options array|\Traversable

Returns: self

setReplacementSeparator()

Sets a new separator which replaces the searched one

Parameter Name Type Description
$separator string Separator

Returns: self

setSearchSeparator()

Sets a new separator to search for

Parameter Name Type Description
$separator string Separator

Returns: self

Top