28 $this->qstResourcesCollector =
$DIC->question()->getQuestionResourcesCollector();
40 $questionReferences = array();
42 $qstOfflinePresentations = array();
44 foreach ($questionReferences as $questionRef) {
58 if ($a_mode ==
"offline") {
59 if ($anyObjParentType ==
"sahs") {
60 $image_path =
"./objects/";
62 if ($anyObjParentType ==
"lm") {
63 $image_path =
"./assessment/0/" . $questionId .
"/images/";
73 $questionInstance =
$DIC->question()->getOfflineExportableQuestionInstance(
83 $qstOfflinePresentationExporter =
$DIC->question()->getQuestionOfflinePresentationExporter(
95 $qstOfflinePresentations[$questionId] = $qstOfflinePresentationExporter->exportQuestion(
96 $this->qstResourcesCollector,
101 return $qstOfflinePresentations;
An exception for terminatinating execution or to throw for unit testing.
For components that needs to integrate the assessment question service in the way,...
getQuestionOfflinePresentations($a_no_interaction, $a_mode)
__construct()
exPageContentQuestions constructor.
static _extractObjIdOfTarget($a_target)
Extract object id out of target.