TYPO3  7.6
Public Member Functions | Public Attributes | Protected Attributes | List of all members
LengthValidator Class Reference
Inheritance diagram for LengthValidator:
AbstractValidator AbstractValidator ValidatorInterface

Public Member Functions

 injectCharsetConverter (\TYPO3\CMS\Core\Charset\CharsetConverter $charsetConverter)
 
 isValid ($value)
 
 getLocalLanguageLabel ($type= '')
 
 substituteMarkers ($message)
 
- Public Member Functions inherited from AbstractValidator
 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_length'
 
- Public Attributes inherited from AbstractValidator
const LOCALISATION_OBJECT_NAME = 'tx_form_system_validate'
 

Protected Attributes

 $charsetConverter = null
 
 $supportedOptions
 
- Protected Attributes inherited from AbstractValidator
 $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 17 of file LengthValidator.php.

Member Function Documentation

getLocalLanguageLabel (   $type = '')

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

Parameters
string$typeThe type
Returns
string The local language message label
See Also
::_getLocalLanguageLabel()

Definition at line 102 of file LengthValidator.php.

injectCharsetConverter ( \TYPO3\CMS\Core\Charset\CharsetConverter  $charsetConverter)
Parameters
\TYPO3\CMS\Core\Charset\CharsetConverter$charsetConverter
Returns
void

Definition at line 30 of file LengthValidator.php.

References LengthValidator\$charsetConverter.

isValid (   $value)

Check if $value is valid. If it is not valid, needs to add an error to result.

Parameters
mixed$value
Returns
void

Definition at line 59 of file LengthValidator.php.

References AbstractValidator\addError(), and AbstractValidator\renderMessage().

substituteMarkers (   $message)

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 120 of file LengthValidator.php.

Member Data Documentation

$charsetConverter = null
protected

Definition at line 24 of file LengthValidator.php.

Referenced by LengthValidator\injectCharsetConverter().

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

Definition at line 38 of file LengthValidator.php.

const LOCALISATION_OBJECT_NAME = 'tx_form_system_validate_length'

Definition at line 50 of file LengthValidator.php.