ILIAS
Release_5_0_x_branch Revision 61816
|
Page question processor. More...
Public Member Functions | |
__construct () | |
constructor |
Static Public Member Functions | |
static | saveQuestionAnswer ($a_type, $a_id, $a_answer) |
Save question answer. | |
static | getQuestionStatistics ($a_q_id) |
Get statistics for question. | |
static | calculatePoints ($a_type, $a_id, $a_choice) |
Calculate points. | |
static | getAnswerStatus ($a_q_id, $a_user_id=0) |
Get statistics for question. | |
static | resetTries ($a_q_id, $a_user_id) |
Reset tries. | |
static | unlock ($a_q_id, $a_user_id) |
Reset tries. |
Page question processor.
Definition at line 11 of file class.ilPageQuestionProcessor.php.
ilPageQuestionProcessor::__construct | ( | ) |
|
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().
|
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().
|
static |
Get statistics for question.
int | question id |
Definition at line 110 of file class.ilPageQuestionProcessor.php.
References $ilDB.
Referenced by ilLMQuestionListTableGUI\fillRow().
|
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().
|
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().
|
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().