22 public function __construct($a_parent_obj, $a_parent_cmd, $a_id)
24 $this->
setId(
'obj_table_' . $a_id);
25 parent::__construct($a_parent_obj, $a_parent_cmd,
'');
34 $this->show_path = $a_status;
58 $this->row_selection_input = $a_stat;
75 $this->tpl->setCurrentBlock(
'row_selection_input');
76 $this->tpl->setVariable(
'OBJ_INPUT_TYPE',
'checkbox');
77 $this->tpl->setVariable(
'OBJ_INPUT_NAME',
'id[]');
78 $this->tpl->setVariable(
'OBJ_INPUT_VALUE', $set[
'ref_id']);
89 $this->objects = $a_ref_ids;
110 $this->
addColumn($this->lng->txt(
'type'),
'type',
'30px');
111 $this->
addColumn($this->lng->txt(
'title'),
'title');
114 $this->
setRowTemplate(
'tpl.object_table_row.html',
'Services/Object');
123 include_once
'./Services/Link/classes/class.ilLink.php';
129 $this->tpl->setVariable(
'OBJ_LINK',
ilLink::_getLink($set[
'ref_id'], $set[
'type']));
130 $this->tpl->setVariable(
'OBJ_LINKED_TITLE', $set[
'title']);
132 $this->tpl->setVariable(
'TYPE_STR', $this->lng->txt(
'obj_' . $set[
'type']));
136 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
140 $this->tpl->setCurrentBlock(
'path');
141 $this->tpl->setVariable(
'OBJ_PATH', $path_gui->getPath(ROOT_FOLDER_ID, $set[
'ref_id']));
142 $this->tpl->parseCurrentBlock();
155 if (
$type ==
'rolf') {
159 $set[$counter][
'ref_id'] = $ref_id;
Creates a path for a start and endnode.
fillRow($set)
fill table rows
__construct($a_parent_obj, $a_parent_cmd, $a_id)
Constructor.
static _lookupTitle($a_id)
lookup object title
setObjects($a_ref_ids)
set table content objects
static getTypeIconPath($a_type, $a_obj_id, $a_size='small')
Get type icon path path Return image path for icon_xxx.pngs Or (if enabled) path to custom icon Depre...
enableObjectPath($a_status)
static _lookupObjId($a_id)
getObjects()
get object ref_ids
enableRowSelectionInput($a_stat)
enabledRowSelectionInput()
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static _lookupType($a_id, $a_reference=false)
lookup object type
customizePath(ilPathGUI $path)
Customize path instance.
fillRowSelectionInput($set)
Fill row selection input.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
setOrderColumn($a_order_column=0, $a_default_column=0)
set order column public