ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.svg');
26  break;
27  case 1:
28  $im = ilUtil::getImagePath('icon_ok.svg');
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.