ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilAssOrderingTextsInputGUI.php
Go to the documentation of this file.
1 <?php
2 
26 {
30  public function __construct(ilAssOrderingFormValuesObjectsConverter $converter, $postVar)
31  {
32  $manipulator = new ilAssOrderingDefaultElementFallback();
33  $this->addFormValuesManipulator($manipulator);
34 
35  parent::__construct('', $postVar);
36 
37  $this->addFormValuesManipulator($converter);
38  }
39 
45  public function setStylingDisabled($stylingDisabled): void
46  {
47  }
48 
54  public function getStylingDisabled(): bool
55  {
56  return false;
57  }
58 
62  public function setElementList(ilAssOrderingElementList $elementList): void
63  {
65  }
66 
71  public function getElementList($questionId): ilAssOrderingElementList
72  {
74  }
75 
80  protected function valueHasContentText($value): bool
81  {
82  if ($value === null || is_array($value)) {
83  return false;
84  }
85 
86  if ($value instanceof ilAssOrderingElement) {
87  return (bool) strlen((string) $value);
88  }
89 
90  return (bool) strlen($value);
91  }
92 }
static buildInstance(int $question_id, array $elements=[])
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getStylingDisabled()
FOR COMPATIBILITY ONLY.
__construct(ilAssOrderingFormValuesObjectsConverter $converter, $postVar)
ilAssOrderingTextsInputGUI constructor.
setStylingDisabled($stylingDisabled)
FOR COMPATIBILITY ONLY.
__construct(Container $dic, ilPlugin $plugin)
setElementList(ilAssOrderingElementList $elementList)
addFormValuesManipulator(ilFormValuesManipulator $manipulator)