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

Public Member Functions

 isValid ($value)

Data Fields

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

Protected Attributes

 $_messageTemplates

Static Protected Attributes

static $_filter = null

Detailed Description

Definition at line 33 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 65 of file Digits.php.

Here is the call graph for this function:


Field Documentation

$_filter = null [static, protected]

Definition at line 44 of file Digits.php.

$_messageTemplates [protected]
Initial value:
 array(
        self::NOT_DIGITS   => "'%value%' contains characters which are not digits; but only digits are allowed",
        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 51 of file Digits.php.

const INVALID = 'digitsInvalid'

Definition at line 37 of file Digits.php.

const NOT_DIGITS = 'notDigits'

Definition at line 35 of file Digits.php.

const STRING_EMPTY = 'digitsStringEmpty'

Definition at line 36 of file Digits.php.


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