Public Member Functions | Data Fields | Protected Attributes

Zend_Validate_Ip Class Reference

Inheritance diagram for Zend_Validate_Ip:
Zend_Validate_Abstract Zend_Validate_Interface

Public Member Functions

 isValid ($value)

Data Fields

const INVALID = 'ipInvalid'
const NOT_IP_ADDRESS = 'notIpAddress'

Protected Attributes

 $_messageTemplates

Detailed Description

Definition at line 33 of file Ip.php.


Member Function Documentation

isValid ( value )

Defined by Zend_Validate_Interface

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

Parameters:
mixed$value
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 54 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.


The documentation for this class was generated from the following file: