category Zend
package Zend_Filter
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Filter_Word_CamelCaseToSeparator

 Methods

Constructor

__construct() : void

Constructor Supported options are 'match' => matching pattern 'replace' => replace with this

__construct(string|array $options = null) : void
Inherited

Parameters

$options

stringarray

Perform regexp replacement as filter

filter(string $value) : string
Inherited
inherited_from \Zend_Filter_Interface::filter()

Parameters

$value

string

Returns

string

Get currently set match pattern

getMatchPattern() : string
Inherited

Returns

string

Get currently set replacement value

getReplacement() : string
Inherited

Returns

string

Returns the actual set seperator

getSeparator() : string
Inherited

Returns

string

Is Unicode Support Enabled Utility function

isUnicodeSupportEnabled() : boolean
InheritedStatic

Returns

boolean

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

setMatchPattern(mixed $match) : \Zend_Filter_PregReplace
Inherited

Parameters

$match

mixed
  • same as the first argument of preg_replace

Returns

\Zend_Filter_PregReplace

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

setReplacement(mixed $replacement) : \Zend_Filter_PregReplace
Inherited

Parameters

$replacement

mixed
  • same as the second argument of preg_replace

Returns

\Zend_Filter_PregReplace

Sets a new seperator

setSeparator(string $separator) : \Zend_Filter_Word_CamelCaseToUnderscore
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$separator

string

Seperator

Returns

\Zend_Filter_Word_CamelCaseToUnderscore

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

_determineUnicodeSupport() : boolean
InheritedStatic

Returns

boolean

 Properties

 

Pattern to match

$_matchPattern : mixed

Default

null
 

Replacement pattern

$_replacement : mixed

Default

''
 

$_separator

$_separator 

Default

null
 

Is unicode enabled?

$_unicodeSupportEnabled : boolean

Default

null
Static