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
DigitValidator.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Form\Validation
;
3
22
class
DigitValidator
extends
\TYPO3\CMS\Form\Validation\AbstractValidator
{
23
27
protected
$filter
;
28
34
const
LOCALISATION_OBJECT_NAME
=
'tx_form_system_validate_digit'
;
35
42
public
function
isValid
() {
43
if
($this->requestHandler->has($this->fieldName)) {
44
$value = $this->requestHandler->getByMethod($this->fieldName);
45
if
($this->filter === NULL) {
46
$className =
'TYPO3\\CMS\\Form\\Filter\\DigitFilter'
;
47
$this->filter =
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance
($className);
48
}
49
if
($this->filter->filter($value) !== $value) {
50
return
FALSE;
51
}
52
}
53
return
TRUE;
54
}
55
56
}
TYPO3\CMS\Form\Validation\DigitValidator\LOCALISATION_OBJECT_NAME
const LOCALISATION_OBJECT_NAME
Definition:
DigitValidator.php:34
TYPO3\CMS\Form\Validation\DigitValidator\$filter
$filter
Definition:
DigitValidator.php:27
TYPO3\CMS\Form\Validation\AbstractValidator
Definition:
AbstractValidator.php:22
TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance
static makeInstance($className)
Definition:
GeneralUtility.php:4424
TYPO3\CMS\Form\Validation\DigitValidator\isValid
isValid()
Definition:
DigitValidator.php:42
TYPO3\CMS\Form\Validation
Definition:
AbstractValidator.php:2
TYPO3\CMS\Form\Validation\DigitValidator
Definition:
DigitValidator.php:22
typo3
sysext
form
Classes
Validation
DigitValidator.php
Generated on Wed Aug 7 2019 09:52:27 for TYPO3 CMS by
1.8.13