|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Inheritance diagram for ilAssQuestionHintList:
Collaboration diagram for ilAssQuestionHintList:Public Member Functions | |
| current () | |
| iterator interface method More... | |
| rewind () | |
| iterator interface method More... | |
| next () | |
| iterator interface method More... | |
| key () | |
| iterator interface method More... | |
| valid () | |
| iterator interface method More... | |
| __construct () | |
| Constructor. More... | |
| addHint (ilAssQuestionHint $questionHint) | |
| adds a question hint object to the current list instance More... | |
| getHint ($hintId) | |
| returns the question hint object relating to the passed hint id More... | |
| hintExists ($hintId) | |
| checks wether a question hint object relating to the passed id exists or not More... | |
| reIndex () | |
| re-indexes the list's hints sequentially by current order (starting with index "1") 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 ($questionIds) |
| Deletes all question hints relating to questions included in given question ids. More... | |
Private Attributes | |
| $questionHints = array() | |
Definition at line 14 of file class.ilAssQuestionHintList.php.
| ilAssQuestionHintList::__construct | ( | ) |
Constructor.
@access public
Definition at line 84 of file class.ilAssQuestionHintList.php.
| ilAssQuestionHintList::addHint | ( | ilAssQuestionHint | $questionHint | ) |
adds a question hint object to the current list instance
@access public
| ilAssQuestionHint | $questionHint |
Definition at line 94 of file class.ilAssQuestionHintList.php.
| ilAssQuestionHintList::current | ( | ) |
iterator interface method
@access public
Definition at line 30 of file class.ilAssQuestionHintList.php.
References current().
Referenced by current().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Deletes all question hints relating to questions included in given question ids.
@global ilDBInterface $ilDB
| array[integer] | $questionIds |
Definition at line 353 of file class.ilAssQuestionHintList.php.
References $DIC, $ilDB, and $query.
Referenced by assQuestion\delete().
Here is the caller graph for this function:
|
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
| integer | $originalQuestionId | |
| integer | $duplicateQuestionId |
Definition at line 171 of file class.ilAssQuestionHintList.php.
References getListByQuestionId().
Referenced by assQuestion\duplicateQuestionHints().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssQuestionHintList::getHint | ( | $hintId | ) |
returns the question hint object relating to the passed hint id
@access public
| integer | $hintId |
Definition at line 106 of file class.ilAssQuestionHintList.php.
|
static |
instantiates a question hint list for the passed hint ids
@access public
@global ilDBInterface $ilDB
| array | $hintIds |
Definition at line 276 of file class.ilAssQuestionHintList.php.
References $DIC, $ilDB, $query, $res, and ilAssQuestionHint\assignDbRow().
Referenced by ilAssQuestionHintTracking\getRequestedHintsList(), and ilAssQuestionPreviewHintTracking\getRequestedHintsList().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
instantiates a question hint list for the passed question id
@access public
@global ilDBInterface $ilDB
| integer | $questionId |
Definition at line 229 of file class.ilAssQuestionHintList.php.
References $DIC, $ilDB, $query, $res, and ilAssQuestionHint\assignDbRow().
Referenced by assQuestionExport\addSolutionHints(), ilAssQuestionHintsGUI\checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), ilAssQuestionHintsGUI\confirmDeleteCmd(), duplicateListForQuestion(), assQuestion\getRTETextWithMediaObjects(), ilAssQuestionHintsGUI\pasteFromOrderingClipboardAfterCmd(), ilAssQuestionHintsGUI\pasteFromOrderingClipboardBeforeCmd(), ilAssQuestionHintsGUI\performDeleteCmd(), ilAssQuestionHintsGUI\saveListOrderCmd(), and ilAssQuestionHintsGUI\showListCmd().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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
@access public
@global ilDBInterface $ilDB
| integer | $questionId |
Definition at line 323 of file class.ilAssQuestionHintList.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilAssQuestionHintGUI\saveFormCmd().
Here is the caller graph for this function:| ilAssQuestionHintList::getTableData | ( | ) |
returns an array with data of the hints in this list that is adopted to be used as table gui data
@access public
Definition at line 202 of file class.ilAssQuestionHintList.php.
Referenced by ilAssQuestionHintsTableGUI\__construct().
Here is the caller graph for this function:| ilAssQuestionHintList::hintExists | ( | $hintId | ) |
checks wether a question hint object relating to the passed id exists or not
@access public
| integer | $hintId |
Definition at line 128 of file class.ilAssQuestionHintList.php.
| ilAssQuestionHintList::key | ( | ) |
iterator interface method
@access public
Definition at line 63 of file class.ilAssQuestionHintList.php.
References key().
Referenced by key(), and valid().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssQuestionHintList::next | ( | ) |
iterator interface method
@access public
Definition at line 52 of file class.ilAssQuestionHintList.php.
References next().
Referenced by next().
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
@access public
Definition at line 150 of file class.ilAssQuestionHintList.php.
| ilAssQuestionHintList::rewind | ( | ) |
iterator interface method
@access public
Definition at line 41 of file class.ilAssQuestionHintList.php.
| ilAssQuestionHintList::valid | ( | ) |
iterator interface method
@access public
Definition at line 74 of file class.ilAssQuestionHintList.php.
References key().
Here is the call graph for this function:
|
private |
Definition at line 22 of file class.ilAssQuestionHintList.php.