API Documentation

Zend/Filter/Word/SeparatorToSeparator.php

Show: inherited
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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Filter  
Version
$Id: SeparatorToSeparator.php 24594 2012-01-05 21:27:01Z matthew $  

\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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotected  $_replacementSeparator= 'null'
Default valuenullDetails
Type
Propertyprotected  $_searchSeparator= 'null'
Default valuenullDetails
Type

Methods

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

Constructor

Parameters
Name Type Description
$searchSeparator string

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
Name Type Description
$value string
Returns
Type Description
string
methodpublicfilter( string $value ) : string

Defined by Zend_Filter_Interface

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

Parameters
Name Type Description
$value string
Returns
Type Description
string
methodpublicgetReplacementSeparator( ) : string

Returns the actual set seperator which replaces the searched one

Returns
Type Description
string
methodpublicgetSearchSeparator( ) : string

Returns the actual set seperator to search for

Returns
Type Description
string
methodpublicsetReplacementSeparator( string $separator ) : \Zend_Filter_Word_SeparatorToSeparator

Sets a new seperator which replaces the searched one

Parameters
Name Type Description
$separator string

Seperator which replaces the searched one

Returns
Type Description
\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
Name Type Description
$separator string

Seperator to search for

Returns
Type Description
\Zend_Filter_Word_SeparatorToSeparator
Details
Fluent
This method is part of a fluent interface and will return the same instance  
Documentation was generated by DocBlox 0.15.1.