TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Form\Filter\TrimFilter Class Reference
Inheritance diagram for TYPO3\CMS\Form\Filter\TrimFilter:
TYPO3\CMS\Form\Filter\FilterInterface tx_form_System_Filter_Trim

Public Member Functions

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

Protected Attributes

 $characterList
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Trim filter

Author
Patrick Broens patri.nosp@m.ck@p.nosp@m.atric.nosp@m.kbro.nosp@m.ens.n.nosp@m.l

Definition at line 22 of file TrimFilter.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Form\Filter\TrimFilter::__construct ( array  $arguments = array())

Constructor

Parameters
array$argumentsFilter configuration

Definition at line 36 of file TrimFilter.php.

References TYPO3\CMS\Form\Filter\TrimFilter\setCharacterList().

Member Function Documentation

◆ filter()

TYPO3\CMS\Form\Filter\TrimFilter::filter (   $value)

Return filtered value Strip characters from the beginning and the end

Parameters
string$value
Returns
string

Implements TYPO3\CMS\Form\Filter\FilterInterface.

Definition at line 60 of file TrimFilter.php.

◆ setCharacterList()

TYPO3\CMS\Form\Filter\TrimFilter::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
tx_form_Filter_Trim

Definition at line 48 of file TrimFilter.php.

References TYPO3\CMS\Form\Filter\TrimFilter\$characterList.

Referenced by TYPO3\CMS\Form\Filter\TrimFilter\__construct().

Member Data Documentation

◆ $characterList

TYPO3\CMS\Form\Filter\TrimFilter::$characterList
protected

Definition at line 29 of file TrimFilter.php.

Referenced by TYPO3\CMS\Form\Filter\TrimFilter\setCharacterList().