|
ILIAS
Release_4_4_x_branch Revision 61816
|
Page question processor. More...
Collaboration diagram for ilPageQuestionProcessor: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, CLOZE_NUMERIC, CLOZE_SELECT, and CLOZE_TEXT.
Referenced by saveQuestionAnswer().
Here is the caller graph for this function:
|
static |
Get statistics for question.
| int | question id |
Definition at line 88 of file class.ilPageQuestionProcessor.php.
Referenced by ilLMQuestionListTableGUI\fillRow().
Here is the caller graph for this function:| ilPageQuestionProcessor::saveQuestionAnswer | ( | $a_type, | |
| $a_id, | |||
| $a_answer | |||
| ) |
Save question answer.
| @return |
Definition at line 31 of file class.ilPageQuestionProcessor.php.
References $ilLog, $ilUser, calculatePoints(), ilJsonUtil\decode(), and exit.
Referenced by ilPageObjectGUI\processAnswer().
Here is the call graph for this function:
Here is the caller graph for this function: