category |
Zend |
package |
Zend_Filter |
uses |
|
copyright |
Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license |
New BSD License |
inherited_from |
\Zend_Filter_PregReplace |
Methods
Constructor
__construct(string $separator = ' '
) : void
inherited_from |
\Zend_Filter_PregReplace::__construct() |
Parameters
$separator
string
Space by default
Constructor
Supported options are
'match' => matching pattern
'replace' => replace with this
__construct(string|array $options = null
) : void
Inherited
Parameters
$options
string
array
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
Get currently set replacement value
getReplacement() : string
Inherited
Returns the actual set seperator
getSeparator() : string
Is Unicode Support Enabled Utility function
isUnicodeSupportEnabled() : boolean
InheritedStatic
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_Separator_Abstract
fluent |
This method is part of a fluent interface and will return the same instance |
Parameters
$separator
string
Seperator
Returns
\Zend_Filter_Word_Separator_Abstract
Method to cache the regex needed to determine if unicode support is available
_determineUnicodeSupport() : boolean
InheritedStatic
Properties
Pattern to match
$_matchPattern : mixed
Replacement pattern
$_replacement : mixed
Is unicode enabled?
$_unicodeSupportEnabled : boolean
Static