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();
An exception for terminatinating execution or to throw for unit testing.
When a component consumes the assessment question service for purposes of authoring and managing ques...
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.
executeCommand()
The question creation and editing is handled by the the ilAsqQuestionAuthoring interface.
exportQuestions()
When a component provides export functionality for assessment questions, it needs the ilAsqQuestion i...
showQuestions()
For question listings the ilAsqQuestionFactory provides a factory method to retrieve an array of asso...
For that questions that are actually shown in the rows limit of the table corresponding question link...