4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
24 public function __construct($a_parent_obj, $a_parent_cmd, $a_id)
26 $this->
setId(
'obj_table_'.$a_id);
27 parent::__construct($a_parent_obj, $a_parent_cmd,
'');
37 $this->show_path = $a_status;
61 $this->row_selection_input = $a_stat;
78 $this->tpl->setCurrentBlock(
'row_selection_input');
79 $this->tpl->setVariable(
'OBJ_INPUT_TYPE',
'checkbox');
80 $this->tpl->setVariable(
'OBJ_INPUT_NAME',
'id[]');
81 $this->tpl->setVariable(
'OBJ_INPUT_VALUE',$set[
'ref_id']);
92 $this->objects = $a_ref_ids;
114 $this->
addColumn($this->lng->txt(
'type'),
'type',
'30px');
115 $this->
addColumn($this->lng->txt(
'title'),
'title');
118 $this->
setRowTemplate(
'tpl.object_table_row.html',
'Services/Object');
128 include_once
'./Services/Link/classes/class.ilLink.php';
135 $this->tpl->setVariable(
'OBJ_LINK',
ilLink::_getLink($set[
'ref_id'], $set[
'type']));
136 $this->tpl->setVariable(
'OBJ_LINKED_TITLE',$set[
'title']);
138 $this->tpl->setVariable(
'TYPE_STR',$this->lng->txt(
'obj_'.$set[
'type']));
143 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
147 $this->tpl->setCurrentBlock(
'path');
148 $this->tpl->setVariable(
'OBJ_PATH',$path_gui->getPath(ROOT_FOLDER_ID, $set[
'ref_id']));
149 $this->tpl->parseCurrentBlock();
174 $GLOBALS[
'ilLog']->write(__METHOD__.
': '.print_r($set,TRUE));
Creates a path for a start and endnode.
fillRow($set)
fill table rows
__construct($a_parent_obj, $a_parent_cmd, $a_id)
Constructor.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
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.
Create styles array
The data for the language used.
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