39 bool $a_validation =
false,
40 bool $a_oh_mode =
false 43 $this->main_tpl = $DIC->ui()->mainTemplate();
45 $this->
ctrl = $DIC->ctrl();
46 $this->
lng = $DIC->language();
47 $this->
access = $DIC->access();
56 $ilCtrl = $DIC->ctrl();
57 $lng = $DIC->language();
60 $this->
setId(
"lm_expids");
61 $this->validation = $a_validation;
68 $this->parent_obj->getObject()->getId(),
74 $this->parent_obj->getObject()->getId()
84 $this->
setRowTemplate(
"tpl.export_id_row.html",
"Modules/LearningModule");
93 $this->online_help_mode = $a_val;
101 protected function fillRow(array $a_set): void
105 $this->tpl->setVariable(
"VAL_TITLE", $a_set[
"title"]);
106 $this->tpl->setVariable(
"PAGE_ID", $a_set[
"obj_id"]);
109 $this->parent_obj->getObject()->getId(),
114 $req_export_ids = $this->request->getExportIds();
115 if ($this->validation) {
118 trim($req_export_ids[$a_set[
"obj_id"]])
121 $this->tpl->setVariable(
123 " style='background-color: #FCEAEA;' " 125 $this->tpl->setVariable(
138 $this->tpl->setVariable(
145 $this->tpl->setVariable(
151 if (($this->cnt_exp_ids[$exp_id] ?? 0) > 1) {
152 $this->tpl->setVariable(
154 $lng->
txt(
"cont_exp_id_used_multiple")
156 $this->tpl->setVariable(
168 if (!$this->dup_info_given) {
169 $this->main_tpl->setOnScreenMessage(
'info',
$lng->
txt(
"content_some_export_ids_multiple_times"));
170 $this->dup_info_given =
true;
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)
static getExportId(int $a_lm_id, int $a_lmobj_id, string $a_type="pg")
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
EditingGUIRequest $request
static img(string $a_src, ?string $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static getChapterList(int $a_lm_id)
setDefaultOrderField(string $a_defaultorderfield)
ilGlobalTemplateInterface $main_tpl
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setOnlineHelpMode(bool $a_val)
static getPageList(int $lm_id)
__construct(Container $dic, ilPlugin $plugin)
static getDuplicateExportIDs(int $a_lm_id, string $a_type="pg")
Get duplicate export IDs (count export ID usages)
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)
__construct(object $a_parent_obj, string $a_parent_cmd, bool $a_validation=false, bool $a_oh_mode=false)