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

Public Member Functions

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

Data Fields

const INVALID = 'floatInvalid'
const NOT_FLOAT = 'notFloat'

Protected Attributes

 $_messageTemplates
 $_locale

Detailed Description

Definition at line 38 of file Float.php.


Constructor & Destructor Documentation

__construct ( locale = null)

Constructor for the float validator

Parameters:
string | Zend_Config | Zend_Locale$locale

Definition at line 58 of file Float.php.

Here is the call graph for this function:


Member Function Documentation

getLocale ( )

Returns the set locale

Definition at line 85 of file Float.php.

isValid ( value)

Defined by Zend_Validate_Interface

Returns true if and only if $value is a floating-point value

Parameters:
string$value
Returns:
boolean

Implements Zend_Validate_Interface.

Definition at line 110 of file Float.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 95 of file Float.php.

Here is the caller graph for this function:


Field Documentation

$_locale [protected]

Definition at line 51 of file Float.php.

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

Reimplemented from Zend_Validate_Abstract.

Definition at line 46 of file Float.php.

const INVALID = 'floatInvalid'

Definition at line 40 of file Float.php.

const NOT_FLOAT = 'notFloat'

Definition at line 41 of file Float.php.


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