Detailed Description
Definition at line 33 of file Ip.php.
Constructor & Destructor Documentation
Sets validator options
- Parameters:
-
| array | $options | OPTIONAL Options to set, see the manual for all available options |
- Returns:
- void
Definition at line 62 of file Ip.php.
Member Function Documentation
Validates an IPv4 address
- Parameters:
-
Definition at line 145 of file Ip.php.
Validates an IPv6 address
- Parameters:
-
| string | $value | Value to check against |
- Returns:
- boolean True when $value is a valid ipv6 address False otherwise
Definition at line 161 of file Ip.php.
Returns all set options
- Returns:
- array
Definition at line 85 of file Ip.php.
Field Documentation
$_messageTemplates [protected] |
Initial value: array(
self::INVALID => "Invalid type given, value should be a string",
self::NOT_IP_ADDRESS => "'%value%' does not appear to be a valid IP address",
)
Reimplemented from Zend_Validate_Abstract.
Definition at line 41 of file Ip.php.
Initial value: array(
'allowipv6' => true,
'allowipv4' => true
)
Definition at line 51 of file Ip.php.
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/lib/zend/Zend/Validate/Ip.php