API Documentation

Filter/StringTrim.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Filter
version
$Id: StringTrim.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Filter_StringTrim

Description

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 license@zend.com so we can send you a copy immediately.

Zend_Filter_StringTrim

Implements
Zend_Filter_Interface
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Filter
Properties
$_charList
Methods
__construct
getCharList
setCharList
filter
_unicodeTrim

Description

Properties

$_charList

string|null $_charList = ''

List of characters provided to the trim() function

If this is null, then trim() is called with no specific character list, and its default behavior will be invoked, trimming whitespace.

Details

$_charList
string|null
visibility
protected
default
final
false
static
false

Methods

__construct

__construct( string|array|Zend_Config $charList = null ) : void

Sets filter options

Arguments
$charList
stringarrayZend_Config
Details
visibility
public
final
false
static
false

_unicodeTrim

_unicodeTrim( string $value, string $charlist = \\\\s ) : string

Unicode aware trim method Fixes a PHP problem

Arguments
$value
string
$charlist
string
Output
string
Details
visibility
protected
final
false
static
false

filter

filter( string $value ) : string

Defined by Zend_Filter_Interface

Returns the string $value with characters stripped from the beginning and end

Arguments
$value
string
Output
string
Details
visibility
public
final
false
static
false

getCharList

getCharList( ) : string|null

Returns the charList option

Output
string|null
Details
visibility
public
final
false
static
false

setCharList

setCharList( string|null $charList ) : Zend_Filter_StringTrim

Sets the charList option

Arguments
$charList
stringnull
Output
Zend_Filter_StringTrim
Provides a fluent interface
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.