コード例 #1
0
 /**
  * Fill a single data row.
  */
 protected function fillRow($a_set)
 {
     $this->tpl->setVariable('TYPE_IMG', ilObject::_getIcon('', 'tiny', $a_set['type']));
     $this->tpl->setVariable('IMG_ALT', $this->lng->txt('obj_' . $a_set['type']));
     $this->tpl->setVariable("VAL_POSTNAME", "items");
     $this->tpl->setVariable("VAL_ID", $a_set['ref_id']);
     if (in_array($a_set['ref_id'], $this->getMaterialItems())) {
         $this->tpl->setVariable("VAL_CHECKED", "checked");
     }
     $this->tpl->setVariable("COLL_TITLE", $a_set['title']);
     if (strlen($a_set['description'])) {
         $this->tpl->setVariable("COLL_DESC", $a_set['description']);
     }
     $this->tpl->setVariable("ASSIGNED_IMG_OK", in_array($a_set['ref_id'], $this->getMaterialItems()) ? ilUtil::getImagePath('icon_ok.svg') : ilUtil::getImagePath('icon_not_ok.svg'));
     $this->tpl->setVariable("ASSIGNED_STATUS", $this->lng->txt('event_material_assigned'));
     include_once './Services/Tree/classes/class.ilPathGUI.php';
     $path = new ilPathGUI();
     $path->enableDisplayCut(true);
     $path->enableTextOnly(false);
     $this->tpl->setVariable("PATH", $this->lng->txt('path'));
     $this->tpl->setVariable("COLL_PATH", $path->getPath($this->getContainerRefId(), $a_set['ref_id']));
 }