API Documentation

Validate/Ip.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
version
$Id: Ip.php 22697 2010-07-26 21:14:47Z alexander $
Classes
Zend_Validate_Ip

Description

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.

Zend_Validate_Ip

Extends from
Zend_Validate_Abstract
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
Constants
INVALID
NOT_IP_ADDRESS
Properties
$_messageTemplates
$_options
Methods
__construct
getOptions
setOptions
isValid
_validateIPv4
_validateIPv6

Description

Constants

INVALID

 INVALID = 'ipInvalid'

Details

value
ipInvalid

NOT_IP_ADDRESS

 NOT_IP_ADDRESS = 'notIpAddress'

Details

value
notIpAddress

Properties

$_messageTemplates

array $_messageTemplates = 'array'

Details

$_messageTemplates
array
visibility
protected
default
array
final
false
static
false

$_options

array $_options = 'array'

internal options

Details

$_options
array
visibility
protected
default
array
final
false
static
false

Methods

__construct

__construct( array $options = array ) : void

Sets validator options

Arguments
$options
array
OPTIONAL Options to set, see the manual for all available options
Details
visibility
public
final
false
static
false

_validateIPv4

_validateIPv4( string $value ) :

Validates an IPv4 address

Arguments
$value
string
Details
visibility
protected
final
false
static
false

_validateIPv6

_validateIPv6( string $value ) : boolean

Validates an IPv6 address

Arguments
$value
string
Value to check against
Output
boolean
True when $value is a valid ipv6 address False otherwise
Details
visibility
protected
final
false
static
false

getOptions

getOptions( ) : array

Returns all set options

Output
array
Details
visibility
public
final
false
static
false

isValid

isValid( mixed $value ) : boolean

Defined by Zend_Validate_Interface

Returns true if and only if $value is a valid IP address

Arguments
$value
mixed
Output
boolean
Details
visibility
public
final
false
static
false

setOptions

setOptions( array $options ) : Zend_Validate_Ip

Sets the options for this validator

Arguments
$options
array
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.