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
IpValidator.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Form\Validation
;
3
22
class
IpValidator
extends
\TYPO3\CMS\Form\Validation\AbstractValidator
{
23
29
const
LOCALISATION_OBJECT_NAME
=
'tx_form_system_validate_ip'
;
30
37
public
function
isValid
() {
38
if
($this->requestHandler->has($this->fieldName)) {
39
$value = $this->requestHandler->getByMethod($this->fieldName);
40
if
(!preg_match(
'/\\b(([01]?\\d?\\d|2[0-4]\\d|25[0-5])\\.){3}([01]?\\d?\\d|2[0-4]\\d|25[0-5])\\b/'
, $value)) {
41
return
FALSE;
42
}
43
}
44
return
TRUE;
45
}
46
47
}
TYPO3\CMS\Form\Validation\IpValidator\LOCALISATION_OBJECT_NAME
const LOCALISATION_OBJECT_NAME
Definition:
IpValidator.php:29
TYPO3\CMS\Form\Validation\IpValidator\isValid
isValid()
Definition:
IpValidator.php:37
TYPO3\CMS\Form\Validation\AbstractValidator
Definition:
AbstractValidator.php:22
TYPO3\CMS\Form\Validation
Definition:
AbstractValidator.php:2
TYPO3\CMS\Form\Validation\IpValidator
Definition:
IpValidator.php:22
typo3
sysext
form
Classes
Validation
IpValidator.php
Generated on Wed Aug 7 2019 09:52:27 for TYPO3 CMS by
1.8.13