|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Page question processor. More...
Collaboration diagram for ilPageQuestionProcessor:Public Member Functions | |
| __construct () | |
| constructor More... | |
Static Public Member Functions | |
| static | saveQuestionAnswer ($a_type, $a_id, $a_answer) |
| Save question answer. More... | |
| static | getQuestionStatistics ($a_q_id) |
| Get statistics for question. More... | |
| static | calculatePoints ($a_type, $a_id, $a_choice) |
| Calculate points. More... | |
| static | getAnswerStatus ($a_q_id, $a_user_id=0) |
| Get statistics for question. More... | |
| static | resetTries ($a_q_id, $a_user_id) |
| Reset tries. More... | |
| static | unlock ($a_q_id, $a_user_id) |
| Reset tries. More... | |
Page question processor.
Definition at line 11 of file class.ilPageQuestionProcessor.php.
| ilPageQuestionProcessor::__construct | ( | ) |
constructor
return
Definition at line 19 of file class.ilPageQuestionProcessor.php.
|
static |
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 164 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 322 of file class.ilPageQuestionProcessor.php.
References $ilDB.
Referenced by ilLMTracker\getBlockedUsersInformation(), ilPCQuestion\getOnloadCode(), ilLMTracker\loadLMTrackingData(), and ilLMPageGUI\processAnswer().
Here is the caller graph for this function:
|
static |
Get statistics for question.
| int | question id |
Definition at line 110 of file class.ilPageQuestionProcessor.php.
References $ilDB.
Referenced by ilLMQuestionListTableGUI\fillRow().
Here is the caller graph for this function:
|
static |
Reset tries.
| int | $a_q_id | question id |
| int | $a_user_id | user id |
Definition at line 360 of file class.ilPageQuestionProcessor.php.
References $ilDB.
Referenced by ilObjContentObjectGUI\resetNumberOfTries().
Here is the caller graph for this function:
|
static |
Save question answer.
return
Definition at line 31 of file class.ilPageQuestionProcessor.php.
References $ilDB, $ilLog, $ilUser, calculatePoints(), and ilJsonUtil\decode().
Referenced by ilPageObjectGUI\processAnswer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Reset tries.
| int | $a_q_id | question id |
| int | $a_user_id | user id |
Definition at line 380 of file class.ilPageQuestionProcessor.php.
References $ilDB.
Referenced by ilObjContentObjectGUI\unlockQuestion().
Here is the caller graph for this function: