4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
5 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
6 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
7 include_once
'./Services/Container/classes/class.ilContainerSorting.php';
8 include_once
'./Services/Container/classes/class.ilContainer.php';
9 include_once
'./Services/Container/classes/class.ilContainerSorting.php';
10 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
33 public function __construct($a_parent_obj, $a_parent_cmd, $a_sorting =
false)
38 $ilAccess = $DIC[
'ilAccess'];
41 parent::__construct($a_parent_obj, $a_parent_cmd);
44 if ($ilAccess->checkAccess(
'write',
'', $this->getParentObject()->object->getRefId())) {
45 $this->editable =
true;
74 $this->
setRowTemplate(
"tpl.webr_link_row.html",
'Modules/WebResource');
86 $this->link_sort_enabled = $a_status;
109 include_once
"Services/Form/classes/class.ilFormPropertyGUI.php";
110 include_once
"Services/Form/classes/class.ilLinkInputGUI.php";
113 foreach ($items as $link) {
120 $tmp[
'position'] = ($counter++) * 10;
121 $tmp[
'title'] = $link[
'title'];
122 $tmp[
'description'] = $link[
'description'];
123 $tmp[
'target'] = $link[
'target'];
124 $tmp[
'link_id'] = $link[
'link_id'];
144 $this->tpl->setVariable(
'TITLE', $a_set[
'title']);
145 if (strlen($a_set[
'description'])) {
146 $this->tpl->setVariable(
'DESCRIPTION', $a_set[
'description']);
149 $this->tpl->setVariable(
151 $ilCtrl->getLinkTarget($this->parent_obj,
"callLink")
154 if (!$a_set[
'internal']) {
155 $this->tpl->setVariable(
'FRAME',
' target="_blank"');
156 $this->tpl->touchBlock(
'noopener');
164 $this->tpl->setVariable(
'VAL_POS', $a_set[
'position']);
165 $this->tpl->setVariable(
'VAL_ITEM', $a_set[
'link_id']);
169 $actions->setSelectionHeaderClass(
"small");
170 $actions->setItemLinkClass(
"xsmall");
172 $actions->setListTitle(
$lng->txt(
'actions'));
173 $actions->setId($a_set[
'link_id']);
181 $lng->txt(
'webr_deactivate'),
190 $this->tpl->setVariable(
'ACTION_HTML', $actions->getHTML());
TableGUI class for search results.
enableLinkSorting($a_status)
Enable sorting of links.
isLinkSortingEnabled()
Check if link sorting is enabled.
setEnableNumInfo($a_val)
Set enable num info.
getParentObject()
Get parent object.
isEditable()
Check if links are editable.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
User interface class for advanced drop-down selection lists.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
getWebResourceItems()
Get Web resource items object.
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.
Class ilObjLinkResourceGUI.
setEnableHeader($a_enableheader)
Set Enable Header.
__construct($a_parent_obj, $a_parent_cmd, $a_sorting=false)
Constructor.
static _lookupSortMode($a_obj_id)
lookup sort mode
setEnableTitle($a_enabletitle)
Set Enable Title.
setLimit($a_limit=0, $a_default_limit=0)