37 string $a_obj_type = null
41 $ilCtrl = $DIC->ctrl();
68 protected function fillRow(array $a_set): void
71 $this->tpl->setVariable(
75 $this->tpl->setVariable(
"TXT_ACTION", $this->
createInfoText($a_set));
78 $obj_arr = explode(
":", $a_set[
"obj_type"]);
79 switch ($obj_arr[1] ??
"") {
82 $class =
"ilstructureobjectgui";
88 $class =
"illmpageobjectgui";
93 $img_type = $obj_arr[0] ??
"";
99 $this->tpl->setCurrentBlock(
"item_icon");
100 $this->tpl->setVariable(
"SRC_ICON",
103 $this->tpl->parseCurrentBlock();
106 $this->tpl->setCurrentBlock(
"item_link");
107 $this->
ilCtrl->setParameterByClass($class,
"obj_id", $a_set[
"obj_id"]);
108 $this->tpl->setVariable(
110 $this->
ilCtrl->getLinkTargetByClass($class, $cmd)
112 $this->tpl->setVariable(
"TXT_LINK", $a_set[
"title"]);
114 $this->tpl->setCurrentBlock(
"item_title");
115 $this->tpl->setVariable(
120 $this->tpl->parseCurrentBlock();
124 $this->tpl->setCurrentBlock(
"user_comment");
125 $this->tpl->setVariable(
"TXT_COMMENT", $this->
lng->txt(
"comment"));
126 $this->tpl->setVariable(
"TXT_USER_COMMENT", $a_set[
"user_comment"]);
127 $this->tpl->parseCurrentBlock();
136 $info_params = explode(
",", $a_set[
"info_params"]);
140 $info_text = $this->
lng->txt(
"hist_" . str_replace(
":",
"_", $a_set[
"obj_type"]) .
141 "_" . $a_set[
"action"]);
144 $info_text = $this->
lng->txt(
"hist_" . str_replace(
":",
"_", $this->
getObjType()) .
145 "_" . $a_set[
"action"]);
150 foreach ($info_params as $info_param) {
151 $info_text = str_replace(
"%" .
$i, $info_param, $info_text);
160 $this->comment_visibility = $a_visible;
170 $this->obj_id = $a_obj_id;
180 $this->obj_type = $a_obj_type;
185 if (!$this->obj_type) {
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link="", bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_obj_id, string $a_obj_type=null)
setFormAction(string $a_form_action, bool $a_multipart=false)
static _getEntriesForObject(int $a_obj_id, string $a_obj_type="")
get all history entries for an object
createInfoText(array $a_set)
format info parameters into info text
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
setCommentVisibility(bool $a_visible)
static _lookupTitle(int $obj_id)
setObjType(string $a_obj_type)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
static _lookupType(int $id, bool $reference=false)