ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilDclBooleanRecordRepresentation.php
Go to the documentation of this file.
1 <?php
2 
10 {
11 
20  public function getHTML($link = true)
21  {
22  $value = $this->getRecordField()->getValue();
23  switch ($value) {
24  case 0:
25  $im = ilUtil::getImagePath('icon_not_ok_monochrome.svg', "/Modules/DataCollection");
26  break;
27  case 1:
28  $im = ilUtil::getImagePath('icon_ok_monochrome.svg', "/Modules/DataCollection");
29  break;
30  }
31 
32  return "<img src='" . $im . "'>";
33  }
34 }
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Class ilDclBaseRecordRepresentation.
Class ilDclBooleanRecordRepresentation.
getHTML($link=true)
Outputs html of a certain field.