Filter/Word/CamelCaseToDash.php
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: CamelCaseToDash.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Filter_Word_CamelCaseToDash
- Parent(s)
- \Zend_Filter_Word_CamelCaseToSeparator < \Zend_Filter_Word_Separator_Abstract < \Zend_Filter_PregReplace
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

mixed $_matchPattern = nullnullDetails- Type
- mixed
- Inherited_from
- \Zend_Filter_PregReplace::$$_matchPattern
- Inherited_from
- \Zend_Filter_Word_Separator_Abstract::$$_matchPattern
- Inherited_from
- \Zend_Filter_Word_CamelCaseToSeparator::$$_matchPattern

mixed $_replacement = ''''Details- Type
- mixed
- Inherited_from
- \Zend_Filter_PregReplace::$$_replacement
- Inherited_from
- \Zend_Filter_Word_Separator_Abstract::$$_replacement
- Inherited_from
- \Zend_Filter_Word_CamelCaseToSeparator::$$_replacement

$_separator = nullnullDetails- Type
- n/a
- Inherited_from
- \Zend_Filter_Word_Separator_Abstract::$$_separator
- Inherited_from
- \Zend_Filter_Word_CamelCaseToSeparator::$$_separator

bool $_unicodeSupportEnabled = nullnullDetails- Type
- bool
- Inherited_from
- \Zend_Filter_PregReplace::$$_unicodeSupportEnabled
- Inherited_from
- \Zend_Filter_Word_Separator_Abstract::$$_unicodeSupportEnabled
- Inherited_from
- \Zend_Filter_Word_CamelCaseToSeparator::$$_unicodeSupportEnabled
Methods

_determineUnicodeSupport() : boolMethod to cache the regex needed to determine if unicode support is available
Inherited from: \Zend_Filter_PregReplace::_determineUnicodeSupport()\Zend_Filter_Word_Separator_Abstract::_determineUnicodeSupport()\Zend_Filter_Word_CamelCaseToSeparator::_determineUnicodeSupport()| Type | Description |
|---|---|
| bool |

filter(string $value) : stringPerform regexp replacement as filter
Inherited from: \Zend_Filter_Word_CamelCaseToSeparator::filter()| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| string |
| Exception | Description |
|---|---|
| \Zend_Filter_Exception | If filtering $value is impossible |

getMatchPattern() : stringGet currently set match pattern
Inherited from: \Zend_Filter_PregReplace::getMatchPattern()\Zend_Filter_Word_Separator_Abstract::getMatchPattern()\Zend_Filter_Word_CamelCaseToSeparator::getMatchPattern()| Type | Description |
|---|---|
| string |

getReplacement() : stringGet currently set replacement value
Inherited from: \Zend_Filter_PregReplace::getReplacement()\Zend_Filter_Word_Separator_Abstract::getReplacement()\Zend_Filter_Word_CamelCaseToSeparator::getReplacement()| Type | Description |
|---|---|
| string |

getSeparator() : stringReturns the actual set seperator
Inherited from: \Zend_Filter_Word_Separator_Abstract::getSeparator()\Zend_Filter_Word_CamelCaseToSeparator::getSeparator()| Type | Description |
|---|---|
| string |

isUnicodeSupportEnabled() : boolIs Unicode Support Enabled Utility function
Inherited from: \Zend_Filter_PregReplace::isUnicodeSupportEnabled()\Zend_Filter_Word_Separator_Abstract::isUnicodeSupportEnabled()\Zend_Filter_Word_CamelCaseToSeparator::isUnicodeSupportEnabled()| Type | Description |
|---|---|
| bool |

setMatchPattern(mixed $match) : \Zend_Filter_PregReplaceSet the match pattern for the regex being called within filter()
Inherited from: \Zend_Filter_PregReplace::setMatchPattern()\Zend_Filter_Word_Separator_Abstract::setMatchPattern()\Zend_Filter_Word_CamelCaseToSeparator::setMatchPattern()| Name | Type | Description |
|---|---|---|
| $match | mixed |
|
| Type | Description |
|---|---|
| \Zend_Filter_PregReplace |

setReplacement(mixed $replacement) : \Zend_Filter_PregReplaceSet the Replacement pattern/string for the preg_replace called in filter
Inherited from: \Zend_Filter_PregReplace::setReplacement()\Zend_Filter_Word_Separator_Abstract::setReplacement()\Zend_Filter_Word_CamelCaseToSeparator::setReplacement()| Name | Type | Description |
|---|---|---|
| $replacement | mixed |
|
| Type | Description |
|---|---|
| \Zend_Filter_PregReplace |

setSeparator(string $separator) : \Zend_Filter_Word_CamelCaseToDashSets a new seperator
Inherited from: \Zend_Filter_Word_Separator_Abstract::setSeparator()\Zend_Filter_Word_CamelCaseToSeparator::setSeparator()| Name | Type | Description |
|---|---|---|
| $separator | string | Seperator |
| Type | Description |
|---|---|
| \Zend_Filter_Word_CamelCaseToDash |
- Fluent
- This method is part of a fluent interface and will return the same instance