ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilADTTextPresentationBridge.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 ilADTText);
26 }
27
28 public function getHTML(): string
29 {
30 if (!$this->getADT()->isNull()) {
31 return $this->decorate(nl2br($this->getADT()->getText()));
32 }
33 return '';
34 }
35
36 public function getSortable()
37 {
38 if (!$this->getADT()->isNull()) {
39 return strtolower($this->getADT()->getText());
40 }
41 return '';
42 }
43}
ADT presentation bridge base class.
getSortable()
Get sortable value presentation.
ADT base class.
Definition: class.ilADT.php:26