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

Public Member Functions

 parse_response ($response)

Detailed Description

Definition at line 29 of file testanswerprocessor.php.


Member Function Documentation

parse_response ( response)

This method can be used for more locale-strict parsing of repsonses. At the moment we don't use it, and instead use the more lax parsing in apply_units. This is just a note that this funciton was used in the past, so if you are intersted, look through version control history.

Take a string which is a number with or without a decimal point and exponent, and possibly followed by one of the units, and split it into bits.

Parameters:
string$responsea value, optionally with a unit.
Returns:
array four strings (some of which may be blank) the digits before and after the decimal point, the exponent, and the unit. All four will be null if the response cannot be parsed.

Reimplemented from qtype_numerical_answer_processor.

Definition at line 30 of file testanswerprocessor.php.


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