4 require_once
'./Modules/TestQuestionPool/classes/class.assQuestionGUI.php';
5 require_once
'./Modules/TestQuestionPool/interfaces/interface.ilGuiQuestionScoringAdjustable.php';
6 require_once
'./Modules/TestQuestionPool/interfaces/interface.ilGuiAnswerScoringAdjustable.php';
7 require_once
'./Modules/Test/classes/inc.AssessmentConstants.php';
34 parent::__construct();
35 include_once
"./Modules/TestQuestionPool/classes/class.assSingleChoice.php";
39 $this->
object->loadFromDb($id);
48 $hasErrors = (!$always) ? $this->
editQuestion(
true) :
false;
51 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
73 return (
$_POST[
'types'] == 0) ? true :
false;
76 $lastChange = $this->
object->getLastChange();
77 if (empty($lastChange) && !isset(
$_POST[
'types']))
80 return $this->
object->getMultilineAnswerSetting() ? false :
true;
85 return $this->
object->isSingleline;
98 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
100 $this->editForm = $form;
102 $form->setFormAction($this->ctrl->getFormAction($this));
107 $form->setMultipart(TRUE);
111 $form->setMultipart(FALSE);
113 $form->setTableWidth(
"100%");
114 $form->setId(
"asssinglechoice");
129 $form->setValuesByPost();
130 $errors = !$form->checkInput();
131 $form->setValuesByPost();
132 if (
$errors) $checkonly =
false;
135 if (!$checkonly) $this->tpl->setVariable(
"QUESTION_DATA", $form->getHTML());
145 $position = key(
$_POST[
'cmd'][
'uploadchoice']);
155 $position = key(
$_POST[
'cmd'][
'removeimagechoice']);
157 $this->
object->removeAnswerImage($position);
167 $position = key(
$_POST[
'cmd'][
'addchoice']);
168 $this->
object->addAnswer(
"", 0, $position+1);
178 $position = key(
$_POST[
'cmd'][
'removechoice']);
179 $this->
object->deleteAnswer($position);
199 $graphicalOutput = FALSE,
200 $result_output = FALSE,
201 $show_question_only = TRUE,
202 $show_feedback = FALSE,
203 $show_correct_solution = FALSE,
204 $show_manual_scoring = FALSE,
205 $show_question_text = TRUE
213 if (($active_id > 0) && (!$show_correct_solution))
215 $solutions =& $this->
object->getSolutionValues($active_id,
$pass);
216 foreach ($solutions as $idx => $solution_value)
218 $user_solution = $solution_value[
"value1"];
225 foreach ($this->
object->answers as $index => $answer)
227 if ($answer->getPoints() > $max_points)
229 $max_points = $answer->getPoints();
230 $found_index = $index;
233 $user_solution = $found_index;
236 include_once
"./Services/UICore/classes/class.ilTemplate.php";
237 $template =
new ilTemplate(
"tpl.il_as_qpl_mc_sr_output_solution.html", TRUE, TRUE,
"Modules/TestQuestionPool");
238 $solutiontemplate =
new ilTemplate(
"tpl.il_as_tst_solution_output.html",TRUE, TRUE,
"Modules/TestQuestionPool");
239 foreach ($keys as $answer_id)
241 $answer = $this->
object->answers[$answer_id];
242 if (($active_id > 0) && (!$show_correct_solution))
244 if ($graphicalOutput)
248 if (strcmp($user_solution, $answer_id) == 0)
250 if ($answer->getPoints() == $this->
object->getMaximumPoints())
260 $template->setCurrentBlock(
"icon_ok");
262 $template->setVariable(
"TEXT_OK", $this->lng->txt(
"answer_is_right"));
263 $template->parseCurrentBlock();
267 $template->setCurrentBlock(
"icon_not_ok");
268 if ($answer->getPoints() > 0)
271 $template->setVariable(
"TEXT_NOT_OK", $this->lng->txt(
"answer_is_not_correct_but_positive"));
276 $template->setVariable(
"TEXT_NOT_OK", $this->lng->txt(
"answer_is_wrong"));
278 $template->parseCurrentBlock();
281 if (strlen($user_solution) == 0)
283 $template->setCurrentBlock(
"icon_not_ok");
285 $template->setVariable(
"TEXT_NOT_OK", $this->lng->txt(
"answer_is_wrong"));
286 $template->parseCurrentBlock();
290 if (strlen($answer->getImage()))
292 $template->setCurrentBlock(
"answer_image");
293 if ($this->
object->getThumbSize())
295 $template->setVariable(
"ANSWER_IMAGE_URL", $this->
object->getImagePathWeb() . $this->
object->getThumbPrefix() . $answer->getImage());
299 $template->setVariable(
"ANSWER_IMAGE_URL", $this->
object->getImagePathWeb() . $answer->getImage());
301 $alt = $answer->getImage();
302 if (strlen($answer->getAnswertext()))
304 $alt = $answer->getAnswertext();
306 $alt = preg_replace(
"/<[^>]*?>/",
"", $alt);
309 $template->parseCurrentBlock();
315 $template->setCurrentBlock(
"answer_row");
316 $template->setVariable(
"ANSWER_TEXT", $this->
object->prepareTextareaOutput($answer->getAnswertext(), TRUE));
320 if (strcmp($user_solution, $answer_id) == 0)
323 $template->setVariable(
"SOLUTION_ALT", $this->lng->txt(
"checked"));
328 $template->setVariable(
"SOLUTION_ALT", $this->lng->txt(
"unchecked"));
333 $template->setVariable(
'QID', $this->
object->getId());
334 $template->setVariable(
'SUFFIX', $show_correct_solution ?
'bestsolution' :
'usersolution');
335 $template->setVariable(
'SOLUTION_VALUE', $answer_id);
336 if (strcmp($user_solution, $answer_id) == 0)
338 $template->setVariable(
'SOLUTION_CHECKED',
'checked');
344 $points = $this->
object->answers[$answer_id]->getPoints();
345 $resulttext = ($points == 1) ?
"(%s " . $this->lng->txt(
"point") .
")" :
"(%s " . $this->lng->txt(
"points") .
")";
346 $template->setVariable(
"RESULT_OUTPUT", sprintf($resulttext, $points));
348 $template->parseCurrentBlock();
350 $questiontext = $this->
object->getQuestion();
351 if ($show_question_text==
true)
353 $template->setVariable(
"QUESTIONTEXT", $this->
object->prepareTextareaOutput($questiontext, TRUE));
355 $questionoutput = $template->get();
357 if (strlen($feedback))
363 $solutiontemplate->setVariable(
"ILC_FB_CSS_CLASS", $cssClass);
364 $solutiontemplate->setVariable(
"FEEDBACK", $this->
object->prepareTextareaOutput( $feedback,
true ));
366 $solutiontemplate->setVariable(
"SOLUTION_OUTPUT", $questionoutput);
368 $solutionoutput = $solutiontemplate->get();
369 if (!$show_question_only)
374 return $solutionoutput;
377 public function getPreview($show_question_only = FALSE, $showInlineFeedback =
false)
382 include_once
"./Services/UICore/classes/class.ilTemplate.php";
383 $template =
new ilTemplate(
"tpl.il_as_qpl_mc_sr_output.html", TRUE, TRUE,
"Modules/TestQuestionPool");
384 foreach ($keys as $answer_id)
386 $answer = $this->
object->answers[$answer_id];
387 if (strlen($answer->getImage()))
389 if ($this->
object->getThumbSize())
391 $template->setCurrentBlock(
"preview");
392 $template->setVariable(
"URL_PREVIEW", $this->
object->getImagePathWeb() . $answer->getImage());
393 $template->setVariable(
"TEXT_PREVIEW", $this->lng->txt(
'preview'));
395 $template->setVariable(
"ANSWER_IMAGE_URL", $this->
object->getImagePathWeb() . $this->
object->getThumbPrefix() . $answer->getImage());
396 list($width, $height, $type, $attr) = getimagesize($this->
object->getImagePath() . $answer->getImage());
397 $alt = $answer->getImage();
398 if (strlen($answer->getAnswertext()))
400 $alt = $answer->getAnswertext();
402 $alt = preg_replace(
"/<[^>]*?>/",
"", $alt);
405 $template->parseCurrentBlock();
409 $template->setCurrentBlock(
"answer_image");
410 $template->setVariable(
"ANSWER_IMAGE_URL", $this->
object->getImagePathWeb() . $answer->getImage());
411 list($width, $height, $type, $attr) = getimagesize($this->
object->getImagePath() . $answer->getImage());
412 $alt = $answer->getImage();
413 if (strlen($answer->getAnswertext()))
415 $alt = $answer->getAnswertext();
417 $alt = preg_replace(
"/<[^>]*?>/",
"", $alt);
418 $template->setVariable(
"ATTR", $attr);
421 $template->parseCurrentBlock();
428 $template->setCurrentBlock(
"answer_row");
429 $template->setVariable(
"QID", $this->
object->getId().
'ID');
430 $template->setVariable(
"ANSWER_ID", $answer_id);
431 $template->setVariable(
"ANSWER_TEXT", $this->
object->prepareTextareaOutput($answer->getAnswertext(), TRUE));
436 if (strcmp($user_solution, $answer_id) == 0)
438 $template->setVariable(
"CHECKED_ANSWER",
" checked=\"checked\"");
442 $template->parseCurrentBlock();
444 $questiontext = $this->
object->getQuestion();
445 $template->setVariable(
"QUESTIONTEXT", $this->
object->prepareTextareaOutput($questiontext, TRUE));
446 $questionoutput = $template->get();
447 if (!$show_question_only)
452 return $questionoutput;
456 function getTestOutput($active_id,
$pass, $is_postponed = FALSE, $use_post_solutions = FALSE, $show_feedback = FALSE)
467 #include_once "./Modules/Test/classes/class.ilObjTest.php"; 468 #if (!ilObjTest::_getUsePreviousAnswers($active_id, true)) 470 # if (is_null($pass)) $pass = ilObjTest::_getPass($active_id); 473 $solutions = $this->
object->getTestOutputSolutions($active_id,
$pass);
474 foreach ($solutions as $idx => $solution_value)
476 $user_solution = $solution_value[
"value1"];
481 include_once
"./Services/UICore/classes/class.ilTemplate.php";
482 $template =
new ilTemplate(
"tpl.il_as_qpl_mc_sr_output.html", TRUE, TRUE,
"Modules/TestQuestionPool");
483 foreach ($keys as $answer_id)
485 $answer = $this->
object->answers[$answer_id];
486 if (strlen($answer->getImage()))
488 if ($this->
object->getThumbSize())
490 $template->setCurrentBlock(
"preview");
491 $template->setVariable(
"URL_PREVIEW", $this->
object->getImagePathWeb() . $answer->getImage());
492 $template->setVariable(
"TEXT_PREVIEW", $this->lng->txt(
'preview'));
494 $template->setVariable(
"ANSWER_IMAGE_URL", $this->
object->getImagePathWeb() . $this->
object->getThumbPrefix() . $answer->getImage());
495 list($width, $height, $type, $attr) = getimagesize($this->
object->getImagePath() . $answer->getImage());
496 $alt = $answer->getImage();
497 if (strlen($answer->getAnswertext()))
499 $alt = $answer->getAnswertext();
501 $alt = preg_replace(
"/<[^>]*?>/",
"", $alt);
504 $template->parseCurrentBlock();
508 $template->setCurrentBlock(
"answer_image");
509 $template->setVariable(
"ANSWER_IMAGE_URL", $this->
object->getImagePathWeb() . $answer->getImage());
510 list($width, $height, $type, $attr) = getimagesize($this->
object->getImagePath() . $answer->getImage());
511 $alt = $answer->getImage();
512 if (strlen($answer->getAnswertext()))
514 $alt = $answer->getAnswertext();
516 $alt = preg_replace(
"/<[^>]*?>/",
"", $alt);
517 $template->setVariable(
"ATTR", $attr);
520 $template->parseCurrentBlock();
525 $feedbackOutputRequired =
false;
527 switch( $this->
object->getSpecificFeedbackSetting() )
530 $feedbackOutputRequired =
true;
534 if (strcmp($user_solution, $answer_id) == 0)
536 $feedbackOutputRequired =
true;
541 if ($this->
object->getAnswer($answer_id)->getPoints() > 0)
543 $feedbackOutputRequired =
true;
548 if($feedbackOutputRequired)
550 $fb = $this->
object->feedbackOBJ->getSpecificAnswerFeedbackTestPresentation(
551 $this->
object->getId(), $answer_id
555 $template->setCurrentBlock(
"feedback");
556 $template->setVariable(
"FEEDBACK", $this->
object->prepareTextareaOutput( $fb,
true ));
557 $template->parseCurrentBlock();
561 $template->setCurrentBlock(
"answer_row");
562 $template->setVariable(
"ANSWER_ID", $answer_id);
563 $template->setVariable(
"ANSWER_TEXT", $this->
object->prepareTextareaOutput($answer->getAnswertext(), TRUE));
564 if (strcmp($user_solution, $answer_id) == 0)
566 $template->setVariable(
"CHECKED_ANSWER",
" checked=\"checked\"");
568 $template->parseCurrentBlock();
570 $questiontext = $this->
object->getQuestion();
571 $template->setVariable(
"QUESTIONTEXT", $this->
object->prepareTextareaOutput($questiontext, TRUE));
572 $questionoutput = $template->get();
573 $pageoutput = $this->
outQuestionPage(
"", $is_postponed, $active_id, $questionoutput);
586 global $rbacsystem, $ilTabs;
588 $ilTabs->clearTargets();
590 $this->ctrl->setParameterByClass(
"ilAssQuestionPageGUI",
"q_id",
$_GET[
"q_id"]);
591 include_once
"./Modules/TestQuestionPool/classes/class.assQuestion.php";
592 $q_type = $this->
object->getQuestionType();
596 $classname = $q_type .
"GUI";
597 $this->ctrl->setParameterByClass(strtolower($classname),
"sel_question_types", $q_type);
598 $this->ctrl->setParameterByClass(strtolower($classname),
"q_id",
$_GET[
"q_id"]);
603 if ($rbacsystem->checkAccess(
'write',
$_GET[
"ref_id"]))
606 $ilTabs->addTarget(
"edit_page",
607 $this->ctrl->getLinkTargetByClass(
"ilAssQuestionPageGUI",
"edit"),
608 array(
"edit",
"insert",
"exec_pg"),
609 "",
"", $force_active);
615 $force_active =
false;
616 if ($rbacsystem->checkAccess(
'write',
$_GET[
"ref_id"]))
619 if ($classname)
$url = $this->ctrl->getLinkTargetByClass($classname,
"editQuestion");
621 $ilTabs->addTarget(
"edit_question",
623 array(
"editQuestion",
"save",
"saveEdit",
"addchoice",
"removechoice",
"removeimagechoice",
"uploadchoice",
"originalSyncForm"),
624 $classname,
"", $force_active);
639 $ilTabs->addTarget(
"statistics",
640 $this->ctrl->getLinkTargetByClass($classname,
"assessment"),
655 $choiceKeys = array_keys($this->
object->answers);
657 if( $this->
object->getShuffle() )
659 $choiceKeys = $this->
object->getShuffler()->shuffle($choiceKeys);
669 return $this->
object->prepareTextareaOutput(
$output, TRUE);
674 $this->
object->setShuffle(
$_POST[
"shuffle"] );
675 $this->
object->setMultilineAnswerSetting(
$_POST[
"types"] );
676 if (is_array(
$_POST[
'choice'][
'imagename'] ) &&
$_POST[
"types"] == 1)
678 $this->
object->isSingleline =
true;
683 $this->
object->isSingleline = (
$_POST[
"types"] == 0) ?
true :
false;
685 $this->
object->setThumbSize( (strlen(
$_POST[
"thumb_size"] )) ?
$_POST[
"thumb_size"] :
"" );
694 $shuffle->setChecked( $this->
object->getShuffle() );
695 $shuffle->setRequired( FALSE );
698 if ($this->
object->getId())
701 $hidden->setValue( $this->
object->getId() );
705 if (!$this->
object->getSelfAssessmentEditingMode())
710 $types->setValue( ($isSingleline) ? 0 : 1 );
711 $types->setOptions(
array(
712 0 => $this->lng->txt(
'answers_singleline' ),
713 1 => $this->lng->txt(
'answers_multiline' ),
722 $thumb_size =
new ilNumberInputGUI($this->lng->txt(
"thumb_size" ),
"thumb_size");
723 $thumb_size->
setSuffix($this->lng->txt(
"thumb_size_unit_pixel"));
724 $thumb_size->setMinValue( 20 );
725 $thumb_size->setDecimals( 0 );
726 $thumb_size->setSize( 6 );
727 $thumb_size->setInfo( $this->lng->txt(
'thumb_size_info' ) );
728 $thumb_size->setValue( $this->
object->getThumbSize() );
729 $thumb_size->setRequired(
false );
752 $this->
object->flushAnswers();
753 if ($this->
object->isSingleline)
755 foreach (
$_POST[
'choice'][
'answer'] as $index => $answertext)
759 $picturefile =
$_POST[
'choice'][
'imagename'][$index];
760 $file_org_name = $_FILES[
'choice'][
'name'][
'image'][$index];
761 $file_temp_name = $_FILES[
'choice'][
'tmp_name'][
'image'][$index];
763 if (strlen( $file_temp_name ))
766 $suffix = strtolower( array_pop( explode(
".", $file_org_name ) ) );
767 if (in_array( $suffix,
array(
"jpg",
"jpeg",
"png",
"gif" ) ))
770 $filename = $this->
object->buildHashedImageFilename( $file_org_name );
778 $this->
object->addAnswer( $answertext,
$_POST[
'choice'][
'points'][$index], $index, $picturefile );
783 foreach (
$_POST[
'choice'][
'answer'] as $index => $answer)
785 $answertext = $answer;
786 $this->
object->addAnswer( $answertext,
$_POST[
'choice'][
'points'][$index], $index );
796 include_once
"./Modules/TestQuestionPool/classes/class.ilSingleChoiceWizardInputGUI.php";
799 $choices->setQuestionObject( $this->
object );
800 $choices->setSingleline( $isSingleline );
801 $choices->setAllowMove(
false );
802 if ($this->
object->getSelfAssessmentEditingMode())
804 $choices->setSize( 40 );
806 $choices->setMaxLength( 800 );
807 if ($this->
object->getAnswerCount() == 0)
808 $this->
object->addAnswer(
"", 0, 0 );
809 $choices->setValues( $this->
object->getAnswers() );
843 $aggregate =
array();
844 foreach ($answers_defined_on_question as $answer)
846 $aggregated_info_for_answer =
array();
847 $aggregated_info_for_answer[
'answertext'] = $answer->getAnswerText();
848 $aggregated_info_for_answer[
'count_checked'] = 0;
850 foreach ($relevant_answers_chosen as $relevant_answer)
852 if ($relevant_answer[
'value1'] == $answer->getOrder())
854 $aggregated_info_for_answer[
'count_checked']++;
857 $aggregated_info_for_answer[
'count_unchecked'] =
858 ceil(count($relevant_answers_chosen) / count($answers_defined_on_question))
859 - $aggregated_info_for_answer[
'count_checked'];
861 $aggregate[] = $aggregated_info_for_answer;
873 $tpl =
new ilTemplate(
'tpl.il_as_aggregated_answers_table.html',
true,
true,
"Modules/TestQuestionPool");
875 $tpl->setCurrentBlock(
'headercell');
876 $tpl->setVariable(
'HEADER', $this->lng->txt(
'tst_answer_aggr_answer_header'));
877 $tpl->parseCurrentBlock();
879 $tpl->setCurrentBlock(
'headercell');
880 $tpl->setVariable(
'HEADER', $this->lng->txt(
'tst_answer_aggr_frequency_header'));
881 $tpl->parseCurrentBlock();
883 foreach ($aggregate as $line_data)
885 $tpl->setCurrentBlock(
'aggregaterow' );
886 $tpl->setVariable(
'OPTION', $line_data[
'answertext'] );
887 $tpl->setVariable(
'COUNT', $line_data[
'count_checked'] );
888 $tpl->parseCurrentBlock();
895 $feedbackOutputRequired =
false;
897 switch($this->
object->getSpecificFeedbackSetting())
900 $feedbackOutputRequired =
true;
904 if(strcmp($user_solution, $answer_id) == 0)
906 $feedbackOutputRequired =
true;
911 if($this->
object->getAnswer($answer_id)->getPoints() > 0)
913 $feedbackOutputRequired =
true;
918 if($feedbackOutputRequired)
920 $fb = $this->
object->feedbackOBJ->getSpecificAnswerFeedbackTestPresentation($this->
object->getId(), $answer_id);
923 $template->setCurrentBlock(
"feedback");
924 $template->setVariable(
"FEEDBACK", $this->
object->prepareTextareaOutput($fb,
true));
925 $template->parseCurrentBlock();
isTestPresentationContext()
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
hasCorrectSolution($activeId, $passIndex)
addTab_QuestionPreview(ilTabsGUI $tabsGUI)
aggregateAnswers($relevant_answers_chosen, $answers_defined_on_question)
addBasicQuestionFormProperties($form)
Add basic question form properties: assessment: title, author, description, question, working time.
getAggregatedAnswersView($relevant_answers)
Returns an html string containing a question specific representation of the answers so far given in t...
writePostData($always=false)
{}
addTab_QuestionHints(ilTabsGUI $tabs)
adds the hints tab to ilTabsGUI
setQuestionTabs()
Sets the ILIAS tabs for this question type.
writeAnswerSpecificPostData(ilPropertyFormGUI $form)
Extracts the answer specific values from $_POST and applies them to the data object.
populateInlineFeedback($template, $answer_id, $user_solution)
renderAggregateView($aggregate)
populateQuestionSpecificFormPart(\ilPropertyFormGUI $form)
getQuestionTemplate()
get question template
const CSS_CLASS_FEEDBACK_CORRECT
editQuestion($checkonly=FALSE)
Creates an output of the edit form for the question.
populateTaxonomyFormSection(ilPropertyFormGUI $form)
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.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
getTestOutput($active_id, $pass, $is_postponed=FALSE, $use_post_solutions=FALSE, $show_feedback=FALSE)
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\+" &#(? foreach( $entity_files as $file) $output
writeQuestionGenericPostData()
getAfterParticipationSuppressionAnswerPostVars()
Returns a list of postvars which will be suppressed in the form output when used in scoring adjustmen...
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)
Class for single choice questions.
special template class to simplify handling of ITX/PEAR
getAfterParticipationSuppressionQuestionPostVars()
Returns a list of postvars which will be suppressed in the form output when used in scoring adjustmen...
addTab_QuestionFeedback(ilTabsGUI $tabs)
adds the feedback tab to ilTabsGUI
removechoice()
Remove an answer.
const CSS_CLASS_FEEDBACK_WRONG
getPreview($show_question_only=FALSE, $showInlineFeedback=false)
Basic GUI class for assessment questions.
static getHtmlPath($relative_path)
get url of path
Create styles array
The data for the language used.
getAnswerFeedbackOutput($active_id, $pass)
Returns the answer generic feedback depending on the results of the question.
populateAnswerSpecificFormPart(\ilPropertyFormGUI $form)
saveTaxonomyAssignments()
addchoice()
Add a new answer.
Create new PHPExcel object
obj_idprivate
addBackTab(ilTabsGUI $ilTabs)
static secureString($a_str, $a_strip_html=true, $a_allow="")
Remove unsecure tags.
isRenderPurposePrintPdf()
Interface ilGuiAnswerScoringAdjustable.
Single choice question GUI representation.
outQuestionPage($a_temp_var, $a_postponed=false, $active_id="", $html="")
output question page
getSpecificFeedbackOutput($active_id, $pass)
__construct($id=-1)
assSingleChoiceGUI constructor
removeimagechoice()
Remove an image.
Interface ilGuiQuestionScoringAdjustable.
getEditAnswersSingleLine($checkonly=false)
Get the single/multiline editing of answers.
uploadchoice()
Upload an image.
addTab_SuggestedSolution(ilTabsGUI $tabs, $classname)
addQuestionFormCommandButtons($form)
Add the command buttons of a question properties form.
writeQuestionSpecificPostData(ilPropertyFormGUI $form)
Extracts the question specific values from $_POST and applies them to the data object.
renderPurposeSupportsFormHtml()