ILIAS
eassessment Revision 61809
|
Page question processor. More...
Public Member Functions | |
__construct () | |
constructor | |
saveQuestionAnswer ($a_type, $a_id, $a_answer) | |
Save question answer. | |
calculatePoints ($a_type, $a_id, $a_choice) | |
Calculate points. |
Static Public Member Functions | |
static | getQuestionStatistics ($a_q_id) |
Get statistics for question. |
Page question processor.
Definition at line 11 of file class.ilPageQuestionProcessor.php.
ilPageQuestionProcessor::__construct | ( | ) |
ilPageQuestionProcessor::calculatePoints | ( | $a_type, | |
$a_id, | |||
$a_choice | |||
) |
Calculate points.
This function calculates the points for a given answer. Better would be to re-use from T&A here in the future. When this code has been written this has not been possible yet.
@return |
Definition at line 142 of file class.ilPageQuestionProcessor.php.
References $ilLog, $points, CLOZE_NUMERIC, CLOZE_SELECT, and CLOZE_TEXT.
Referenced by saveQuestionAnswer().
|
static |
Get statistics for question.
int | question id |
Definition at line 88 of file class.ilPageQuestionProcessor.php.
References $ilDB.
Referenced by ilLMQuestionListTableGUI\fillRow().
ilPageQuestionProcessor::saveQuestionAnswer | ( | $a_type, | |
$a_id, | |||
$a_answer | |||
) |
Save question answer.
@return |
Definition at line 31 of file class.ilPageQuestionProcessor.php.
References $ilDB, $ilLog, $points, calculatePoints(), ilJsonUtil\decode(), and exit.
Referenced by ilPageObjectGUI\processAnswer().