Definition at line 33 of file StringTrim.php.
◆ __construct()
__construct |
( |
|
$options = null | ) |
|
Sets filter options
- Parameters
-
- Returns
- void
Definition at line 51 of file StringTrim.php.
57 $temp[
'charlist'] = array_shift(
$options);
61 if (array_key_exists(
'charlist',
$options)) {
◆ _unicodeTrim()
_unicodeTrim |
( |
|
$value, |
|
|
|
$charlist = '\\\\s' |
|
) |
| |
|
protected |
Unicode aware trim method Fixes a PHP problem
- Parameters
-
string | $value | |
string | $charlist | |
- Returns
- string
Definition at line 113 of file StringTrim.php.
115 $chars = preg_replace(
116 array(
'/[\^\-\]\\\]/S',
'/\\\{4}/S',
'/\//'),
117 array(
'\\\\\\0',
'\\',
'\/' ),
121 $pattern =
'^[' . $chars .
']*|[' . $chars .
']*$';
122 return preg_replace(
"/$pattern/sSD",
'',
$value);
◆ filter()
Defined by Zend_Filter_Interface
Returns the string $value with characters stripped from the beginning and end
- Parameters
-
- Returns
- string
Implements Zend_Filter_Interface.
Definition at line 96 of file StringTrim.php.
98 if (
null === $this->_charList) {
_unicodeTrim($value, $charlist='\\\\s')
◆ getCharList()
Returns the charList option
- Returns
- string|null
Definition at line 71 of file StringTrim.php.
◆ setCharList()
◆ $_charList
The documentation for this class was generated from the following file: