30 switch ($DIC->ctrl()->getNextClass($this)) {
31 case $DIC->question()->service()->fetchNextAuthoringCommandClass($DIC->ctrl()->getNextClass()):
36 $questionInstance = $DIC->question()->getQuestionInstance($questionId);
37 $questionAuthoringGUI = $DIC->question()->getAuthoringCommandInstance($questionInstance);
39 $questionAuthoringGUI->setBackLink($backLink);
41 $DIC->ctrl()->forwardCommand($questionAuthoringGUI);
56 $questionDataArray = $DIC->question()->getQuestionDataArray($parentObjectId);
64 $tableGUI->setData($questionDataArray);
66 $tableHTML = $tableGUI->getHTML();
92 foreach ($qtiItems as $qtiItem) {
93 $questionType = $DIC->question()->service()->determineQuestionTypeByQtiItem($qtiItem);
94 $questionInstance = $DIC->question()->getEmptyQuestionInstance($questionType);
96 $questionInstance->fromQtiItem($qtiItem);
97 $questionInstance->setParentId($parentObjectId);
98 $questionInstance->save();
120 $questions = $DIC->question()->getQuestionInstances($parentObjectId);
128 foreach ($questions as $questionInstance) {
129 $qtiXML .= $questionInstance->toQtiXML();
149 $questionInstance = $DIC->question()->getQuestionInstance($questionId);
150 $questionInstance->delete();
showQuestions()
For question listings the ilAsqQuestionFactory provides a factory method to retrieve an array of asso...
When a component consumes the assessment question service for purposes of authoring and managing ques...
executeCommand()
The question creation and editing is handled by the the ilAsqQuestionAuthoring interface.
For that questions that are actually shown in the rows limit of the table corresponding question link...
importQuestions()
When a component provides import functionality for assessment questions, it needs to make use of the ...
deleteQuestion()
For the deletion of questions ilAsqQuestion provides the interface method deleteQuestion.
exportQuestions()
When a component provides export functionality for assessment questions, it needs the ilAsqQuestion i...