TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Form\Filter\AlphanumericFilter Class Reference
Inheritance diagram for TYPO3\CMS\Form\Filter\AlphanumericFilter:
TYPO3\CMS\Form\Filter\FilterInterface tx_form_System_Filter_Alphanumeric

Public Member Functions

 __construct ($arguments=array())
 
 setAllowWhiteSpace ($allowWhiteSpace=TRUE)
 
 filter ($value)
 

Protected Attributes

 $allowWhiteSpace
 

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! Alphanumeric 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 AlphanumericFilter.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor

Parameters
array$argumentsFilter configuration

Definition at line 36 of file AlphanumericFilter.php.

References TYPO3\CMS\Form\Filter\AlphanumericFilter\setAllowWhiteSpace().

Member Function Documentation

◆ filter()

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

Return filtered value Remove all but alphabetic and numeric characters Allow whitespace by choice

Parameters
string$value
Returns
string

Implements TYPO3\CMS\Form\Filter\FilterInterface.

Definition at line 58 of file AlphanumericFilter.php.

◆ setAllowWhiteSpace()

TYPO3\CMS\Form\Filter\AlphanumericFilter::setAllowWhiteSpace (   $allowWhiteSpace = TRUE)

Allow white space in the submitted value

Parameters
boolean$allowWhiteSpaceTrue if allowed
Returns
void

Definition at line 46 of file AlphanumericFilter.php.

References TYPO3\CMS\Form\Filter\AlphanumericFilter\$allowWhiteSpace.

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

Member Data Documentation

◆ $allowWhiteSpace

TYPO3\CMS\Form\Filter\AlphanumericFilter::$allowWhiteSpace
protected