2 namespace TYPO3\CMS\Form\Domain\Validator;
39 'element' => array(
'',
'The name of the element',
'string',
true),
40 'errorMessage' => array(
'',
'The error message',
'array',
true),
41 'minimum' => array(
'',
'The minimum value',
'integer',
true),
42 'maximum' => array(
'',
'The maximum value',
'integer',
false),
61 $length = $this->charsetConverter->strlen(
'utf-8', $value);
62 if ($length < (
int)$this->options[
'minimum']) {
65 $this->options[
'errorMessage'][0],
66 $this->options[
'errorMessage'][1],
74 !isset($this->options[
'maximum'])
75 || $this->options[
'maximum'] ===
''
77 $this->options[
'maximum'] = null;
80 $this->options[
'maximum'] !== null
81 && $length > (
int)$this->options[
'maximum']
85 $this->options[
'errorMessage'][0],
86 $this->options[
'errorMessage'][1],
104 $label = static::LOCALISATION_OBJECT_NAME .
'.' . $type;
105 $messages[] = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($label,
'form');
106 if ($this->options[
'maximum'] !== null) {
107 $messages[] = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($label . 2,
'form');
109 $message = implode(
', ', $messages);
123 array(
'%minimum',
'%maximum'),
124 array($this->options[
'minimum'], $this->options[
'maximum']),