ILIAS  release_8 Revision v8.24
class.ilADTTextPresentationBridge.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6{
7 protected function isValidADT(ilADT $a_adt): bool
8 {
9 return ($a_adt instanceof ilADTText);
10 }
11
12 public function getHTML(): string
13 {
14 if (!$this->getADT()->isNull()) {
15 return $this->decorate(nl2br($this->getADT()->getText()));
16 }
17 return '';
18 }
19
20 public function getSortable()
21 {
22 if (!$this->getADT()->isNull()) {
23 return strtolower($this->getADT()->getText());
24 }
25 return '';
26 }
27}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getSortable()
Get sortable value presentation.
ADT base class.
Definition: class.ilADT.php:12