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

Public Member Functions

 __construct ($arguments)
 
 isValid ()
 
 setField ($field)
 
- 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_equals'
 

Protected Member Functions

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

Protected Attributes

 $field
 
- 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! Equals 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 EqualsValidator.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor

Parameters
array$argumentsTyposcript configuration

Definition at line 43 of file EqualsValidator.php.

References TYPO3\CMS\Form\Validation\EqualsValidator\setField().

Member Function Documentation

◆ isValid()

TYPO3\CMS\Form\Validation\EqualsValidator::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 EqualsValidator.php.

◆ setField()

TYPO3\CMS\Form\Validation\EqualsValidator::setField (   $field)

Set the field to compare value with

Parameters
string$fieldField to compare
Returns
Rule object

Definition at line 75 of file EqualsValidator.php.

References TYPO3\CMS\Form\Validation\EqualsValidator\$field.

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

◆ substituteValues()

TYPO3\CMS\Form\Validation\EqualsValidator::substituteValues (   $message)
protected

Substitute makers in the message text Overrides the abstract

Parameters
string$messageMessage text with markers
Returns
string Message text with substituted markers

Definition at line 87 of file EqualsValidator.php.

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

Member Data Documentation

◆ $field

TYPO3\CMS\Form\Validation\EqualsValidator::$field
protected

◆ LOCALISATION_OBJECT_NAME

const TYPO3\CMS\Form\Validation\EqualsValidator::LOCALISATION_OBJECT_NAME = 'tx_form_system_validate_equals'

Definition at line 29 of file EqualsValidator.php.