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

Public Member Functions

 __construct ()
 is_valid_number ($x)

Detailed Description

Test sub-class, so we can force the locale.

Definition at line 38 of file testform.php.


Constructor & Destructor Documentation

Definition at line 39 of file testform.php.


Member Function Documentation

is_valid_number ( x)

Validate that a string is a nubmer formatted correctly for the current locale.

Parameters:
string$xa string
Returns:
bool whether $x is a number that the numerical question type can interpret.

Reimplemented from qtype_numerical_edit_form.

Definition at line 45 of file testform.php.


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