ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilADTMultiTextPresentationBridge.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 protected function isValidADT(ilADT $a_adt): bool
24 {
25 return ($a_adt instanceof ilADTMultiText);
26 }
27
28 public function getHTML(): string
29 {
30 if (!$this->getADT()->isNull()) {
31 $res = array();
32 foreach ($this->getADT()->getTextElements() as $item) {
33 if (trim($item)) {
34 $res[] = $this->decorate($item);
35 }
36 }
37 return implode(", ", $res);
38 }
39 return '';
40 }
41
42 public function getSortable()
43 {
44 if (!$this->getADT()->isNull()) {
45 return implode(";", $this->getADT()->getTextElements());
46 }
47 return '';
48 }
49}
ADT presentation bridge base class.
ADT base class.
Definition: class.ilADT.php:26
$res
Definition: ltiservices.php:69