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 [email protected] 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 array $_options= 'array( 'allowipv6' => true'
internal options
array( 'allowipv6' => true
Details __construct( array $options = array() ) : void
Sets validator options
Name | Type | Description |
---|---|---|
$options | array | OPTIONAL Options to set, see the manual for all available options |
_validateIPv4( string $value ) : void
Validates an IPv4 address
Name | Type | Description |
---|---|---|
$value | string |
_validateIPv6( string $value ) : boolean
Validates 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 |
getOptions( ) : array
Returns all set options
Type | Description |
---|---|
array |
isValid( mixed $value ) : boolean
Defined by Zend_Validate_Interface
Returns true if and only if $value is a valid IP address
Name | Type | Description |
---|---|---|
$value | mixed |
Type | Description |
---|---|
boolean |
setOptions( array $options ) : \Zend_Validate_Ip
Sets the options for this validator
Name | Type | Description |
---|---|---|
$options | array |
Type | Description |
---|---|
\Zend_Validate_Ip |