ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilAssOrderingTextsInputGUI.php
Go to the documentation of this file.
1 <?php
2 
26 {
30  public function __construct(ilAssOrderingFormValuesObjectsConverter $converter, $postVar)
31  {
32  require_once 'Modules/TestQuestionPool/classes/forms/class.ilAssOrderingDefaultElementFallback.php';
33  $manipulator = new ilAssOrderingDefaultElementFallback();
34  $this->addFormValuesManipulator($manipulator);
35 
36  parent::__construct('', $postVar);
37 
38  $this->addFormValuesManipulator($converter);
39  }
40 
46  public function setStylingDisabled($stylingDisabled): void
47  {
48  }
49 
55  public function getStylingDisabled(): bool
56  {
57  return false;
58  }
59 
63  public function setElementList(ilAssOrderingElementList $elementList): void
64  {
66  }
67 
72  public function getElementList($questionId): ilAssOrderingElementList
73  {
75  }
76 
81  protected function valueHasContentText($value): bool
82  {
83  if ($value === null || is_array($value)) {
84  return false;
85  }
86 
87  if ($value instanceof ilAssOrderingElement) {
88  return (bool) strlen((string) $value);
89  }
90 
91  return (bool) strlen($value);
92  }
93 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static buildInstance(int $question_id, array $elements=[])
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)