19 declare(strict_types=1);
38 $this->
ui = $DIC->ui();
39 $this->
setId(
'obj_table_' . $id);
45 $this->show_path = $status;
60 $this->row_selection_input = $stat;
70 $this->tpl->setCurrentBlock(
'row_selection_input');
71 $this->tpl->setVariable(
'OBJ_INPUT_TYPE',
'checkbox');
72 $this->tpl->setVariable(
'OBJ_INPUT_NAME',
'id[]');
73 $this->tpl->setVariable(
'OBJ_INPUT_VALUE', $set[
'ref_id']);
81 $this->objects = $ref_ids;
92 public function init(): void
98 $this->
addColumn($this->
lng->txt(
'type'),
'type',
'30px');
102 $this->
setRowTemplate(
'tpl.object_table_row.html',
'Services/Object');
111 $type_icon = $this->
ui->factory()->symbol()->icon()->custom(
113 $this->
lng->txt(
'obj_' . $set[
'type'])
116 $this->tpl->setVariable(
'OBJ_LINK',
ilLink::_getLink($set[
'ref_id'], $set[
'type']));
117 $this->tpl->setVariable(
'OBJ_LINKED_TITLE', $set[
'title']);
118 $this->tpl->setVariable(
'TYPE_IMG', $this->
ui->renderer()->render($type_icon));
124 $this->tpl->setCurrentBlock(
'path');
125 $this->tpl->setVariable(
'OBJ_PATH', $path_gui->getPath(
ROOT_FOLDER_ID, (
int) $set[
'ref_id']));
126 $this->tpl->parseCurrentBlock();
136 if (
$type ==
'rolf') {
140 $set[$counter][
'ref_id'] =
$ref_id;
Creates a path for a start and endnode.
enableRowSelectionInput(bool $stat)
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
setObjects(array $ref_ids)
set table content objects
fillRowSelectionInput(array $set)
static _lookupObjId(int $ref_id)
Provides fluid interface to RBAC services.
static _lookupTitle(int $obj_id)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
getObjects()
get object ref_ids
static _getLink(?int $a_ref_id, string $a_type='', array $a_params=array(), string $append="")
enabledRowSelectionInput()
customizePath(ilPathGUI $path)
__construct(?object $parent_obj, string $parent_cmd, string $id)
__construct(Container $dic, ilPlugin $plugin)
bool $row_selection_input
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)
setOrderColumn(string $a_order_column="", string $a_default_column="")
enableObjectPath(bool $status)