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

Public Member Functions

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

Protected Attributes

 $allowWhiteSpace
 

Additional Inherited Members

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

Detailed Description

Alphanumeric filter

Definition at line 20 of file AlphanumericFilter.php.

Constructor & Destructor Documentation

__construct (   $arguments = array())

Constructor

Parameters
array$argumentsFilter configuration

Definition at line 34 of file AlphanumericFilter.php.

References AlphanumericFilter\setAllowWhiteSpace().

Member Function Documentation

filter (   $value)

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

Parameters
string$value
Returns
string

Implements FilterInterface.

Definition at line 58 of file AlphanumericFilter.php.

setAllowWhiteSpace (   $allowWhiteSpace = true)

Allow white space in the submitted value

Parameters
bool$allowWhiteSpaceTrue if allowed
Returns
void

Definition at line 45 of file AlphanumericFilter.php.

References AlphanumericFilter\$allowWhiteSpace.

Referenced by AlphanumericFilter\__construct().

Member Data Documentation

$allowWhiteSpace
protected

Definition at line 27 of file AlphanumericFilter.php.

Referenced by AlphanumericFilter\setAllowWhiteSpace().