TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
▼
TYPO3 CMS
TYPO3 CMS
Test List
Todo List
Deprecated List
►
Namespace Members
►
Classes
▼
Files
►
File List
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
GreaterThanValidator.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Form\Validation
;
3
22
class
GreaterThanValidator
extends
\TYPO3\CMS\Form\Validation\AbstractValidator
{
23
29
const
LOCALISATION_OBJECT_NAME
=
'tx_form_system_validate_greaterthan'
;
30
36
protected
$minimum
;
37
43
public
function
__construct
($arguments) {
44
$this->
setMinimum
($arguments[
'minimum'
]);
45
parent::__construct($arguments);
46
}
47
54
public
function
isValid
() {
55
if
($this->requestHandler->has($this->fieldName)) {
56
$value = (int)$this->requestHandler->getByMethod($this->fieldName);
57
if
($value <= $this->minimum) {
58
return
FALSE;
59
}
60
}
61
return
TRUE;
62
}
63
70
public
function
setMinimum
(
$minimum
) {
71
$this->minimum = (int)
$minimum
;
72
return
$this;
73
}
74
82
protected
function
substituteValues
(
$message
) {
83
$message
= str_replace(
'%minimum'
, $this->minimum,
$message
);
84
return
$message
;
85
}
86
87
}
TYPO3\CMS\Form\Validation\GreaterThanValidator\$minimum
$minimum
Definition:
GreaterThanValidator.php:36
TYPO3\CMS\Form\Validation\GreaterThanValidator\substituteValues
substituteValues($message)
Definition:
GreaterThanValidator.php:82
TYPO3\CMS\Form\Validation\AbstractValidator
Definition:
AbstractValidator.php:22
TYPO3\CMS\Form\Validation\GreaterThanValidator\isValid
isValid()
Definition:
GreaterThanValidator.php:54
TYPO3\CMS\Form\Validation\GreaterThanValidator\LOCALISATION_OBJECT_NAME
const LOCALISATION_OBJECT_NAME
Definition:
GreaterThanValidator.php:29
TYPO3\CMS\Form\Validation\GreaterThanValidator
Definition:
GreaterThanValidator.php:22
TYPO3\CMS\Form\Validation
Definition:
AbstractValidator.php:2
TYPO3\CMS\Form\Validation\AbstractValidator\$message
$message
Definition:
AbstractValidator.php:39
TYPO3\CMS\Form\Validation\GreaterThanValidator\setMinimum
setMinimum($minimum)
Definition:
GreaterThanValidator.php:70
TYPO3\CMS\Form\Validation\GreaterThanValidator\__construct
__construct($arguments)
Definition:
GreaterThanValidator.php:43
typo3
sysext
form
Classes
Validation
GreaterThanValidator.php
Generated on Wed Aug 7 2019 09:52:27 for TYPO3 CMS by
1.8.13