Moodle  2.2.1
http://www.collinsharper.com
Zend_Validate_Int Class Reference
Inheritance diagram for Zend_Validate_Int:
Collaboration diagram for Zend_Validate_Int:

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_Config | Zend_Locale$locale

Definition at line 58 of file Int.php.

Here is the call graph for this function:


Member Function Documentation

getLocale ( )

Returns the set locale

Definition at line 87 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 112 of file Int.php.

Here is the call graph for this function:

setLocale ( locale = null)

Sets the locale to use

Parameters:
string | Zend_Locale$locale

Definition at line 97 of file Int.php.

Here is the caller graph for this function:


Field Documentation

$_locale [protected]

Definition at line 51 of file Int.php.

$_messageTemplates [protected]
Initial value:
 array(
        self::INVALID => "Invalid type given, value should be string or 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.

const INVALID = 'intInvalid'

Definition at line 40 of file Int.php.

const NOT_INT = 'notInt'

Definition at line 41 of file Int.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations