Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

__construct(
string $searchSeparator
=
' ', $replacementSeparator
=
'-'
)
:
void
Constructor
Name | Type | Description |
---|---|---|
$searchSeparator | string | Seperator to search for |
$replacementSeparator |

_separatorToSeparatorFilter(
string $value
)
:
string
Do the real work, replaces the seperator to search for with the replacement seperator
Returns the replaced string
Name | Type | Description |
---|---|---|
$value | string |
Type | Description |
---|---|
string |

filter(
string $value
)
:
string
Defined by Zend_Filter_Interface
Returns the string $value, replacing the searched seperators with the defined ones
Name | Type | Description |
---|---|---|
$value | string |
Type | Description |
---|---|
string |

getReplacementSeparator(
)
:
string
Returns the actual set seperator which replaces the searched one
Type | Description |
---|---|
string |

getSearchSeparator(
)
:
string
Returns the actual set seperator to search for
Type | Description |
---|---|
string |

setReplacementSeparator(
string $separator
)
:
\Zend_Filter_Word_SeparatorToSeparator
Sets a new seperator which replaces the searched one
Name | Type | Description |
---|---|---|
$separator | string | Seperator which replaces the searched one |
Type | Description |
---|---|
\Zend_Filter_Word_SeparatorToSeparator |

setSearchSeparator(
string $separator
)
:
\Zend_Filter_Word_SeparatorToSeparator
Sets a new seperator to search for
Name | Type | Description |
---|---|---|
$separator | string | Seperator to search for |
Type | Description |
---|---|
\Zend_Filter_Word_SeparatorToSeparator |