3 declare(strict_types=1);
56 $this->
setTitle($this->
lng->txt(
"table_sequence_content"));
57 $this->
setRowTemplate(
"tpl.content_table.html",
"Modules/LearningSequence");
76 protected function fillRow(array $a_set):
void 83 $this->parent_gui->getFieldName($this->parent_gui::FIELD_ORDER, $ls_item->getRefId())
86 $ni->setValue((
string) (($ls_item->getOrderNumber() + 1) * 10));
88 if ($this->ls_item_online_status->hasOnlineStatus($ls_item->getRefId())) {
91 $this->parent_gui->getFieldName($this->parent_gui::FIELD_ONLINE, $ls_item->getRefId())
93 $cb->setChecked($ls_item->isOnline());
96 $cb->setChecked(
true);
97 $cb->setDisabled(
true);
99 $this->tpl->setVariable(
"ONLINE", $cb->render());
103 $this->parent_gui->getFieldName($this->parent_gui::FIELD_POSTCONDITION_TYPE, $ls_item->getRefId())
105 $options = $this->parent_gui->getPossiblePostConditionsForType($ls_item->getType());
107 $si->setOptions($options);
108 $si->setValue($ls_item->getPostCondition()->getConditionOperator());
111 $obj_link = $this->
getEditLink($ls_item->getRefId(), $ls_item->getType(), $action_items);
113 $title = $ls_item->getTitle();
115 '<a href="%s">%s</a>',
120 $this->tpl->setVariable(
"ID", $ls_item->getRefId());
122 $this->tpl->setVariable(
124 $this->ui_renderer->render(
125 $this->ui_factory->symbol()->icon()->custom(
126 $ls_item->getIconPath(),
128 )->withSize(
'medium')
132 $this->tpl->setVariable(
"ORDER", $ni->render());
133 $this->tpl->setVariable(
"TITLE", $title);
134 $this->tpl->setVariable(
"POST_CONDITIONS", $si->render());
135 $this->tpl->setVariable(
"ACTIONS", $this->
getItemActionsMenu($ls_item->getRefId(), $ls_item->getType()));
136 $this->tpl->setVariable(
"TYPE", $ls_item->getType());
143 $item_list_gui->initItem($ref_id, $item_obj_id, $type);
145 $item_list_gui->enableCut(
true);
146 $item_list_gui->enableDelete(
true);
147 $item_list_gui->enableLink(
true);
148 $item_list_gui->enableTimings(
false);
150 $item_list_gui->setContainerObject($this->container_gui);
152 return $item_list_gui->getCommandsHTML();
169 $item_list_gui->initItem($ref_id, $item_obj_id, $type);
170 return $item_list_gui->getCommands();
176 case $this->ls_item_online_status::S_LEARNMODULE_IL:
177 case $this->ls_item_online_status::S_LEARNMODULE_HTML:
178 case $this->ls_item_online_status::S_SURVEY:
179 $prop_for_type =
'properties';
182 case $this->ls_item_online_status::S_SAHS:
183 case $this->ls_item_online_status::S_CONTENTPAGE:
184 case $this->ls_item_online_status::S_EXERCISE:
185 case $this->ls_item_online_status::S_FILE:
186 $prop_for_type =
'edit';
189 case $this->ls_item_online_status::S_TEST:
190 $prop_for_type =
'ilObjTestSettingsGeneralGUI::showForm';
193 case $this->ls_item_online_status::S_IND_ASSESSMENT:
198 $props = array_filter(
200 fn ($action_item) => $action_item[
'cmd'] === $prop_for_type
204 return array_shift($props)[
'link'];
getListGuiFor(string $type)
LSItemOnlineStatus $ls_item_online_status
setTopCommands(bool $a_val)
__construct(ilObjLearningSequenceContentGUI $parent_gui, ilObjLearningSequenceGUI $container_gui, string $cmd, ilCtrl $ctrl, ilLanguage $lng, ilAccess $access, ILIAS\UI\Factory $ui_factory, ILIAS\UI\Renderer $ui_renderer, ilAdvancedSelectionListGUI $advanced_selection_list_gui, LSItemOnlineStatus $ls_item_online_status)
setFormAction(string $a_form_action, bool $a_multipart=false)
Class ChatMainBarProvider .
getItemActionsMenu(int $ref_id, string $type)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupObjId(int $ref_id)
ILIAS UI Renderer $ui_renderer
getActionMenuItems(int $ref_id, string $type)
setExternalSorting(bool $a_val)
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
fillRow(array $a_set)
Standard Version of Fill Row.
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setEnableAllCommand(bool $a_value)
getStdLink(int $ref_id, string $type)
static _getListGUIByType(string $type, int $context=ilObjectListGUI::CONTEXT_REPOSITORY)
static _getLink(?int $a_ref_id, string $a_type='', array $a_params=array(), string $append="")
ILIAS UI Factory $ui_factory
ilAdvancedSelectionListGUI $advanced_selection_list_gui
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
ilObjLearningSequenceGUI $container_gui
getEditLink(int $ref_id, string $type, array $action_items)
ilObjLearningSequenceContentGUI $parent_gui
__construct(Container $dic, ilPlugin $plugin)
setLimit(int $a_limit=0, int $a_default_limit=0)
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)
Class ilObjLearningSequenceGUI ilObjLearningSequenceGUI: ilRepositoryGUI ilObjLearningSequenceGUI: ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setEnableHeader(bool $a_enableheader)