TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Form\Validation\AlphanumericValidator Class Reference
Inheritance diagram for TYPO3\CMS\Form\Validation\AlphanumericValidator:
TYPO3\CMS\Form\Validation\AbstractValidator TYPO3\CMS\Form\Validation\ValidatorInterface tx_form_System_Validate_Alphanumeric

Public Member Functions

 __construct ($arguments)
 
 isValid ()
 
 setAllowWhiteSpace ($allowWhiteSpace)
 
- Public Member Functions inherited from TYPO3\CMS\Form\Validation\AbstractValidator
 injectRequestHandler (\TYPO3\CMS\Form\Request $requestHandler)
 
 __construct ($arguments)
 
 setFieldName ($fieldName)
 
 getFieldName ()
 
 getMessage ()
 
 getError ()
 
 setMessage ($message='', $type='TEXT')
 
 setError ($error='', $type='TEXT')
 
 setShowMessage ($show)
 
 messageMustBeDisplayed ()
 

Public Attributes

const LOCALISATION_OBJECT_NAME = 'tx_form_system_validate_alphanumeric'
 

Protected Member Functions

 getLocalLanguageLabel ()
 
- Protected Member Functions inherited from TYPO3\CMS\Form\Validation\AbstractValidator
 substituteValues ($message)
 
 getLocalLanguageLabel ($type)
 

Protected Attributes

 $allowWhiteSpace
 
- Protected Attributes inherited from TYPO3\CMS\Form\Validation\AbstractValidator
 $fieldName
 
 $message = array()
 
 $error = array()
 
 $showMessage = TRUE
 
 $localizationHandler
 
 $requestHandler
 
 $localCobj
 

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 rule

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 AlphanumericValidator.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Form\Validation\AlphanumericValidator::__construct (   $arguments)

Constructor

Parameters
array$argumentsTyposcript configuration

Definition at line 43 of file AlphanumericValidator.php.

References TYPO3\CMS\Form\Validation\AlphanumericValidator\setAllowWhiteSpace().

Member Function Documentation

◆ getLocalLanguageLabel()

TYPO3\CMS\Form\Validation\AlphanumericValidator::getLocalLanguageLabel ( )
protected

Get the local language label(s) for the message Overrides the abstract

Returns
string The local language message label
See also
::_getLocalLanguageLabel()

Definition at line 91 of file AlphanumericValidator.php.

References TYPO3\CMS\Form\Validation\AbstractValidator\$message.

◆ isValid()

TYPO3\CMS\Form\Validation\AlphanumericValidator::isValid ( )

Returns TRUE if submitted value validates according to rule

Returns
boolean
See also
::isValid()

Implements TYPO3\CMS\Form\Validation\ValidatorInterface.

Definition at line 54 of file AlphanumericValidator.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ setAllowWhiteSpace()

TYPO3\CMS\Form\Validation\AlphanumericValidator::setAllowWhiteSpace (   $allowWhiteSpace)

Set TRUE if white space is allowed in submitted value

Parameters
boolean$allowWhiteSpaceTRUE if white space allowed
Returns
object Rule object

Definition at line 75 of file AlphanumericValidator.php.

References TYPO3\CMS\Form\Validation\AlphanumericValidator\$allowWhiteSpace.

Referenced by TYPO3\CMS\Form\Validation\AlphanumericValidator\__construct().

Member Data Documentation

◆ $allowWhiteSpace

TYPO3\CMS\Form\Validation\AlphanumericValidator::$allowWhiteSpace
protected

◆ LOCALISATION_OBJECT_NAME

const TYPO3\CMS\Form\Validation\AlphanumericValidator::LOCALISATION_OBJECT_NAME = 'tx_form_system_validate_alphanumeric'

Definition at line 29 of file AlphanumericValidator.php.