ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilAssOrderingTextsInputGUI.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 'Services/Form/classes/class.ilMultipleTextsInputGUI.php';
5
13{
17 public function __construct(ilAssOrderingFormValuesObjectsConverter $converter, $postVar)
18 {
19 require_once 'Modules/TestQuestionPool/classes/forms/class.ilAssOrderingDefaultElementFallback.php';
20 $manipulator = new ilAssOrderingDefaultElementFallback();
21 $this->addFormValuesManipulator($manipulator);
22
23 parent::__construct('', $postVar);
24
25 $this->addFormValuesManipulator($converter);
26 }
27
33 public function setStylingDisabled($stylingDisabled)
34 {
35 }
36
42 public function getStylingDisabled()
43 {
44 return false;
45 }
46
50 public function setElementList(ilAssOrderingElementList $elementList)
51 {
53 }
54
59 public function getElementList($questionId)
60 {
61 require_once 'Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElementList.php';
63 }
64
69 protected function valueHasContentText($value)
70 {
71 if ($value === null || is_array($value)) {
72 return false;
73 }
74
75 if (is_object($value) && $value instanceof ilAssOrderingElement) {
76 return (bool) strlen((string) $value);
77 }
78
79 return (bool) strlen($value);
80 }
81}
An exception for terminatinating execution or to throw for unit testing.
static buildInstance($questionId, $orderingElements=array())
__construct(ilAssOrderingFormValuesObjectsConverter $converter, $postVar)
ilAssOrderingTextsInputGUI constructor.
setElementList(ilAssOrderingElementList $elementList)
setStylingDisabled($stylingDisabled)
FOR COMPATIBILITY ONLY.
addFormValuesManipulator(ilFormValuesManipulator $manipulator)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc