![]() |
TYPO3
7.6
|
Public Member Functions | |
setRawArgument ($rawArgument) | |
setFormUtility (FormUtility $formUtility) | |
substituteMarkers ($message) | |
getLocalLanguageLabel ($type= '') | |
renderMessage ($message=null, $type=null, $messageType= 'message') | |
![]() | |
__construct (array $options=array()) | |
validate ($value) | |
getOptions () | |
Public Attributes | |
const | LOCALISATION_OBJECT_NAME = 'tx_form_system_validate' |
Protected Attributes | |
$formUtility | |
$rawArgument | |
$supportedOptions | |
$acceptsEmptyValues = false | |
![]() | |
$acceptsEmptyValues = true | |
$supportedOptions = array() | |
$options = array() | |
$result | |
Additional Inherited Members | |
![]() | |
isValid ($value) | |
addError ($message, $code, array $arguments=array(), $title= '') | |
isEmpty ($value) | |
translateErrorMessage ($translateKey, $extensionName, $arguments=array()) | |
Definition at line 19 of file form/Classes/Domain/Validator/AbstractValidator.php.
getLocalLanguageLabel | ( | $type = '' | ) |
Get the local language label(s) for the message In some cases this method will be override by rule class
string | $type | The type |
Definition at line 89 of file form/Classes/Domain/Validator/AbstractValidator.php.
Referenced by AbstractValidator\renderMessage().
renderMessage | ( | $message = null , |
|
$type = null , |
|||
$messageType = 'message' |
|||
) |
Set the message, like 'required' for the validation rule and substitutes markers for values, like maximum
mixed | $message | Message as string or TS |
NULL | string | $type | Name of the cObj |
string | $messageType | message or error |
Definition at line 106 of file form/Classes/Domain/Validator/AbstractValidator.php.
References AbstractValidator\getLocalLanguageLabel(), and AbstractValidator\substituteMarkers().
Referenced by DigitValidator\isValid(), FloatValidator\isValid(), UriValidator\isValid(), EmailValidator\isValid(), IntegerValidator\isValid(), IpValidator\isValid(), RequiredValidator\isValid(), RegExpValidator\isValid(), LessThanValidator\isValid(), DateValidator\isValid(), AlphabeticValidator\isValid(), AlphanumericValidator\isValid(), GreaterThanValidator\isValid(), EqualsValidator\isValid(), InArrayValidator\isValid(), FileMinimumSizeValidator\isValid(), BetweenValidator\isValid(), FileMaximumSizeValidator\isValid(), FileAllowedTypesValidator\isValid(), and LengthValidator\isValid().
setFormUtility | ( | FormUtility | $formUtility | ) |
FormUtility | $formUtility |
Definition at line 65 of file form/Classes/Domain/Validator/AbstractValidator.php.
References AbstractValidator\$formUtility.
setRawArgument | ( | $rawArgument | ) |
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
string | $message | Message text with markers |
Definition at line 77 of file form/Classes/Domain/Validator/AbstractValidator.php.
Referenced by AbstractValidator\renderMessage().
|
protected |
Definition at line 52 of file form/Classes/Domain/Validator/AbstractValidator.php.
|
protected |
Definition at line 31 of file form/Classes/Domain/Validator/AbstractValidator.php.
Referenced by AbstractValidator\setFormUtility().
|
protected |
Definition at line 36 of file form/Classes/Domain/Validator/AbstractValidator.php.
Referenced by AbstractValidator\setRawArgument().
|
protected |
Definition at line 41 of file form/Classes/Domain/Validator/AbstractValidator.php.
const LOCALISATION_OBJECT_NAME = 'tx_form_system_validate' |
Definition at line 26 of file form/Classes/Domain/Validator/AbstractValidator.php.