ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.assOrderingHorizontalGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once './Modules/TestQuestionPool/classes/class.assQuestionGUI.php';
5require_once './Modules/TestQuestionPool/interfaces/interface.ilGuiQuestionScoringAdjustable.php';
6require_once './Modules/Test/classes/inc.AssessmentConstants.php';
7
23{
32 public function __construct($id = -1)
33 {
35 include_once "./Modules/TestQuestionPool/classes/class.assOrderingHorizontal.php";
36 $this->object = new assOrderingHorizontal();
37 $this->setErrorMessage($this->lng->txt("msg_form_save_error"));
38 if ($id >= 0) {
39 $this->object->loadFromDb($id);
40 }
41 }
42
43 public function getCommand($cmd)
44 {
45 return $cmd;
46 }
47
51 protected function writePostData($always = false)
52 {
53 $hasErrors = (!$always) ? $this->editQuestion(true) : false;
54 if (!$hasErrors) {
55 require_once 'Services/Form/classes/class.ilPropertyFormGUI.php';
59 return 0;
60 }
61 return 1;
62 }
63
69 public function editQuestion($checkonly = false)
70 {
71 $save = $this->isSaveCommand();
72 $this->getQuestionTemplate();
73
74 include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
75 $form = new ilPropertyFormGUI();
76 $this->editForm = $form;
77
78 $form->setFormAction($this->ctrl->getFormAction($this));
79 $form->setTitle($this->outQuestionType());
80 $form->setMultipart(false);
81 $form->setTableWidth("100%");
82 $form->setId("orderinghorizontal");
83
86
87
88 $this->populateTaxonomyFormSection($form);
89
91
92 $errors = false;
93
94 if ($save) {
95 $form->setValuesByPost();
96 $errors = !$form->checkInput();
97 $form->setValuesByPost(); // again, because checkInput now performs the whole stripSlashes handling and we need this if we don't want to have duplication of backslashes
98 if ($errors) {
99 $checkonly = false;
100 }
101 }
102
103 if (!$checkonly) {
104 $this->tpl->setVariable("QUESTION_DATA", $form->getHTML());
105 }
106 return $errors;
107 }
108
115 {
116 return true;
117 }
118
132 public function getSolutionOutput(
133 $active_id,
134 $pass = null,
135 $graphicalOutput = false,
136 $result_output = false,
137 $show_question_only = true,
138 $show_feedback = false,
139 $show_correct_solution = false,
140 $show_manual_scoring = false,
141 $show_question_text = true
142 ) {
143 // get the solution of the user for the active pass or from the last pass if allowed
144 $template = new ilTemplate("tpl.il_as_qpl_orderinghorizontal_output_solution.html", true, true, "Modules/TestQuestionPool");
145
146 if (($active_id > 0) && (!$show_correct_solution)) {
147 $elements = [];
148 $solutions = $this->object->getSolutionValues($active_id, $pass, !$this->getUseIntermediateSolution());
149 if (strlen($solutions[0]["value1"])) {
150 $elements = explode("{::}", $solutions[0]["value1"]);
151 }
152
153 if (!count($elements)) {
154 $elements = $this->object->getRandomOrderingElements();
155 }
156
157 foreach ($elements as $id => $element) {
158 $template->setCurrentBlock("element");
159 $template->setVariable("ELEMENT_ID", "sol_e_" . $this->object->getId() . "_$id");
160 $template->setVariable("ELEMENT_VALUE", ilUtil::prepareFormOutput($element));
161 $template->parseCurrentBlock();
162 }
163 } else {
164 $elements = $this->object->getOrderingElements();
165 foreach ($elements as $id => $element) {
166 $template->setCurrentBlock("element");
167 $template->setVariable("ELEMENT_ID", "sol_e_" . $this->object->getId() . "_$id");
168 $template->setVariable("ELEMENT_VALUE", ilUtil::prepareFormOutput($element));
169 $template->parseCurrentBlock();
170 }
171 }
172
173 if (($active_id > 0) && (!$show_correct_solution)) {
174 if ($this->object->getStep() === null) {
175 $reached_points = $this->object->getReachedPoints($active_id, $pass);
176 } else {
177 $reached_points = $this->object->calculateReachedPoints($active_id, $pass);
178 }
179 if ($graphicalOutput) {
180 // output of ok/not ok icons for user entered solutions
181 if ($reached_points == $this->object->getMaximumPoints()) {
182 $template->setCurrentBlock("icon_ok");
183 $template->setVariable("ICON_OK", ilUtil::getImagePath("icon_ok.svg"));
184 $template->setVariable("TEXT_OK", $this->lng->txt("answer_is_right"));
185 $template->parseCurrentBlock();
186 } else {
187 $template->setCurrentBlock("icon_ok");
188 if ($reached_points > 0) {
189 $template->setVariable("ICON_NOT_OK", ilUtil::getImagePath("icon_mostly_ok.svg"));
190 $template->setVariable("TEXT_NOT_OK", $this->lng->txt("answer_is_not_correct_but_positive"));
191 } else {
192 $template->setVariable("ICON_NOT_OK", ilUtil::getImagePath("icon_not_ok.svg"));
193 $template->setVariable("TEXT_NOT_OK", $this->lng->txt("answer_is_wrong"));
194 }
195 $template->parseCurrentBlock();
196 }
197 }
198 } else {
199 $reached_points = $this->object->getPoints();
200 }
201
202 if ($result_output) {
203 $resulttext = ($reached_points == 1) ? "(%s " . $this->lng->txt("point") . ")" : "(%s " . $this->lng->txt("points") . ")";
204 $template->setVariable("RESULT_OUTPUT", sprintf($resulttext, $reached_points));
205 }
206 if ($show_question_text == true) {
207 $template->setVariable("QUESTIONTEXT", $this->object->prepareTextareaOutput($this->object->getQuestion(), true));
208 }
209 // $template->setVariable("SOLUTION_TEXT", ilUtil::prepareFormOutput($solutionvalue));
210 if ($this->object->textsize >= 10) {
211 $template->setVariable("STYLE", " style=\"font-size: " . $this->object->textsize . "%;\"");
212 }
213
214 $questionoutput = $template->get();
215 $solutiontemplate = new ilTemplate("tpl.il_as_tst_solution_output.html", true, true, "Modules/TestQuestionPool");
216 $solutiontemplate->setVariable("SOLUTION_OUTPUT", $questionoutput);
217
218
219 $feedback = '';
220 if ($show_feedback) {
221 if (!$this->isTestPresentationContext()) {
222 $fb = $this->getGenericFeedbackOutput($active_id, $pass);
223 $feedback .= strlen($fb) ? $fb : '';
224 }
225
226 $fb = $this->getSpecificFeedbackOutput(array());
227 $feedback .= strlen($fb) ? $fb : '';
228 }
229 if (strlen($feedback)) {
230 $cssClass = (
231 $this->hasCorrectSolution($active_id, $pass) ?
233 );
234
235 $solutiontemplate->setVariable("ILC_FB_CSS_CLASS", $cssClass);
236 $solutiontemplate->setVariable("FEEDBACK", $this->object->prepareTextareaOutput($feedback, true));
237 }
238 $solutionoutput = $solutiontemplate->get();
239 if (!$show_question_only) {
240 // get page object output
241 $solutionoutput = $this->getILIASPage($solutionoutput);
242 }
243 return $solutionoutput;
244 }
245
246 public function getPreview($show_question_only = false, $showInlineFeedback = false)
247 {
248 if (is_object($this->getPreviewSession()) && strlen((string) $this->getPreviewSession()->getParticipantsSolution())) {
249 $elements = (string) $this->getPreviewSession()->getParticipantsSolution();
250 $elements = $this->object->splitAndTrimOrderElementText($elements, $this->object->getAnswerSeparator());
251 } else {
252 $elements = $this->object->getRandomOrderingElements();
253 }
254
255 $template = new ilTemplate("tpl.il_as_qpl_orderinghorizontal_preview.html", true, true, "Modules/TestQuestionPool");
256 foreach ($elements as $id => $element) {
257 $template->setCurrentBlock("element");
258 $template->setVariable("ELEMENT_ID", "e_" . $this->object->getId() . "_$id");
259 $template->setVariable("ORDERING_VALUE", ilUtil::prepareFormOutput($element));
260 $template->setVariable("ELEMENT_VALUE", ilUtil::prepareFormOutput($element));
261 $template->parseCurrentBlock();
262 }
263 $template->setVariable("QUESTION_ID", $this->object->getId());
264 $template->setVariable("VALUE_ORDERRESULT", ' value="' . join('{::}', $elements) . '"');
265 if ($this->object->textsize >= 10) {
266 $template->setVariable("STYLE", " style=\"font-size: " . $this->object->textsize . "%;\"");
267 }
268 $template->setVariable("QUESTIONTEXT", $this->object->prepareTextareaOutput($this->object->getQuestion(), true));
269 $questionoutput = $template->get();
270 if (!$show_question_only) {
271 // get page object output
272 $questionoutput = $this->getILIASPage($questionoutput);
273 }
274 global $DIC; /* @var ILIAS\DI\Container $DIC */
275 if ($DIC['ilBrowser']->isMobile() || $DIC['ilBrowser']->isIpad()) {
276 require_once 'Services/jQuery/classes/class.iljQueryUtil.php';
279 $this->tpl->addJavaScript('./libs/bower/bower_components/jqueryui-touch-punch/jquery.ui.touch-punch.min.js');
280 }
281 $this->tpl->addJavascript("./Modules/TestQuestionPool/templates/default/orderinghorizontal.js");
282 return $questionoutput;
283 }
284
285 // hey: prevPassSolutions - pass will be always available from now on
286 public function getTestOutput($active_id, $pass, $is_postponed = false, $use_post_solutions = false, $show_feedback = false)
287 // hey.
288 {
289 // generate the question output
290 $template = new ilTemplate("tpl.il_as_qpl_orderinghorizontal_output.html", true, true, "Modules/TestQuestionPool");
291 $elements = $this->object->getRandomOrderingElements();
292
293 if ($active_id) {
294 // hey: prevPassSolutions - obsolete due to central check
295 #$solutions = NULL;
296 #include_once "./Modules/Test/classes/class.ilObjTest.php";
297 #if (!ilObjTest::_getUsePreviousAnswers($active_id, true))
298 #{
299 # if (is_null($pass)) $pass = ilObjTest::_getPass($active_id);
300 #}
301 $solutions = $this->object->getTestOutputSolutions($active_id, $pass);
302 // hey.
303 if (is_array($solutions) && count($solutions) == 1) {
304 $elements = explode("{::}", $solutions[0]["value1"]);
305 }
306 }
307 if (!is_array($solutions) || count($solutions) == 0) {
308 $_SESSION['qst_ordering_horizontal_elements'] = $elements;
309 } else {
310 unset($_SESSION['qst_ordering_horizontal_elements']);
311 }
312 foreach ($elements as $id => $element) {
313 $template->setCurrentBlock("element");
314 $template->setVariable("ELEMENT_ID", "e_" . $this->object->getId() . "_$id");
315 $template->setVariable("ORDERING_VALUE", ilUtil::prepareFormOutput($element));
316 $template->setVariable("ELEMENT_VALUE", ilUtil::prepareFormOutput($element));
317 $template->parseCurrentBlock();
318 }
319 $template->setVariable("QUESTION_ID", $this->object->getId());
320 if ($this->object->textsize >= 10) {
321 $template->setVariable("STYLE", " style=\"font-size: " . $this->object->textsize . "%;\"");
322 }
323 $template->setVariable("VALUE_ORDERRESULT", ' value="' . join('{::}', $elements) . '"');
324 $template->setVariable("QUESTIONTEXT", $this->object->prepareTextareaOutput($this->object->getQuestion(), true));
325 $questionoutput = $template->get();
326 if (!$show_question_only) {
327 // get page object output
328 $questionoutput = $this->getILIASPage($questionoutput);
329 }
330 global $DIC; /* @var ILIAS\DI\Container $DIC */
331 if ($DIC['ilBrowser']->isMobile() || $DIC['ilBrowser']->isIpad()) {
332 require_once 'Services/jQuery/classes/class.iljQueryUtil.php';
335 $this->tpl->addJavaScript('./libs/bower/bower_components/jqueryui-touch-punch/jquery.ui.touch-punch.min.js');
336 }
337 $this->tpl->addJavascript("./Modules/TestQuestionPool/templates/default/orderinghorizontal.js");
338 $questionoutput = $template->get();
339 $pageoutput = $this->outQuestionPage("", $is_postponed, $active_id, $questionoutput);
340 return $pageoutput;
341 }
342
348 public function saveFeedback()
349 {
350 include_once "./Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php";
351 $errors = $this->feedback(true);
352 $this->object->saveFeedbackGeneric(0, $_POST["feedback_incomplete"]);
353 $this->object->saveFeedbackGeneric(1, $_POST["feedback_complete"]);
354 $this->object->cleanupMediaObjectUsage();
355 parent::saveFeedback();
356 }
357
359 {
360 global $DIC; /* @var ILIAS\DI\Container $DIC */
361
362 $files = array();
363
364 if ($DIC['ilBrowser']->isMobile() || $DIC['ilBrowser']->isIpad()) {
365 $files[] = './libs/bower/bower_components/jqueryui-touch-punch/jquery.ui.touch-punch.min.js';
366 }
367
368 return $files;
369 }
370
378 public function setQuestionTabs()
379 {
380 global $DIC;
381 $rbacsystem = $DIC['rbacsystem'];
382 $ilTabs = $DIC['ilTabs'];
383
384 $ilTabs->clearTargets();
385
386 $this->ctrl->setParameterByClass("ilAssQuestionPageGUI", "q_id", $_GET["q_id"]);
387 include_once "./Modules/TestQuestionPool/classes/class.assQuestion.php";
388 $q_type = $this->object->getQuestionType();
389
390 if (strlen($q_type)) {
391 $classname = $q_type . "GUI";
392 $this->ctrl->setParameterByClass(strtolower($classname), "sel_question_types", $q_type);
393 $this->ctrl->setParameterByClass(strtolower($classname), "q_id", $_GET["q_id"]);
394 }
395
396 if ($_GET["q_id"]) {
397 if ($rbacsystem->checkAccess('write', $_GET["ref_id"])) {
398 // edit page
399 $ilTabs->addTarget(
400 "edit_page",
401 $this->ctrl->getLinkTargetByClass("ilAssQuestionPageGUI", "edit"),
402 array("edit", "insert", "exec_pg"),
403 "",
404 "",
405 $force_active
406 );
407 }
408
409 $this->addTab_QuestionPreview($ilTabs);
410 }
411
412 $force_active = false;
413 if ($rbacsystem->checkAccess('write', $_GET["ref_id"])) {
414 $url = "";
415 if ($classname) {
416 $url = $this->ctrl->getLinkTargetByClass($classname, "editQuestion");
417 }
418 $commands = $_POST["cmd"];
419 if (is_array($commands)) {
420 foreach ($commands as $key => $value) {
421 if (preg_match("/^suggestrange_.*/", $key, $matches)) {
422 $force_active = true;
423 }
424 }
425 }
426 // edit question properties
427 $ilTabs->addTarget(
428 "edit_question",
429 $url,
430 array("editQuestion", "save", "saveEdit", "originalSyncForm"),
431 $classname,
432 "",
433 $force_active
434 );
435 }
436
437 // add tab for question feedback within common class assQuestionGUI
438 $this->addTab_QuestionFeedback($ilTabs);
439
440 // add tab for question hint within common class assQuestionGUI
441 $this->addTab_QuestionHints($ilTabs);
442
443 // add tab for question's suggested solution within common class assQuestionGUI
444 $this->addTab_SuggestedSolution($ilTabs, $classname);
445
446 // Assessment of questions sub menu entry
447 if ($_GET["q_id"]) {
448 $ilTabs->addTarget(
449 "statistics",
450 $this->ctrl->getLinkTargetByClass($classname, "assessment"),
451 array("assessment"),
452 $classname,
453 ""
454 );
455 }
456
457 $this->addBackTab($ilTabs);
458 }
459
460 public function getSpecificFeedbackOutput($userSolution)
461 {
462 if (strpos($this->object->getOrderText(), '::')) {
463 $answers = explode('::', $this->object->getOrderText());
464 } else {
465 $answers = explode(' ', $this->object->getOrderText());
466 }
467
468 if (!$this->object->feedbackOBJ->specificAnswerFeedbackExists()) {
469 return '';
470 }
471
472 $output = '<table class="test_specific_feedback"><tbody>';
473
474 foreach ($answers as $idx => $answer) {
475 $feedback = $this->object->feedbackOBJ->getSpecificAnswerFeedbackTestPresentation(
476 $this->object->getId(),
477 0,
478 $idx
479 );
480
481 $output .= "<tr><td>{$answer}</td><td>{$feedback}</td></tr>";
482 }
483
484 $output .= '</tbody></table>';
485
486 return $this->object->prepareTextareaOutput($output, true);
487 }
488
490 {
491 $this->object->setTextSize($_POST["textsize"]);
492 $this->object->setOrderText($_POST["ordertext"]);
493 $this->object->setPoints($_POST["points"]);
494 }
495
506 {
507 return array();
508 }
509
511 {
512 // ordertext
513 $ordertext = new ilTextAreaInputGUI($this->lng->txt("ordertext"), "ordertext");
514 $ordertext->setValue($this->object->prepareTextareaOutput($this->object->getOrderText()));
515 $ordertext->setRequired(true);
516 $ordertext->setInfo(sprintf($this->lng->txt("ordertext_info"), $this->object->separator));
517 $ordertext->setRows(10);
518 $ordertext->setCols(80);
519 $form->addItem($ordertext);
520 // textsize
521 $textsize = new ilNumberInputGUI($this->lng->txt("textsize"), "textsize");
522 $textsize->setValue($this->object->getTextSize());
523 $textsize->setInfo($this->lng->txt("textsize_info"));
524 $textsize->setSize(6);
525 $textsize->setMinValue(10);
526 $textsize->setRequired(false);
527 $form->addItem($textsize);
528 // points
529 $points = new ilNumberInputGUI($this->lng->txt("points"), "points");
530
531 $points->allowDecimals(true);
532 // mbecker: Fix for mantis bug 7866: Predefined values schould make sense.
533 // This implements a default value of "1" for this question type.
534 if ($this->object->getPoints() == null) {
535 $points->setValue("1");
536 } else {
537 $points->setValue($this->object->getPoints());
538 }
539 $points->setRequired(true);
540 $points->setSize(3);
541 $points->setMinValue(0.0);
542 $points->setMinvalueShouldBeGreater(true);
543 $form->addItem($points);
544 }
545
554 public function getAggregatedAnswersView($relevant_answers)
555 {
556 return $this->renderAggregateView(
557 $this->aggregateAnswers($relevant_answers, $this->object->getOrderText())
558 )->get();
559 }
560
561 public function aggregateAnswers($relevant_answers_chosen, $answer_defined_on_question)
562 {
563 $aggregate = array();
564 foreach ($relevant_answers_chosen as $answer) {
565 $answer = str_replace($this->object->getAnswerSeparator(), '&nbsp;&nbsp;-&nbsp;&nbsp;', $answer);
566 if (in_array($answer['value1'], $aggregate)) {
567 $aggregate[$answer['value1']] = $aggregate[$answer['value1']] + 1;
568 } else {
569 $aggregate[$answer['value1']] = 1;
570 }
571 }
572
573 return $aggregate;
574 }
575
581 public function renderAggregateView($aggregate)
582 {
583 $tpl = new ilTemplate('tpl.il_as_aggregated_answers_table.html', true, true, "Modules/TestQuestionPool");
584
585 foreach ($aggregate as $key => $line_data) {
586 $tpl->setCurrentBlock('aggregaterow');
587 $tpl->setVariable('COUNT', $line_data);
588 $tpl->setVariable('OPTION', $key);
589 $tpl->parseCurrentBlock();
590 }
591 return $tpl;
592 }
593
594 public function getAnswersFrequency($relevantAnswers, $questionIndex)
595 {
596 $answers = array();
597
598 foreach ($relevantAnswers as $ans) {
599 $md5 = md5($ans['value1']);
600
601 if (!isset($answers[$md5])) {
602 $answer = str_replace(
603 $this->object->getAnswerSeparator(),
604 '&nbsp;&nbsp;-&nbsp;&nbsp;',
605 $ans['value1']
606 );
607
608 $answers[$md5] = array(
609 'answer' => $answer, 'frequency' => 0
610 );
611 }
612
613 $answers[$md5]['frequency']++;
614 }
615
616 return $answers;
617 }
618
620 {
621 // points
622 $points = new ilNumberInputGUI($this->lng->txt("points"), "points");
623
624 $points->allowDecimals(true);
625 $points->setValue($this->object->getPoints());
626 $points->setRequired(true);
627 $points->setSize(3);
628 $points->setMinValue(0.0);
629 $points->setMinvalueShouldBeGreater(true);
630 $form->addItem($points);
631 }
632
637 {
638 $this->object->setPoints((float) $form->getInput('points'));
639 }
640}
$_GET["client_id"]
$_POST["username"]
$_SESSION["AccountId"]
An exception for terminatinating execution or to throw for unit testing.
The assOrderingHorizontalGUI class encapsulates the GUI representation for horizontal ordering questi...
aggregateAnswers($relevant_answers_chosen, $answer_defined_on_question)
populateCorrectionsFormProperties(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.
getPreview($show_question_only=false, $showInlineFeedback=false)
saveCorrectionsFormProperties(ilPropertyFormGUI $form)
writePostData($always=false)
{Evaluates a posted edit form and writes the form data in the question object.integer A positive valu...
getAggregatedAnswersView($relevant_answers)
Returns an html string containing a question specific representation of the answers so far given in t...
setQuestionTabs()
Sets the ILIAS tabs for this question type.
getTestOutput($active_id, $pass, $is_postponed=false, $use_post_solutions=false, $show_feedback=false)
editQuestion($checkonly=false)
Creates an output of the edit form for the question.
writeQuestionSpecificPostData(ilPropertyFormGUI $form)
Extracts the question specific values from $_POST and applies them to the data object.
populateQuestionSpecificFormPart(\ilPropertyFormGUI $form)
getAnswersFrequency($relevantAnswers, $questionIndex)
saveFeedback()
Saves the feedback for a single choice question.
__construct($id=-1)
assOrderingHorizontalGUI constructor
getSpecificFeedbackOutput($userSolution)
Returns the answer specific feedback for the question.
supportsIntermediateSolutionOutput()
Question type specific support of intermediate solution output The function getSolutionOutput respect...
getAfterParticipationSuppressionQuestionPostVars()
Returns a list of postvars which will be suppressed in the form output when used in scoring adjustmen...
Class for horizontal ordering questions.
Basic GUI class for assessment questions.
populateTaxonomyFormSection(ilPropertyFormGUI $form)
setErrorMessage($errormessage)
addTab_QuestionHints(ilTabsGUI $tabs)
adds the hints tab to ilTabsGUI
addQuestionFormCommandButtons($form)
Add the command buttons of a question properties form.
getILIASPage($html="")
Returns the ILIAS Page around a question.
getQuestionTemplate()
get question template
addTab_SuggestedSolution(ilTabsGUI $tabs, $classname)
outQuestionPage($a_temp_var, $a_postponed=false, $active_id="", $html="", $inlineFeedbackEnabled=false)
output question page
getUseIntermediateSolution()
Get if intermediate solution should be used for solution output.
addBackTab(ilTabsGUI $ilTabs)
hasCorrectSolution($activeId, $passIndex)
addTab_QuestionFeedback(ilTabsGUI $tabs)
adds the feedback tab to ilTabsGUI
addBasicQuestionFormProperties($form)
Add basic question form properties: assessment: title, author, description, question,...
addTab_QuestionPreview(ilTabsGUI $tabsGUI)
getGenericFeedbackOutput($active_id, $pass)
Returns the answer specific feedback for the question.
This class represents a number property in a property form.
This class represents a property form user interface.
addItem($a_item)
Add Item (Property, SectionHeader).
getInput($a_post_var, $ensureValidation=true)
Returns the value of a HTTP-POST variable, identified by the passed id.
special template class to simplify handling of ITX/PEAR
This class represents a text area property in a property form.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
static initjQueryUI($a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components....
Interface ilGuiQuestionScoringAdjustable.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$url
$errors
$DIC
Definition: xapitoken.php:46