ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilDclBooleanRecordRepresentation.php
Go to the documentation of this file.
1 <?php
2 
10 {
11 
19  public function getHTML($link = true)
20  {
21  $value = $this->getRecordField()->getValue();
22  switch ($value) {
23  case 0:
24  $im = ilUtil::getImagePath('icon_not_ok.svg');
25  break;
26  case 1:
27  $im = ilUtil::getImagePath('icon_ok.svg');
28  break;
29  }
30  return "<img src='" . $im . "'>";
31  }
32 }
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.