Filter/Word/SeparatorToSeparator.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Filter
- Version
- $Id$
\Zend_Filter_Word_SeparatorToSeparator
Package: Zend_Filter- Parent(s)
- \Zend_Filter_PregReplace
- Children
- \Zend_Filter_Word_SeparatorToDash
- \Zend_Filter_Word_UnderscoreToSeparator
- \Zend_Filter_Word_DashToUnderscore
- \Zend_Filter_Word_UnderscoreToDash
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
$_replacementSeparator = null
Default valuenull
Details- Type
- n/a
$_searchSeparator = null
Default valuenull
Details- Type
- n/a
Methods
__construct(string $searchSeparator = ' ', $replacementSeparator = '-') : void
ParametersName | 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
ParametersName | Type | Description |
---|
$value | string | |
---|
Returnsfilter(string $value) : string
Defined by Zend_Filter_Interface
Returns the string $value, replacing the searched seperators with the defined ones
ParametersName | Type | Description |
---|
$value | string | |
---|
ReturnssetReplacementSeparator(string $separator) : \Zend_Filter_Word_SeparatorToSeparator
Sets a new seperator which replaces the searched one
ParametersName | Type | Description |
---|
$separator | string | Seperator which replaces the searched one |
---|
ReturnsType | Description |
---|
\Zend_Filter_Word_SeparatorToSeparator | |
Details- Fluent
- This method is part of a fluent interface and will return the same instance
setSearchSeparator(string $separator) : \Zend_Filter_Word_SeparatorToSeparator
Sets a new seperator to search for
ParametersName | Type | Description |
---|
$separator | string | Seperator to search for |
---|
ReturnsType | Description |
---|
\Zend_Filter_Word_SeparatorToSeparator | |
Details- Fluent
- This method is part of a fluent interface and will return the same instance