|
ILIAS
Release_4_3_x_branch Revision 61807
|
Inheritance diagram for ilAssQuestionHintList:
Collaboration diagram for ilAssQuestionHintList:Public Member Functions | |
| current () | |
| iterator interface method | |
| rewind () | |
| iterator interface method | |
| next () | |
| iterator interface method | |
| key () | |
| iterator interface method | |
| valid () | |
| iterator interface method | |
| __construct () | |
| Constructor. | |
| addHint (ilAssQuestionHint $questionHint) | |
| adds a question hint object to the current list instance | |
| getHint ($hintId) | |
| returns the question hint object relating to the passed hint id | |
| hintExists ($hintId) | |
| checks wether a question hint object relating to the passed id exists or not | |
| reIndex () | |
| re-indexes the list's hints sequentially by current order (starting with index "1") | |
| getTableData () | |
| returns an array with data of the hints in this list that is adopted to be used as table gui data | |
Static Public Member Functions | |
| static | duplicateListForQuestion ($originalQuestionId, $duplicateQuestionId) |
| static | getListByQuestionId ($questionId) |
| instantiates a question hint list for the passed question id | |
| static | getListByHintIds ($hintIds) |
| instantiates a question hint list for the passed hint ids | |
| 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 | |
| static | deleteHintsByQuestionIds ($questionIds) |
| Deletes all question hints relating to questions included in given question ids. | |
Private Attributes | |
| $questionHints = array() | |
Definition at line 15 of file class.ilAssQuestionHintList.php.
| ilAssQuestionHintList::__construct | ( | ) |
| ilAssQuestionHintList::addHint | ( | ilAssQuestionHint | $questionHint | ) |
adds a question hint object to the current list instance
public
| ilAssQuestionHint | $questionHint |
Definition at line 78 of file class.ilAssQuestionHintList.php.
Referenced by ilAssQuestionHintsGUI\pasteFromOrderingClipboardAfterCmd().
Here is the caller graph for this function:| ilAssQuestionHintList::current | ( | ) |
iterator interface method
public
Definition at line 31 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.
ilDB $ilDB
| array[integer] | $questionIds |
Definition at line 320 of file class.ilAssQuestionHintList.php.
References $query.
Referenced by assQuestion\delete().
Here is the caller graph for this function:
|
static |
Definition at line 151 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
public
| integer | $hintId |
Definition at line 90 of file class.ilAssQuestionHintList.php.
|
static |
instantiates a question hint list for the passed hint ids
public ilDB $ilDB
| array | $hintIds |
Definition at line 246 of file class.ilAssQuestionHintList.php.
References $query, $res, $row, and ilAssQuestionHint\assignDbRow().
Referenced by ilAssQuestionHintTracking\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
public ilDB $ilDB
| integer | $questionId |
Definition at line 201 of file class.ilAssQuestionHintList.php.
References $query, $res, $row, and ilAssQuestionHint\assignDbRow().
Referenced by ilAssQuestionHintsGUI\checkForExistingHintRelatingToCurrentQuestionAndRedirectOnFailure(), ilAssQuestionHintsGUI\confirmDeleteCmd(), duplicateListForQuestion(), 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
public ilDB $ilDB
| integer | $questionId |
Definition at line 293 of file class.ilAssQuestionHintList.php.
References $query, $res, and $row.
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
public
Definition at line 173 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
public
| integer | $hintId |
Definition at line 114 of file class.ilAssQuestionHintList.php.
| ilAssQuestionHintList::key | ( | ) |
| ilAssQuestionHintList::next | ( | ) |
iterator interface method
public
Definition at line 47 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.
public
Definition at line 138 of file class.ilAssQuestionHintList.php.
| ilAssQuestionHintList::rewind | ( | ) |
iterator interface method
public
Definition at line 39 of file class.ilAssQuestionHintList.php.
| ilAssQuestionHintList::valid | ( | ) |
iterator interface method
public
Definition at line 63 of file class.ilAssQuestionHintList.php.
References key().
Here is the call graph for this function:
|
private |
Definition at line 23 of file class.ilAssQuestionHintList.php.