ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilDclBooleanRecordRepresentation.php
Go to the documentation of this file.
1<?php
2
10
18 public function getHTML($link = true) {
19 $value = $this->getRecordField()->getValue();
20 switch ($value) {
21 case 0:
22 $im = ilUtil::getImagePath('icon_not_ok.svg');
23 break;
24 case 1:
25 $im = ilUtil::getImagePath('icon_ok.svg');
26 break;
27 }
28 return "<img src='" . $im . "'>";
29 }
30
31
32}
An exception for terminatinating execution or to throw for unit testing.
Class ilDclBaseRecordRepresentation.
Class ilDclBooleanRecordRepresentation.
getHTML($link=true)
Outputs html of a certain field.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)