API Documentation

Filter/Word/SeparatorToSeparator.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Filter
version
$Id: SeparatorToSeparator.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Filter_Word_SeparatorToSeparator

Description

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.

Zend_Filter_Word_SeparatorToSeparator

Extends from
Zend_Filter_PregReplace
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Filter
Properties
$_searchSeparator
$_replacementSeparator
Methods
__construct
setSearchSeparator
getSearchSeparator
setReplacementSeparator
getReplacementSeparator
filter
_separatorToSeparatorFilter

Description

Properties

$_replacementSeparator

 $_replacementSeparator = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_searchSeparator

 $_searchSeparator = 'null'

Details

visibility
protected
default
null
final
false
static
false

Methods

__construct

__construct( string $searchSeparator = ,  $replacementSeparator = - ) : void

Constructor

Arguments
$searchSeparator
string
Seperator to search for
$replacementSeparator
Details
visibility
public
final
false
static
false

_separatorToSeparatorFilter

_separatorToSeparatorFilter( string $value ) : string

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

Returns the replaced string

Arguments
$value
string
Output
string
Details
visibility
protected
final
false
static
false

filter

filter( string $value ) : string

Defined by Zend_Filter_Interface

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

Arguments
$value
string
Output
string
Details
visibility
public
final
false
static
false

getReplacementSeparator

getReplacementSeparator( ) : string

Returns the actual set seperator which replaces the searched one

Output
string
Details
visibility
public
final
false
static
false

getSearchSeparator

getSearchSeparator( ) : string

Returns the actual set seperator to search for

Output
string
Details
visibility
public
final
false
static
false

setReplacementSeparator

setReplacementSeparator( string $separator ) : $this

Sets a new seperator which replaces the searched one

Arguments
$separator
string
Seperator which replaces the searched one
Output
$this
Details
visibility
public
final
false
static
false

setSearchSeparator

setSearchSeparator( string $separator ) : $this

Sets a new seperator to search for

Arguments
$separator
string
Seperator to search for
Output
$this
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.