ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  }
37 
43  public function getStylingDisabled()
44  {
45  return false;
46  }
47 
51  public function setElementList(ilAssOrderingElementList $elementList)
52  {
54  }
55 
60  public function getElementList($questionId)
61  {
62  require_once 'Modules/TestQuestionPool/classes/questions/class.ilAssOrderingElementList.php';
64  }
65 
70  protected function valueHasContentText($value)
71  {
72  if( $value === null || is_array($value) )
73  {
74  return false;
75  }
76 
77  if( is_object($value) && $value instanceof ilAssOrderingElement )
78  {
79  return (bool)strlen( (string)$value );
80  }
81 
82  return (bool)strlen($value);
83  }
84 }
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)