TYPO3  7.6
Public Member Functions | Public Attributes | Protected Attributes | List of all members
AbstractValidator Class Reference
Inheritance diagram for AbstractValidator:
AbstractValidator ValidatorInterface AlphabeticValidator AlphanumericValidator BetweenValidator DateValidator DigitValidator EmailValidator EqualsValidator FileAllowedTypesValidator FileMaximumSizeValidator FileMinimumSizeValidator FloatValidator GreaterThanValidator InArrayValidator IntegerValidator IpValidator LengthValidator LessThanValidator RegExpValidator RequiredValidator UriValidator

Public Member Functions

 setRawArgument ($rawArgument)
 
 setFormUtility (FormUtility $formUtility)
 
 substituteMarkers ($message)
 
 getLocalLanguageLabel ($type= '')
 
 renderMessage ($message=null, $type=null, $messageType= 'message')
 
- Public Member Functions inherited from AbstractValidator
 __construct (array $options=array())
 
 validate ($value)
 
 getOptions ()
 

Public Attributes

const LOCALISATION_OBJECT_NAME = 'tx_form_system_validate'
 

Protected Attributes

 $formUtility
 
 $rawArgument
 
 $supportedOptions
 
 $acceptsEmptyValues = false
 
- Protected Attributes inherited from AbstractValidator
 $acceptsEmptyValues = true
 
 $supportedOptions = array()
 
 $options = array()
 
 $result
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractValidator
 isValid ($value)
 
 addError ($message, $code, array $arguments=array(), $title= '')
 
 isEmpty ($value)
 
 translateErrorMessage ($translateKey, $extensionName, $arguments=array())
 

Detailed Description

Definition at line 19 of file form/Classes/Domain/Validator/AbstractValidator.php.

Member Function Documentation

getLocalLanguageLabel (   $type = '')

Get the local language label(s) for the message In some cases this method will be override by rule class

Parameters
string$typeThe type
Returns
string The local language message label

Definition at line 89 of file form/Classes/Domain/Validator/AbstractValidator.php.

Referenced by AbstractValidator\renderMessage().

renderMessage (   $message = null,
  $type = null,
  $messageType = 'message' 
)
setFormUtility ( FormUtility  $formUtility)
Parameters
FormUtility$formUtility

Definition at line 65 of file form/Classes/Domain/Validator/AbstractValidator.php.

References AbstractValidator\$formUtility.

setRawArgument (   $rawArgument)
Parameters
mixed$rawArgument

Definition at line 57 of file form/Classes/Domain/Validator/AbstractValidator.php.

References AbstractValidator\$rawArgument.

substituteMarkers (   $message)

Substitute makers in the message text In some cases this method will be override by rule class

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

Definition at line 77 of file form/Classes/Domain/Validator/AbstractValidator.php.

Referenced by AbstractValidator\renderMessage().

Member Data Documentation

$acceptsEmptyValues = false
protected
$formUtility
protected
$rawArgument
protected
$supportedOptions
protected
Initial value:
= array(
'element' => array('', 'The name of the element', 'string', true),
'errorMessage' => array('', 'The error message', 'array', true),
)

Definition at line 41 of file form/Classes/Domain/Validator/AbstractValidator.php.

const LOCALISATION_OBJECT_NAME = 'tx_form_system_validate'