37 string $a_obj_type =
null
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");
108 $this->tpl->setVariable(
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) {
Class ilCtrl provides processing control methods.
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
getFormAction(object $a_gui_obj, string $a_fallback_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
@classDescription Date and time handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setObjType(string $a_obj_type)
createInfoText(array $a_set)
format info parameters into info text
setCommentVisibility(bool $a_visible)
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_obj_id, string $a_obj_type=null)
fillRow(array $a_set)
Standard Version of Fill Row.
static _getEntriesForObject(int $a_obj_id, string $a_obj_type="")
get all history entries for an object
static _lookupType(int $id, bool $reference=false)
static _lookupTitle(int $obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setFormAction(string $a_form_action, bool $a_multipart=false)
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)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setData(array $a_data)
Set table data.
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:
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc