Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

array
$_messageTemplates= 'array(
self::INVALID => "Invalid type given. String expected"'
array(
self::INVALID => "Invalid type given. String expected"Details
__construct(
array $options
=
array()
)
:
voidSets validator options
| Name | Type | Description |
|---|---|---|
| $options | array | OPTIONAL Options to set, see the manual for all available options |

_validateIPv4(
string $value
)
:
voidValidates an IPv4 address
| Name | Type | Description |
|---|---|---|
| $value | string |

_validateIPv6(
string $value
)
:
booleanValidates an IPv6 address
| Name | Type | Description |
|---|---|---|
| $value | string | Value to check against |
| Type | Description |
|---|---|
| boolean | True when $value is a valid ipv6 address False otherwise |

isValid(
mixed $value
)
:
booleanDefined by Zend_Validate_Interface
Returns true if and only if $value is a valid IP address
| Name | Type | Description |
|---|---|---|
| $value | mixed |
| Type | Description |
|---|---|
| boolean |