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


Public Member Functions | |
| parse_response ($response) | |
Definition at line 29 of file testanswerprocessor.php.
| 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.
| string | $response | a value, optionally with a unit. |
Reimplemented from qtype_numerical_answer_processor.
Definition at line 30 of file testanswerprocessor.php.