4 require_once
'./Modules/TestQuestionPool/classes/class.assQuestionGUI.php';
5 require_once
'./Modules/TestQuestionPool/interfaces/interface.ilGuiQuestionScoringAdjustable.php';
6 include_once
'./Modules/Test/classes/inc.AssessmentConstants.php';
36 parent::__construct();
37 include_once
'./Modules/TestQuestionPool/classes/class.assJavaApplet.php';
41 $this->
object->loadFromDb($id);
47 if (substr(
$cmd, 0, 6) ==
"delete")
59 $hasErrors = (!$always) ? $this->
editQuestion(
true) :
false;
62 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
66 $this->
object->setPoints(
$_POST[
"points"]);
78 if (
$_POST[
'delete_applet'])
81 $this->
object->deleteJavaAppletFilename();
85 $this->
object->setJavaAppletFilename(
$_POST[
'uploaded_javaapplet'] );
89 if (!empty($_FILES[
'javaappletName'][
'tmp_name']))
91 $this->
object->setJavaAppletFilename( $_FILES[
'javaappletName'][
'name'],
92 $_FILES[
'javaappletName'][
'tmp_name']
95 $this->
object->setJavaCode(
$_POST[
"java_code"] );
96 $this->
object->setJavaCodebase(
$_POST[
"java_codebase"] );
97 $this->
object->setJavaArchive(
$_POST[
"java_archive"] );
98 $this->
object->setJavaWidth(
$_POST[
"java_width"] );
99 $this->
object->setJavaHeight(
$_POST[
"java_height"] );
101 $this->
object->flushParams();
102 if (is_array(
$_POST[
'kvp'][
'key'] ))
104 foreach (
$_POST[
'kvp'][
'key'] as $idx => $val)
106 if (strlen( $val ) && strlen(
$_POST[
'kvp'][
'value'][$idx] ))
108 $this->
object->addParameter( $val,
$_POST[
'kvp'][
'value'][$idx] );
123 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
125 $this->editForm = $form;
127 $form->setFormAction($this->ctrl->getFormAction($this));
129 $form->setMultipart(
true);
130 $form->setTableWidth(
"100%");
131 $form->setId(
"assjavaapplet");
144 $form->setValuesByPost();
145 $errors = !$form->checkInput();
146 $form->setValuesByPost();
147 if (
$errors) $checkonly =
false;
150 if (!$checkonly) $this->tpl->setVariable(
"QUESTION_DATA", $form->getHTML());
159 $points->setRequired( TRUE );
160 $points->setSize( 3 );
161 $points->setMinValue( 0.0 );
165 $header->setTitle( $this->lng->txt(
"applet_attributes" ) );
169 $javaapplet = $this->
object->getJavaAppletFilename();
170 $applet =
new ilFileInputGUI($this->lng->txt(
'javaapplet' ),
'javaappletName');
172 $applet->setRequired(
false );
174 if (strlen( $javaapplet ))
181 $delete->setOptionTitle( $this->lng->txt(
'delete' ) );
182 $delete->setValue( 1 );
183 $applet->addSubItem( $delete );
190 $code->setRequired( TRUE );
193 if (!strlen( $javaapplet ))
196 $archive =
new ilTextInputGUI($this->lng->txt(
"archive" ),
"java_archive");
198 $archive->setRequired(
false );
202 $codebase =
new ilTextInputGUI($this->lng->txt(
"codebase" ),
"java_codebase");
204 $codebase->setRequired(
false );
211 $width->setSize( 6 );
212 $width->setMinValue( 50 );
213 $width->setMaxLength( 6 );
214 $width->setValue( $this->
object->getJavaWidth() );
215 $width->setRequired( TRUE );
221 $height->setSize( 6 );
222 $height->setMinValue( 50 );
223 $height->setMaxLength( 6 );
224 $height->setValue( $this->
object->getJavaHeight() );
225 $height->setRequired( TRUE );
229 $header->setTitle( $this->lng->txt(
"applet_parameters" ) );
232 include_once
"./Modules/TestQuestionPool/classes/class.ilKVPWizardInputGUI.php";
235 for ($i = 0; $i < $this->
object->getParameterCount(); $i++)
237 $param = $this->
object->getParameter( $i );
238 array_push( $values,
array( $param[
'name'], $param[
'value'] ) );
240 if (count( $values ) == 0)
242 array_push( $values,
array(
"",
"" ) );
244 $kvp->setKeyName( $this->lng->txt(
'name' ) );
245 $kvp->setValueName( $this->lng->txt(
'value' ) );
246 $kvp->setValues( $values );
256 $position = key(
$_POST[
'cmd'][
'addkvp']);
257 $this->
object->addParameterAtIndex($position+1,
"",
"");
267 $position = key(
$_POST[
'cmd'][
'removekvp']);
268 $this->
object->removeParameter($position);
288 $graphicalOutput = FALSE,
289 $result_output = FALSE,
290 $show_question_only = TRUE,
291 $show_feedback = FALSE,
292 $show_correct_solution = FALSE,
293 $show_manual_scoring = FALSE,
294 $show_question_text = TRUE
297 $userdata = $this->
object->getActiveUserData($active_id);
300 include_once
"./Services/UICore/classes/class.ilTemplate.php";
301 include_once
"./Modules/Test/classes/class.ilObjTest.php";
302 $template =
new ilTemplate(
"tpl.il_as_qpl_javaapplet_question_output_solution.html", TRUE, TRUE,
"Modules/TestQuestionPool");
303 $solutiontemplate =
new ilTemplate(
"tpl.il_as_tst_solution_output.html",TRUE, TRUE,
"Modules/TestQuestionPool");
304 if (strlen($userdata[
"test_id"]))
306 $template->setCurrentBlock(
"appletparam");
307 $template->setVariable(
"PARAM_NAME",
"test_type");
310 $template->setVariable(
"PARAM_VALUE",
"0");
314 $template->setVariable(
"PARAM_VALUE",
"1");
316 $template->parseCurrentBlock();
318 if (strlen($userdata[
"test_id"]))
320 $template->setCurrentBlock(
"appletparam");
321 $template->setVariable(
"PARAM_NAME",
"test_id");
322 $template->setVariable(
"PARAM_VALUE", $userdata[
"test_id"]);
323 $template->parseCurrentBlock();
325 $template->setCurrentBlock(
"appletparam");
326 $template->setVariable(
"PARAM_NAME",
"active_id");
327 $template->setVariable(
"PARAM_VALUE", $active_id);
328 $template->parseCurrentBlock();
329 $template->setCurrentBlock(
"appletparam");
330 $template->setVariable(
"PARAM_NAME",
"question_id");
331 $template->setVariable(
"PARAM_VALUE", $this->
object->getId());
332 $template->parseCurrentBlock();
333 if (strlen($userdata[
"user_id"]))
335 $template->setCurrentBlock(
"appletparam");
336 $template->setVariable(
"PARAM_NAME",
"user_id");
337 $template->setVariable(
"PARAM_VALUE", $userdata[
"user_id"]);
338 $template->parseCurrentBlock();
340 $template->setCurrentBlock(
"appletparam");
341 $template->setVariable(
"PARAM_NAME",
"points_max");
342 $template->setVariable(
"PARAM_VALUE", $this->
object->getPoints());
343 $template->parseCurrentBlock();
344 $template->setCurrentBlock(
"appletparam");
345 $template->setVariable(
"PARAM_NAME",
"session_id");
346 $template->setVariable(
"PARAM_VALUE",
$_COOKIE[
"PHPSESSID"]);
347 $template->parseCurrentBlock();
348 $template->setCurrentBlock(
"appletparam");
349 $template->setVariable(
"PARAM_NAME",
"client");
350 $template->setVariable(
"PARAM_VALUE", CLIENT_ID);
351 $template->parseCurrentBlock();
352 $template->setCurrentBlock(
"appletparam");
353 $template->setVariable(
"PARAM_NAME",
"pass");
355 $template->setVariable(
"PARAM_VALUE", $actualpass);
356 $template->parseCurrentBlock();
358 for ($i = 0; $i < $this->
object->getParameterCount(); $i++)
360 $parameter = $this->
object->getParameter($i);
361 $template->setCurrentBlock(
"appletparam");
362 $template->setVariable(
"PARAM_NAME", $parameter[
"name"]);
363 $template->setVariable(
"PARAM_VALUE", $parameter[
"value"]);
364 $template->parseCurrentBlock();
367 if (($active_id > 0) && (!$show_correct_solution))
370 include_once
"./Modules/Test/classes/class.ilObjTest.php";
371 $info = $this->
object->getSolutionValues($active_id,
$pass);
372 foreach (
$info as $kk => $infodata)
374 $template->setCurrentBlock(
"appletparam");
375 $template->setVariable(
"PARAM_NAME",
"value_" . $infodata[
"order"] .
"_1");
376 $template->setVariable(
"PARAM_VALUE", $infodata[
"value1"]);
377 $template->parseCurrentBlock();
378 $template->setCurrentBlock(
"appletparam");
379 $template->setVariable(
"PARAM_NAME",
"value_" . $infodata[
"order"] .
"_2");
380 $template->setVariable(
"PARAM_VALUE", $infodata[
"value2"]);
381 $template->parseCurrentBlock();
385 $questiontext = $this->
object->getQuestion();
386 if ($show_question_text==
true)
388 $template->setVariable(
"QUESTIONTEXT", $this->
object->prepareTextareaOutput($questiontext, TRUE));
390 $template->setVariable(
"APPLET_WIDTH", $this->
object->getJavaWidth());
391 $template->setVariable(
"APPLET_HEIGHT", $this->
object->getJavaHeight());
392 $template->setVariable(
"APPLET_CODE", $this->
object->getJavaCode());
393 if (strlen($this->
object->getJavaArchive()) > 0)
395 $template->setVariable(
"APPLET_ARCHIVE",
" archive=\"".$this->
object->getJavaArchive().
"\"");
399 if (strpos($this->
object->getJavaAppletFilename(),
".jar") !== FALSE)
401 $template->setVariable(
"APPLET_ARCHIVE",
" archive=\"".$this->
object->getJavaPathWeb().$this->object->getJavaAppletFilename().
"\"");
404 if (strlen($this->
object->getJavaCodebase()) > 0)
406 $template->setVariable(
"APPLET_CODEBASE",
" codebase=\"".$this->
object->getJavaCodebase().
"\"");
410 if (strpos($this->
object->getJavaAppletFilename(),
".class") !== FALSE)
412 $template->setVariable(
"APPLET_CODEBASE",
" codebase=\"".$this->
object->getJavaPathWeb().
"\"");
415 if (($active_id > 0) && (!$show_correct_solution))
417 if ($graphicalOutput)
420 $reached_points = $this->
object->getReachedPoints($active_id,
$pass);
421 if ($reached_points == $this->
object->getPoints())
423 $template->setCurrentBlock(
"icon_ok");
425 $template->setVariable(
"TEXT_OK", $this->lng->txt(
"answer_is_right"));
426 $template->parseCurrentBlock();
430 $template->setCurrentBlock(
"icon_ok");
431 if ($reached_points > 0)
434 $template->setVariable(
"TEXT_NOT_OK", $this->lng->txt(
"answer_is_not_correct_but_positive"));
439 $template->setVariable(
"TEXT_NOT_OK", $this->lng->txt(
"answer_is_wrong"));
441 $template->parseCurrentBlock();
445 $questionoutput = $template->get();
447 if (strlen($feedback))
453 $solutiontemplate->setVariable(
"ILC_FB_CSS_CLASS", $cssClass);
454 $solutiontemplate->setVariable(
"FEEDBACK", $this->
object->prepareTextareaOutput( $feedback,
true ));
456 $solutiontemplate->setVariable(
"SOLUTION_OUTPUT", $questionoutput);
458 $solutionoutput = $solutiontemplate->get();
459 if (!$show_question_only)
464 return $solutionoutput;
467 function getPreview($show_question_only = FALSE, $showInlineFeedback =
false)
470 include_once
"./Services/UICore/classes/class.ilTemplate.php";
471 $template =
new ilTemplate(
"tpl.il_as_qpl_javaapplet_question_output.html", TRUE, TRUE,
"Modules/TestQuestionPool");
472 $template->setCurrentBlock(
"appletparam");
473 $template->setVariable(
"PARAM_NAME",
"question_id");
474 $template->setVariable(
"PARAM_VALUE", $this->
object->getId());
475 $template->parseCurrentBlock();
476 $template->setCurrentBlock(
"appletparam");
477 $template->setVariable(
"PARAM_NAME",
"points_max");
478 $template->setVariable(
"PARAM_VALUE", $this->
object->getPoints());
479 $template->parseCurrentBlock();
480 $template->setCurrentBlock(
"appletparam");
481 $template->setVariable(
"PARAM_NAME",
"session_id");
482 $template->setVariable(
"PARAM_VALUE",
$_COOKIE[
"PHPSESSID"]);
483 $template->parseCurrentBlock();
484 $template->setCurrentBlock(
"appletparam");
485 $template->setVariable(
"PARAM_NAME",
"client");
486 $template->setVariable(
"PARAM_VALUE", CLIENT_ID);
487 $template->parseCurrentBlock();
489 for ($i = 0; $i < $this->
object->getParameterCount(); $i++)
491 $parameter = $this->
object->getParameter($i);
492 $template->setCurrentBlock(
"appletparam");
493 $template->setVariable(
"PARAM_NAME", $parameter[
"name"]);
494 $template->setVariable(
"PARAM_VALUE", $parameter[
"value"]);
495 $template->parseCurrentBlock();
498 $questiontext = $this->
object->getQuestion();
499 $template->setVariable(
"QUESTIONTEXT", $this->
object->prepareTextareaOutput($questiontext, TRUE));
500 $template->setVariable(
"APPLET_WIDTH", $this->
object->getJavaWidth());
501 $template->setVariable(
"APPLET_HEIGHT", $this->
object->getJavaHeight());
502 $template->setVariable(
"APPLET_CODE", $this->
object->getJavaCode());
503 if (strlen($this->
object->getJavaArchive()) > 0)
505 $template->setVariable(
"APPLET_ARCHIVE",
" archive=\"".$this->
object->getJavaArchive().
"\"");
509 if (strpos($this->
object->getJavaAppletFilename(),
".jar") !== FALSE)
511 $template->setVariable(
"APPLET_ARCHIVE",
" archive=\"".$this->
object->getJavaPathWeb().$this->object->getJavaAppletFilename().
"\"");
514 if (strlen($this->
object->getJavaCodebase()) > 0)
516 $template->setVariable(
"APPLET_CODEBASE",
" codebase=\"".$this->
object->getJavaCodebase().
"\"");
520 if (strpos($this->
object->getJavaAppletFilename(),
".class") !== FALSE)
522 $template->setVariable(
"APPLET_CODEBASE",
" codebase=\"".$this->
object->getJavaPathWeb().
"\"");
525 $questionoutput = $template->get();
526 if (!$show_question_only)
531 return $questionoutput;
535 function getTestOutput($active_id,
$pass, $is_postponed = FALSE, $use_post_solutions = FALSE, $show_feedback = FALSE)
538 $userdata = $this->
object->getActiveUserData($active_id);
540 include_once
"./Services/UICore/classes/class.ilTemplate.php";
541 $template =
new ilTemplate(
"tpl.il_as_qpl_javaapplet_question_output.html", TRUE, TRUE,
"Modules/TestQuestionPool");
542 $template->setCurrentBlock(
"appletparam");
543 $template->setVariable(
"PARAM_NAME",
"test_type");
544 include_once
"./Modules/Test/classes/class.ilObjTest.php";
547 $template->setVariable(
"PARAM_VALUE",
"0");
551 $template->setVariable(
"PARAM_VALUE",
"1");
553 $template->parseCurrentBlock();
554 $template->setCurrentBlock(
"appletparam");
555 $template->setVariable(
"PARAM_NAME",
"active_id");
556 $template->setVariable(
"PARAM_VALUE", $active_id);
557 $template->parseCurrentBlock();
558 $template->setCurrentBlock(
"appletparam");
559 $template->setVariable(
"PARAM_NAME",
"test_id");
560 $template->setVariable(
"PARAM_VALUE", $userdata[
"test_id"]);
561 $template->parseCurrentBlock();
562 $template->setCurrentBlock(
"appletparam");
563 $template->setVariable(
"PARAM_NAME",
"question_id");
564 $template->setVariable(
"PARAM_VALUE", $this->
object->getId());
565 $template->parseCurrentBlock();
566 $template->setCurrentBlock(
"appletparam");
567 $template->setVariable(
"PARAM_NAME",
"user_id");
568 $template->setVariable(
"PARAM_VALUE", $userdata[
"user_id"]);
569 $template->parseCurrentBlock();
570 $template->setCurrentBlock(
"appletparam");
571 $template->setVariable(
"PARAM_NAME",
"points_max");
572 $template->setVariable(
"PARAM_VALUE", $this->
object->getPoints());
573 $template->parseCurrentBlock();
574 $template->setCurrentBlock(
"appletparam");
575 $template->setVariable(
"PARAM_NAME",
"session_id");
576 $template->setVariable(
"PARAM_VALUE",
$_COOKIE[
"PHPSESSID"]);
577 $template->parseCurrentBlock();
578 $template->setCurrentBlock(
"appletparam");
579 $template->setVariable(
"PARAM_NAME",
"client");
580 $template->setVariable(
"PARAM_VALUE", CLIENT_ID);
581 $template->parseCurrentBlock();
582 $template->setCurrentBlock(
"appletparam");
583 $template->setVariable(
"PARAM_NAME",
"pass");
585 $template->setVariable(
"PARAM_VALUE", $actualpass);
586 $template->parseCurrentBlock();
587 $template->setCurrentBlock(
"appletparam");
588 $template->setVariable(
"PARAM_NAME",
"post_url");
590 $template->parseCurrentBlock();
592 for ($i = 0; $i < $this->
object->getParameterCount(); $i++)
594 $parameter = $this->
object->getParameter($i);
595 $template->setCurrentBlock(
"appletparam");
596 $template->setVariable(
"PARAM_NAME", $parameter[
"name"]);
597 $template->setVariable(
"PARAM_VALUE", $parameter[
"value"]);
598 $template->parseCurrentBlock();
605 #include_once "./Modules/Test/classes/class.ilObjTest.php"; 606 #if (!ilObjTest::_getUsePreviousAnswers($active_id, true)) 608 # if (is_null($pass)) $pass = ilObjTest::_getPass($active_id); 610 $info = $this->
object->getTestOutputSolutions($active_id,
$pass);
612 foreach (
$info as $kk => $infodata)
614 $template->setCurrentBlock(
"appletparam");
615 $template->setVariable(
"PARAM_NAME",
"value_" . $infodata[
"order"] .
"_1");
616 $template->setVariable(
"PARAM_VALUE", $infodata[
"value1"]);
617 $template->parseCurrentBlock();
618 $template->setCurrentBlock(
"appletparam");
619 $template->setVariable(
"PARAM_NAME",
"value_" . $infodata[
"order"] .
"_2");
620 $template->setVariable(
"PARAM_VALUE", $infodata[
"value2"]);
621 $template->parseCurrentBlock();
623 include_once
'./Services/Administration/classes/class.ilSetting.php';
625 if ($soapSetting->get(
"soap_user_administration") == 1)
627 $template->setCurrentBlock(
"appletparam");
628 $template->setVariable(
"PARAM_NAME",
"server");
633 $questiontext = $this->
object->getQuestion();
634 $template->setVariable(
"QUESTIONTEXT", $this->
object->prepareTextareaOutput($questiontext, TRUE));
635 $template->setVariable(
"APPLET_WIDTH", $this->
object->getJavaWidth());
636 $template->setVariable(
"APPLET_HEIGHT", $this->
object->getJavaHeight());
637 $template->setVariable(
"APPLET_CODE", $this->
object->getJavaCode());
638 if (strlen($this->
object->getJavaArchive()) > 0)
640 $template->setVariable(
"APPLET_ARCHIVE",
" archive=\"".$this->
object->getJavaArchive().
"\"");
644 if (strpos($this->
object->getJavaAppletFilename(),
".jar") !== FALSE)
646 $template->setVariable(
"APPLET_ARCHIVE",
" archive=\"".$this->
object->getJavaPathWeb().$this->object->getJavaAppletFilename().
"\"");
649 if (strlen($this->
object->getJavaCodebase()) > 0)
651 $template->setVariable(
"APPLET_CODEBASE",
" codebase=\"".$this->
object->getJavaCodebase().
"\"");
655 if (strpos($this->
object->getJavaAppletFilename(),
".class") !== FALSE)
657 $template->setVariable(
"APPLET_CODEBASE",
" codebase=\"".$this->
object->getJavaPathWeb().
"\"");
660 $questionoutput = $template->get();
661 $pageoutput = $this->
outQuestionPage(
"", $is_postponed, $active_id, $questionoutput);
674 global $rbacsystem, $ilTabs;
676 $ilTabs->clearTargets();
678 $this->ctrl->setParameterByClass(
"ilAssQuestionPageGUI",
"q_id",
$_GET[
"q_id"]);
679 include_once
"./Modules/TestQuestionPool/classes/class.assQuestion.php";
680 $q_type = $this->
object->getQuestionType();
684 $classname = $q_type .
"GUI";
685 $this->ctrl->setParameterByClass(strtolower($classname),
"sel_question_types", $q_type);
686 $this->ctrl->setParameterByClass(strtolower($classname),
"q_id",
$_GET[
"q_id"]);
691 if ($rbacsystem->checkAccess(
'write',
$_GET[
"ref_id"]))
694 $ilTabs->addTarget(
"edit_page",
695 $this->ctrl->getLinkTargetByClass(
"ilAssQuestionPageGUI",
"edit"),
696 array(
"edit",
"insert",
"exec_pg"),
697 "",
"", $force_active);
703 $force_active =
false;
704 if ($rbacsystem->checkAccess(
'write',
$_GET[
"ref_id"]))
707 if ($classname)
$url = $this->ctrl->getLinkTargetByClass($classname,
"editQuestion");
708 $commands =
$_POST[
"cmd"];
709 if (is_array($commands))
711 foreach ($commands as $key => $value)
713 if (preg_match(
"/^delete_.*/", $key, $matches))
715 $force_active =
true;
720 $ilTabs->addTarget(
"edit_question",
722 array(
"editQuestion",
"save",
"saveEdit",
"addkvp",
"removekvp",
"originalSyncForm"),
723 $classname,
"", $force_active);
738 $ilTabs->addTarget(
"statistics",
739 $this->ctrl->getLinkTargetByClass($classname,
"assessment"),
750 return $this->
object->prepareTextareaOutput(
$output, TRUE);
isTestPresentationContext()
editQuestion($checkonly=FALSE)
Creates an output of the edit form for the question.
hasCorrectSolution($activeId, $passIndex)
addTab_QuestionPreview(ilTabsGUI $tabsGUI)
addkvp()
Add a new answer.
static _getObjectIDFromTestID($test_id)
Returns the ILIAS test object id for a given test id.
addBasicQuestionFormProperties($form)
Add basic question form properties: assessment: title, author, description, question, working time.
static _getPass($active_id)
Retrieves the actual pass of a given user for a given test.
addTab_QuestionHints(ilTabsGUI $tabs)
adds the hints tab to ilTabsGUI
getPreview($show_question_only=FALSE, $showInlineFeedback=false)
Class for Java Applet Questions.
getQuestionTemplate()
get question template
const CSS_CLASS_FEEDBACK_CORRECT
__construct($id=-1)
assJavaAppletGUI constructor
getAfterParticipationSuppressionQuestionPostVars()
Returns a list of postvars which will be suppressed in the form output when used in scoring adjustmen...
populateTaxonomyFormSection(ilPropertyFormGUI $form)
static _lookupAnonymity($a_obj_id)
Returns the anonymity status of a test with a given object id.
Java applet question GUI representation.
getAggregatedAnswersView($relevant_answers)
Returns an html string containing a question specific representation of the answers so far given in t...
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\+" &#(? foreach( $entity_files as $file) $output
writeQuestionGenericPostData()
getILIASPage($html="")
Returns the ILIAS Page around a question.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
special template class to simplify handling of ITX/PEAR
populateQuestionSpecificFormPart(\ilPropertyFormGUI $form)
This class represents a text property in a property form.
addTab_QuestionFeedback(ilTabsGUI $tabs)
adds the feedback tab to ilTabsGUI
writePostData($always=false)
{}
getSpecificFeedbackOutput($active_id, $pass)
const CSS_CLASS_FEEDBACK_WRONG
Basic GUI class for assessment questions.
static removeTrailingPathSeparators($path)
Create styles array
The data for the language used.
getTestOutput($active_id, $pass, $is_postponed=FALSE, $use_post_solutions=FALSE, $show_feedback=FALSE)
getAnswerFeedbackOutput($active_id, $pass)
Returns the answer generic feedback depending on the results of the question.
saveTaxonomyAssignments()
This class represents a non editable value in a property form.
Create new PHPExcel object
obj_idprivate
addBackTab(ilTabsGUI $ilTabs)
outQuestionPage($a_temp_var, $a_postponed=false, $active_id="", $html="")
output question page
Interface ilGuiQuestionScoringAdjustable.
setQuestionTabs()
Sets the ILIAS tabs for this question type.
setValue($a_value)
Set Value.
writeQuestionSpecificPostData(ilPropertyFormGUI $form)
Extracts the question specific values from $_POST and applies them to the data object.
addTab_SuggestedSolution(ilTabsGUI $tabs, $classname)
removekvp()
Remove an answer.
getSolutionOutput( $active_id, $pass=NULL, $graphicalOutput=FALSE, $result_output=FALSE, $show_question_only=TRUE, $show_feedback=FALSE, $show_correct_solution=FALSE, $show_manual_scoring=FALSE, $show_question_text=TRUE)
Get the question solution output.
addQuestionFormCommandButtons($form)
Add the command buttons of a question properties form.