Filter/Word/UnderscoreToSeparator.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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Filter  
Version
$Id: UnderscoreToSeparator.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Filter_Word_UnderscoreToSeparator

Package: Zend\Filter
Parent(s)
\Zend_Filter_Word_SeparatorToSeparator < \Zend_Filter_PregReplace
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedmixed $_matchPattern = null
Default valuenullDetails
Type
mixed
Inherited_from
\Zend_Filter_PregReplace::$$_matchPattern  
Inherited_from
\Zend_Filter_Word_SeparatorToSeparator::$$_matchPattern  
>VPropertyprotectedmixed $_replacement = ''
Default value''Details
Type
mixed
Inherited_from
\Zend_Filter_PregReplace::$$_replacement  
Inherited_from
\Zend_Filter_Word_SeparatorToSeparator::$$_replacement  
>VPropertyprotected$_replacementSeparator = null
Default valuenullDetails
Type
n/a
Inherited_from
\Zend_Filter_Word_SeparatorToSeparator::$$_replacementSeparator  
>VPropertyprotected$_searchSeparator = null
Default valuenullDetails
Type
n/a
Inherited_from
\Zend_Filter_Word_SeparatorToSeparator::$$_searchSeparator  
>VPropertyprotectedbool $_unicodeSupportEnabled = null

Methods

methodpublic__construct( $replacementSeparator = ' ') : void

Constructor

Parameters
NameTypeDescription
$replacementSeparator
methodprotected_determineUnicodeSupport() : bool
staticinherited

Method to cache the regex needed to determine if unicode support is available

Inherited from: \Zend_Filter_PregReplace::_determineUnicodeSupport()\Zend_Filter_Word_SeparatorToSeparator::_determineUnicodeSupport()
Returns
TypeDescription
bool
methodprotected_separatorToSeparatorFilter(string $value) : string
inherited

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

Inherited from: \Zend_Filter_Word_SeparatorToSeparator::_separatorToSeparatorFilter()

Returns the replaced string

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

Defined by Zend_Filter_Interface

Inherited from: \Zend_Filter_Word_SeparatorToSeparator::filter()

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

Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
string
Throws
ExceptionDescription
\Zend_Filter_ExceptionIf filtering $value is impossible
methodpublicgetMatchPattern() : string
Returns
TypeDescription
string
methodpublicgetReplacement() : string
Returns
TypeDescription
string
methodpublicgetReplacementSeparator() : string
inherited

Returns the actual set seperator which replaces the searched one

Inherited from: \Zend_Filter_Word_SeparatorToSeparator::getReplacementSeparator()
Returns
TypeDescription
string
methodpublicgetSearchSeparator() : string
inherited

Returns the actual set seperator to search for

Inherited from: \Zend_Filter_Word_SeparatorToSeparator::getSearchSeparator()
Returns
TypeDescription
string
methodpublicisUnicodeSupportEnabled() : bool
Returns
TypeDescription
bool
methodpublicsetMatchPattern(mixed $match) : \Zend_Filter_PregReplace
inherited

Set the match pattern for the regex being called within filter()

Inherited from: \Zend_Filter_PregReplace::setMatchPattern()\Zend_Filter_Word_SeparatorToSeparator::setMatchPattern()
Parameters
NameTypeDescription
$matchmixed
  • same as the first argument of preg_replace
Returns
TypeDescription
\Zend_Filter_PregReplace
methodpublicsetReplacement(mixed $replacement) : \Zend_Filter_PregReplace
inherited

Set the Replacement pattern/string for the preg_replace called in filter

Inherited from: \Zend_Filter_PregReplace::setReplacement()\Zend_Filter_Word_SeparatorToSeparator::setReplacement()
Parameters
NameTypeDescription
$replacementmixed
  • same as the second argument of preg_replace
Returns
TypeDescription
\Zend_Filter_PregReplace
methodpublicsetReplacementSeparator(string $separator) : \Zend_Filter_Word_UnderscoreToSeparator
inherited

Sets a new seperator which replaces the searched one

Inherited from: \Zend_Filter_Word_SeparatorToSeparator::setReplacementSeparator()
Parameters
NameTypeDescription
$separatorstring

Seperator which replaces the searched one

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

Sets a new seperator to search for

Inherited from: \Zend_Filter_Word_SeparatorToSeparator::setSearchSeparator()
Parameters
NameTypeDescription
$separatorstring

Seperator to search for

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