ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
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
43 public function setElementList(ilAssOrderingElementList $elementList): void
44 {
46 }
47
52 public function getElementList($questionId): ilAssOrderingElementList
53 {
55 }
56
61 protected function valueHasContentText($value): bool
62 {
63 if ($value === null || is_array($value)) {
64 return false;
65 }
66
67 if ($value instanceof ilAssOrderingElement) {
68 return (bool) strlen((string) $value);
69 }
70
71 return (bool) strlen($value);
72 }
73}
static buildInstance(int $question_id, array $elements=[])
__construct(ilAssOrderingFormValuesObjectsConverter $converter, $postVar)
ilAssOrderingTextsInputGUI constructor.
setElementList(ilAssOrderingElementList $elementList)
addFormValuesManipulator(ilFormValuesManipulator $manipulator)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc