37 $this->
ctrl = $DIC->ctrl();
38 $this->
lng = $DIC->language();
39 $this->
access = $DIC->access();
40 $ilCtrl = $DIC->ctrl();
41 $lng = $DIC->language();
56 if ($this->lm->getLayoutPerPage()) {
63 $this->
setRowTemplate(
"tpl.page_list_row.html",
"Modules/LearningModule");
70 if ($this->lm->getLayoutPerPage()) {
82 protected function fillRow(array $a_set): void
93 (bool) $this->lm_set->get(
"time_scheduled_page_activation")
97 $img_sc = ($this->lm_set->get(
"time_scheduled_page_activation") &&
103 $img =
"icon_pg_d" . $img_sc .
".svg";
104 $alt =
$lng->
txt(
"cont_page_deactivated");
110 $img =
"icon_pg_del" . $img_sc .
".svg";
111 $alt =
$lng->
txt(
"cont_page_deactivated_elements");
113 $img =
"icon_pg" . $img_sc .
".svg";
114 $alt = $this->
lng->txt(
"pg");
120 $ilCtrl->setParameter($this,
"backcmd", null);
121 $ilCtrl->setParameterByClass(
"ilLMPageObjectGUI",
"obj_id", $a_set[
"obj_id"]);
122 $this->tpl->setVariable(
124 $ilCtrl->getLinkTargetByClass(
"ilLMPageObjectGUI",
"edit")
126 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
127 $this->tpl->setVariable(
"ID", $a_set[
"obj_id"]);
130 if ($this->lm->lm_tree->isInTree($a_set[
"obj_id"])) {
131 $path_str = $this->parent_obj->getContextPath($a_set[
"obj_id"]);
138 if ($a_set[
"obj_id"] == $this->lm->getHeaderPage()) {
139 $add_str =
" <b>(" .
$lng->
txt(
"cont_header") .
")</b>";
141 if ($a_set[
"obj_id"] == $this->lm->getFooterPage()) {
142 $add_str .=
" <b>(" .
$lng->
txt(
"cont_footer") .
")</b>";
145 $this->tpl->setVariable(
"USAGE", $path_str . $add_str);
148 if ($this->lm->getLayoutPerPage()) {
150 $this->tpl->setVariable(
static _lookupActive(int $a_id, string $a_parent_type, bool $a_check_scheduled_activation=false, string $a_lang="-")
lookup activation status
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _isScheduledActivation(int $a_id, string $a_parent_type, string $a_lang="-")
Check whether page is activated by time schedule.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
__construct(object $a_parent_obj, string $a_parent_cmd, ilObjLearningModule $a_lm)
static img(string $a_src, ?string $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static _lookupContainsDeactivatedElements(int $a_id, string $a_parent_type, string $a_lang="-")
lookup whether page contains deactivated elements
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
static getContentObjectType()
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
static getPageList(int $lm_id)
__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)
static lookupLayout(int $a_obj_id)
Lookup type.
addMultiCommand(string $a_cmd, string $a_text)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...