ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Public Member Functions | |
current () | |
rewind () | |
next () | |
key () | |
valid () | |
__construct () | |
addHint (ilAssQuestionHint $questionHint) | |
getHint ($hintId) | |
hintExists ($hintId) | |
reIndex () | |
re-indexes the list's hints sequentially by current order (starting with index "1") ATTENTION: it also persists this index to db by performing an update of hint object via id. More... | |
getTableData () | |
returns an array with data of the hints in this list that is adopted to be used as table gui data More... | |
Static Public Member Functions | |
static | duplicateListForQuestion ($originalQuestionId, $duplicateQuestionId) |
duplicates a hint list from given original question id to given duplicate question id and returns an array of duplicate hint ids mapped to the corresponding original hint ids More... | |
static | getListByQuestionId ($questionId) |
instantiates a question hint list for the passed question id More... | |
static | getListByHintIds ($hintIds) |
instantiates a question hint list for the passed hint ids More... | |
static | getNextIndexByQuestionId ($questionId) |
determines the next index to be used for a new hint that is to be added to the list of existing hints regarding to the question with passed question id More... | |
static | deleteHintsByQuestionIds (array $questionIds) |
Deletes all question hints relating to questions included in given question ids. More... | |
Private Attributes | |
array | $questionHints = [] |
Definition at line 28 of file class.ilAssQuestionHintList.php.
ilAssQuestionHintList::__construct | ( | ) |
Definition at line 58 of file class.ilAssQuestionHintList.php.
ilAssQuestionHintList::addHint | ( | ilAssQuestionHint | $questionHint | ) |
Definition at line 62 of file class.ilAssQuestionHintList.php.
Referenced by ilAssQuestionHintsGUI\pasteFromOrderingClipboardAfterCmd().
ilAssQuestionHintList::current | ( | ) |
Definition at line 33 of file class.ilAssQuestionHintList.php.
|
static |
Deletes all question hints relating to questions included in given question ids.
list<int> | $questionIds |
Definition at line 286 of file class.ilAssQuestionHintList.php.
Referenced by assQuestion\delete().
|
static |
duplicates a hint list from given original question id to given duplicate question id and returns an array of duplicate hint ids mapped to the corresponding original hint ids
int | $originalQuestionId | |
int | $duplicateQuestionId |
Definition at line 124 of file class.ilAssQuestionHintList.php.
Referenced by assQuestion\duplicateQuestionHints().
ilAssQuestionHintList::getHint | ( | $hintId | ) |
int | $hintId |
Definition at line 70 of file class.ilAssQuestionHintList.php.
|
static |
instantiates a question hint list for the passed hint ids
list<int> | $hintIds |
Definition at line 217 of file class.ilAssQuestionHintList.php.
References $DIC, $ilDB, $res, and ilAssQuestionHint\assignDbRow().
Referenced by ilAssQuestionPreviewHintTracking\getRequestedHintsList(), and ilAssQuestionHintTracking\getRequestedHintsList().
|
static |
instantiates a question hint list for the passed question id
int | $questionId |
Definition at line 175 of file class.ilAssQuestionHintList.php.
References $DIC, $ilDB, $res, and ilAssQuestionHint\assignDbRow().
Referenced by assQuestionExport\addSolutionHints(), ilAssQuestionHintsGUI\checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), ilAssQuestionHintsGUI\confirmDeleteCmd(), assQuestion\getRTETextWithMediaObjects(), ilAssQuestionHintsGUI\pasteFromOrderingClipboardAfterCmd(), ilAssQuestionHintsGUI\pasteFromOrderingClipboardBeforeCmd(), ilAssQuestionHintsGUI\performDeleteCmd(), ilAssQuestionHintsGUI\saveListOrderCmd(), and ilAssQuestionHintsGUI\showListCmd().
|
static |
determines the next index to be used for a new hint that is to be added to the list of existing hints regarding to the question with passed question id
int | $questionId |
Definition at line 259 of file class.ilAssQuestionHintList.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilAssQuestionHintGUI\saveFormCmd().
ilAssQuestionHintList::getTableData | ( | ) |
returns an array with data of the hints in this list that is adopted to be used as table gui data
Definition at line 153 of file class.ilAssQuestionHintList.php.
Referenced by ilAssQuestionHintsTableGUI\__construct().
ilAssQuestionHintList::hintExists | ( | $hintId | ) |
int | $hintId |
Definition at line 86 of file class.ilAssQuestionHintList.php.
ilAssQuestionHintList::key | ( | ) |
Definition at line 48 of file class.ilAssQuestionHintList.php.
Referenced by valid().
ilAssQuestionHintList::next | ( | ) |
Definition at line 43 of file class.ilAssQuestionHintList.php.
ilAssQuestionHintList::reIndex | ( | ) |
re-indexes the list's hints sequentially by current order (starting with index "1") ATTENTION: it also persists this index to db by performing an update of hint object via id.
do not re-index any hint list objects unless this lists contain ALL hint objects for a SINGLE question and no more hints apart of that.
Definition at line 104 of file class.ilAssQuestionHintList.php.
ilAssQuestionHintList::rewind | ( | ) |
Definition at line 38 of file class.ilAssQuestionHintList.php.
ilAssQuestionHintList::valid | ( | ) |
Definition at line 53 of file class.ilAssQuestionHintList.php.
|
private |
Definition at line 31 of file class.ilAssQuestionHintList.php.