ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
4 require_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 }
static buildInstance($questionId, $orderingElements=array())
getStylingDisabled()
FOR COMPATIBILITY ONLY.
__construct(ilAssOrderingFormValuesObjectsConverter $converter, $postVar)
ilAssOrderingTextsInputGUI constructor.
setStylingDisabled($stylingDisabled)
FOR COMPATIBILITY ONLY.
setElementList(ilAssOrderingElementList $elementList)
addFormValuesManipulator(ilFormValuesManipulator $manipulator)