Class Ip
Check if the input is valid IP address
- Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\Ip
Namespace: Wei\Validator
Author: Twin Huang twinhuang@qq.com
Link: http://php.net/manual/en/filter.filters.flags.php
Located at Validator/Ip.php
Author: Twin Huang twinhuang@qq.com
Link: http://php.net/manual/en/filter.filters.flags.php
Located at Validator/Ip.php
public
boolean
|
|
protected
boolean
|
__call(),
__construct(),
__get(),
getOption(),
setOption()
|
t()
|
protected
string
|
$notAllowMessage
|
#
'%name% must be valid IP'
|
protected
string
|
$negativeMessage
The common message for negative validator |
#
'%name% must not be IP'
|
protected
boolean
|
$ipv4
Allows the IP address to be ONLY in IPv4 format |
#
false
|
protected
boolean
|
$ipv6
Allows the IP address to be ONLY in IPv6 format |
#
false
|
protected
boolean
|
$noPrivRange
Not allows the IP address to be in private ranges |
#
false
|
protected
boolean
|
$noResRange
Not allows the IP address to be in reserved ranges |
#
false
|
$errors,
$name,
$negative,
$notStringMessage,
$validator
|
$providers,
$wei
|
$t
|