72 $tpl =
new ilTemplate(
"tpl.timeline_item_inner.html",
true,
true,
"Services/LearningHistory");
74 $f = $this->
ui->factory();
75 $r = $this->
ui->renderer();
77 $ico =
$f->symbol()->icon()->custom($this->lh_entry->getIconPath(),
'')->withSize(\
ILIAS\
UI\
Component\Symbol\Icon\Icon::MEDIUM);
79 $obj_id = $this->lh_entry->getObjId();
81 if ($this->lh_entry->getRefId() == 0) {
84 $ref_ids = [$this->lh_entry->getRefId()];
87 foreach ($ref_ids as $ref_id) {
88 if ($readable_ref_id == 0 &&
$access->checkAccessOfUser($this->user_id,
"read",
"", $ref_id)) {
89 $readable_ref_id = $ref_id;
93 if ($readable_ref_id > 0) {
95 $parent_ref_id = $readable_ref_id;
97 $parent_ref_id = $this->tree->checkForParentType($readable_ref_id,
"crs",
true);
101 if ($parent_ref_id > 0) {
102 $text = $this->lh_entry->getAchieveInText();
105 $text = str_replace(
"$2$", $obj_placeholder, $text);
107 $text = $this->lh_entry->getAchieveText();
110 $obj_placeholder = ($readable_ref_id > 0)
113 $text = str_replace(
"$1$", $obj_placeholder, $text);
115 $tpl->setVariable(
"TEXT", $text);
116 $tpl->setVariable(
"ICON", $r->render($ico));
129 $tpl =
new ilTemplate(
"tpl.emphasized_title.php",
true,
true,
"Services/LearningHistory");
130 $tpl->setVariable(
"TITLE", $title);
__construct(ilLearningHistoryEntry $lh_entry, \ILIAS\DI\UIServices $ui, $user_id, ilAccessHandler $access, ilTree $tree)
Constructor ilLearningHistoryTimelineItem constructor.
Class ChatMainBarProvider .
renderFooter()
Render footer.
static _lookupTitle($a_id)
lookup object title
static _getAllReferences($a_id)
get all reference ids of object
getEmphasizedTitle($title)
Get emphasized title.
static _lookupObjId($a_id)
Interface for timeline items.
static _lookupType($a_id, $a_reference=false)
lookup object type
render()
Render item.string html
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")