|
Moodle
2.2.1
http://www.collinsharper.com
|


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 |
Definition at line 33 of file Digits.php.
| isValid | ( | $ | value | ) |
Defined by Zend_Validate_Interface
Returns true if and only if $value only contains digit characters
| string | $value |
Implements Zend_Validate_Interface.
Definition at line 65 of file Digits.php.

$_filter = null [static, protected] |
Definition at line 44 of file Digits.php.
$_messageTemplates [protected] |
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.