39 $ilCtrl = $DIC[
'ilCtrl'];
42 $this->parent_obj = $a_parent_obj;
44 $this->ctrl = $ilCtrl;
51 $ilCtrl->setParameterByClass(
'ildcltableviewgui',
'table_id', $table->
getId());
52 $this->
setFormAction($ilCtrl->getFormActionByClass(
'ildcltableviewgui'));
62 $this->
setRowTemplate(
'tpl.tableview_list_row.html',
'Modules/DataCollection');
63 $this->
setData($this->table->getTableViews());
65 $this->
setRowTemplate(
'tpl.detailview_list_row.html',
'Modules/DataCollection');
66 $this->
setData($this->table->getVisibleTableViews($this->parent_obj->parent_obj->ref_id,
true));
71 $this->
addColumn(
$lng->txt(
'dcl_configuration_complete'), null,
'auto');
83 $this->
setId(
'dcl_tableviews');
85 $this->
setStyle(
'table', $this->
getStyle(
'table') .
' ' .
'dcl_record_list');
95 $this->tpl->setVariable(
"ID", $a_set->getId());
96 $this->tpl->setVariable(
"ORDER_NAME",
"order[{$a_set->getId()}]");
97 $this->tpl->setVariable(
"ORDER_VALUE", $a_set->getOrder());
99 $this->tpl->setVariable(
"TITLE", $a_set->getTitle());
100 $this->ctrl->setParameterByClass(
'ilDclTableViewEditGUI',
'tableview_id', $a_set->getId());
101 $this->tpl->setVariable(
"TITLE_LINK", $this->ctrl->getLinkTargetByClass(
'ilDclTableViewEditGUI'));
102 $this->tpl->setVariable(
"DESCRIPTION", $a_set->getDescription());
103 $this->tpl->setVariable(
"DCL_CONFIG",
106 $this->tpl->setVariable(
'ACTIONS', $this->
buildAction($a_set->getId()));
122 $alist->setListTitle($this->lng->txt(
'actions'));
123 $this->ctrl->setParameterByClass(
'ildcltableviewgui',
'tableview_id', $id);
124 $this->ctrl->setParameterByClass(
'ilDclDetailedViewDefinitionGUI',
'tableview_id', $id);
125 $alist->addItem($this->lng->txt(
'edit'),
'', $this->ctrl->getLinkTargetByClass(
'ildcltablevieweditgui',
'editGeneralSettings'));
126 $alist->addItem($this->lng->txt(
'copy'),
'', $this->ctrl->getLinkTargetByClass(
'ildcltablevieweditgui',
'copy'));
127 $alist->addItem($this->lng->txt(
'delete'),
'', $this->ctrl->getLinkTargetByClass(
'ildcltablevieweditgui',
'confirmDelete'));
129 return $alist->getHTML();
132 $this->ctrl->setParameterByClass(
'ilDclDetailedViewGUI',
'tableview_id', $id);
133 $this->ctrl->saveParameterByClass(
'ilDclDetailedViewGUI',
'record_id');
134 $button->setUrl($this->ctrl->getLinkTargetByClass(
'ilDclDetailedViewGUI',
'renderRecord'));
135 $button->setCaption(
'view');
137 return $button->getToolbarHTML();
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setExternalSorting($a_val)
Set external sorting.
setStyle($a_element, $a_style)
setShowTemplates($a_value)
Toggle templates.
setExternalSegmentation($a_val)
Set external segmentation.
__construct(ilDclTableViewGUI $a_parent_obj, $a_parent_cmd, ilDclTable $table)
ilDclTableViewTableGUI constructor.
Class ilDclBaseFieldModel.
Class ilDclTableViewTableGUI.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
buildAction($id)
build either actions menu or view button
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setFormName($a_formname="")
Set Form name.
__construct(Container $dic, ilPlugin $plugin)
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
setLimit($a_limit=0, $a_default_limit=0)