ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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=[])
__construct(ilAssOrderingFormValuesObjectsConverter $converter, $postVar)
ilAssOrderingTextsInputGUI constructor.
setElementList(ilAssOrderingElementList $elementList)
setStylingDisabled($stylingDisabled)
FOR COMPATIBILITY ONLY.
addFormValuesManipulator(ilFormValuesManipulator $manipulator)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc