Public Member Functions | Data Fields | Protected Attributes

Zend_Validate_Int Class Reference

Inheritance diagram for Zend_Validate_Int:
Zend_Validate_Abstract Zend_Validate_Interface

Public Member Functions

 __construct ($locale=null)
 getLocale ()
 setLocale ($locale=null)
 isValid ($value)

Data Fields

const INVALID = 'intInvalid'
const NOT_INT = 'notInt'

Protected Attributes

 $_messageTemplates
 $_locale

Detailed Description

Definition at line 38 of file Int.php.


Constructor & Destructor Documentation

__construct ( locale = null )

Constructor for the integer validator

Parameters:
string | Zend_Locale$locale

Definition at line 58 of file Int.php.


Member Function Documentation

getLocale (  )

Returns the set locale

Definition at line 68 of file Int.php.

isValid ( value )

Defined by Zend_Validate_Interface

Returns true if and only if $value is a valid integer

Parameters:
string | integer$value
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 93 of file Int.php.

setLocale ( locale = null )

Sets the locale to use

Parameters:
string | Zend_Locale$locale

Definition at line 78 of file Int.php.


Field Documentation

$_messageTemplates [protected]
Initial value:
 array(
        self::INVALID => "Invalid type given, value should be a string or a integer",
        self::NOT_INT => "'%value%' does not appear to be an integer"
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 46 of file Int.php.


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