Filter/Word/SeparatorToSeparator.php

Show: PublicProtectedPrivateinherited
Table of Contents
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

>VPropertyprotected$_replacementSeparator = null
Default valuenullDetails
Type
n/a
>VPropertyprotected$_searchSeparator = null
Default valuenullDetails
Type
n/a

Methods

methodpublic__construct(string $searchSeparator = ' ',  $replacementSeparator = '-') : void

Constructor

Parameters
NameTypeDescription
$searchSeparatorstring

Seperator to search for

$replacementSeparator
methodprotected_separatorToSeparatorFilter(string $value) : string

Do the real work, replaces the seperator to search for with the replacement seperator

Returns the replaced string
Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
string
methodpublicfilter(string $value) : string

Defined by Zend_Filter_Interface

Returns the string $value, replacing the searched seperators with the defined ones
Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
string
methodpublicgetReplacementSeparator() : string

Returns the actual set seperator which replaces the searched one

Returns
TypeDescription
string
methodpublicgetSearchSeparator() : string

Returns the actual set seperator to search for

Returns
TypeDescription
string
methodpublicsetReplacementSeparator(string $separator) : \Zend_Filter_Word_SeparatorToSeparator

Sets a new seperator which replaces the searched one

Parameters
NameTypeDescription
$separatorstring

Seperator which replaces the searched one

Returns
TypeDescription
\Zend_Filter_Word_SeparatorToSeparator
Details
Fluent
This method is part of a fluent interface and will return the same instance  
methodpublicsetSearchSeparator(string $separator) : \Zend_Filter_Word_SeparatorToSeparator

Sets a new seperator to search for

Parameters
NameTypeDescription
$separatorstring

Seperator to search for

Returns
TypeDescription
\Zend_Filter_Word_SeparatorToSeparator
Details
Fluent
This method is part of a fluent interface and will return the same instance  
Documentation was generated by phpDocumentor 2.2.0 .