Filter/Word/CamelCaseToSeparator.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 [email protected] 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: CamelCaseToSeparator.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Filter_Word_CamelCaseToSeparator

Package: Zend\Filter

Parent(s)
\Zend_Filter_Word_Separator_Abstract < \Zend_Filter_PregReplace
Children
\Zend_Filter_Word_CamelCaseToDash
\Zend_Filter_Word_CamelCaseToUnderscore
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotectedmixed $_matchPattern = null
Default valuenullDetails
Type
mixed
Inherited_from
\Zend_Filter_PregReplace::$$_matchPattern  
Inherited_from
\Zend_Filter_Word_Separator_Abstract::$$_matchPattern  
Propertyprotectedmixed $_replacement = ''
Default value''Details
Type
mixed
Inherited_from
\Zend_Filter_PregReplace::$$_replacement  
Inherited_from
\Zend_Filter_Word_Separator_Abstract::$$_replacement  
Propertyprotected$_separator = null
Default valuenullDetails
Type
n/a
Inherited_from
\Zend_Filter_Word_Separator_Abstract::$$_separator  
Propertyprotectedbool $_unicodeSupportEnabled = null

Methods

methodpublic__construct(string $separator = ' ') : void
inherited

Constructor

Inherited from: \Zend_Filter_Word_Separator_Abstract::__construct()
Parameters
Name Type Description
$separator string

Space by default

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

Perform regexp replacement as filter

Parameters
Name Type Description
$value string
Returns
Type Description
string
Throws
Exception Description
\Zend_Filter_Exception If filtering $value is impossible
methodpublicgetMatchPattern() : string
Returns
Type Description
string
methodpublicgetReplacement() : string
Returns
Type Description
string
methodpublicgetSeparator() : string
inherited

Returns the actual set seperator

Inherited from: \Zend_Filter_Word_Separator_Abstract::getSeparator()
Returns
Type Description
string
methodpublicisUnicodeSupportEnabled() : bool
staticinherited

Is Unicode Support Enabled Utility function

Inherited from: \Zend_Filter_PregReplace::isUnicodeSupportEnabled()\Zend_Filter_Word_Separator_Abstract::isUnicodeSupportEnabled()
Returns
Type Description
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_Separator_Abstract::setMatchPattern()
Parameters
Name Type Description
$match mixed
  • same as the first argument of preg_replace
Returns
Type Description
\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_Separator_Abstract::setReplacement()
Parameters
Name Type Description
$replacement mixed
  • same as the second argument of preg_replace
Returns
Type Description
\Zend_Filter_PregReplace
methodpublicsetSeparator(string $separator) : \Zend_Filter_Word_CamelCaseToSeparator
inherited

Sets a new seperator

Inherited from: \Zend_Filter_Word_Separator_Abstract::setSeparator()
Parameters
Name Type Description
$separator string

Seperator

Returns
Type Description
\Zend_Filter_Word_CamelCaseToSeparator
Details
Fluent
This method is part of a fluent interface and will return the same instance  
Documentation was generated by phpDocumentor 2.0.0a8.