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
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
EmailValidator.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Form\Validation
;
3
22
class
EmailValidator
extends
\TYPO3\CMS\Form\Validation\AbstractValidator
{
23
29
const
LOCALISATION_OBJECT_NAME
=
'tx_form_system_validate_email'
;
30
37
public
function
isValid
() {
38
if
($this->requestHandler->has($this->fieldName)) {
39
$value = $this->requestHandler->getByMethod($this->fieldName);
40
if
(!\
TYPO3
\CMS\Core\Utility\GeneralUtility::validEmail($value)) {
41
return
FALSE;
42
}
43
}
44
return
TRUE;
45
}
46
47
}
TYPO3
TYPO3\CMS\Form\Validation\EmailValidator\isValid
isValid()
Definition:
EmailValidator.php:37
TYPO3\CMS\Form\Validation\EmailValidator
Definition:
EmailValidator.php:22
TYPO3\CMS\Form\Validation\AbstractValidator
Definition:
AbstractValidator.php:22
TYPO3\CMS\Form\Validation\EmailValidator\LOCALISATION_OBJECT_NAME
const LOCALISATION_OBJECT_NAME
Definition:
EmailValidator.php:29
TYPO3\CMS\Form\Validation
Definition:
AbstractValidator.php:2
typo3
sysext
form
Classes
Validation
EmailValidator.php
Generated on Wed Aug 7 2019 09:52:27 for TYPO3 CMS by
1.8.13