TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
TrimFilter Class Reference
Inheritance diagram for TrimFilter:
AbstractFilter FilterInterface

Public Member Functions

 __construct (array $arguments=array())
 
 setCharacterList ($characterList)
 
 filter ($value)
 

Protected Attributes

 $characterList
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractFilter
 convertCase ($value, $case)
 
 getCharsetConverter ()
 
 getTypoScriptFrontendController ()
 

Detailed Description

Trim filter

Definition at line 20 of file TrimFilter.php.

Constructor & Destructor Documentation

__construct ( array  $arguments = array())

Constructor

Parameters
array$argumentsFilter configuration

Definition at line 34 of file TrimFilter.php.

References TrimFilter\setCharacterList().

Member Function Documentation

filter (   $value)

Return filtered value Strip characters from the beginning and the end

Parameters
string$value
Returns
string

Implements FilterInterface.

Definition at line 59 of file TrimFilter.php.

setCharacterList (   $characterList)

Set the characters that need to be stripped from the beginning or the end of the input, in addition to the default trim characters

Parameters
string$characterList
Returns
void

Definition at line 47 of file TrimFilter.php.

References TrimFilter\$characterList.

Referenced by TrimFilter\__construct().

Member Data Documentation

$characterList
protected

Definition at line 27 of file TrimFilter.php.

Referenced by TrimFilter\setCharacterList().