Public Member Functions | Data Fields | Protected Attributes | Static Protected Attributes

Zend_Validate_Digits Class Reference

Inheritance diagram for Zend_Validate_Digits:
Zend_Validate_Abstract Zend_Validate_Interface

Public Member Functions

 isValid ($value)

Data Fields

const NOT_DIGITS = 'notDigits'
const STRING_EMPTY = 'stringEmpty'
const INVALID = 'digitsInvalid'

Protected Attributes

 $_messageTemplates

Static Protected Attributes

static $_filter = null

Detailed Description

Definition at line 36 of file Digits.php.


Member Function Documentation

isValid ( value )

Defined by Zend_Validate_Interface

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

Parameters:
string$value
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 68 of file Digits.php.


Field Documentation

$_messageTemplates [protected]
Initial value:
 array(
        self::NOT_DIGITS   => "'%value%' contains not only digit characters",
        self::STRING_EMPTY => "'%value%' is an empty string",
        self::INVALID      => "Invalid type given, value should be string, integer or float",
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 54 of file Digits.php.


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