Public Member Functions | Data Fields | Protected Attributes

Zend_Validate_Hex Class Reference

Inheritance diagram for Zend_Validate_Hex:
Zend_Validate_Abstract Zend_Validate_Interface

Public Member Functions

 isValid ($value)

Data Fields

const INVALID = 'hexInvalid'
const NOT_HEX = 'notHex'

Protected Attributes

 $_messageTemplates

Detailed Description

Definition at line 36 of file Hex.php.


Member Function Documentation

isValid ( value )

Defined by Zend_Validate_Interface

Returns true if and only if $value contains only hexadecimal digit characters

Parameters:
string$value
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 59 of file Hex.php.


Field Documentation

$_messageTemplates [protected]
Initial value:
 array(
        self::INVALID => "Invalid type given, value should be a string",
        self::NOT_HEX => "'%value%' has not only hexadecimal digit characters"
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 46 of file Hex.php.


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