4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
22 function __construct($a_parent_obj, $a_parent_cmd, $a_validation =
false,
28 $this->
setId(
"lm_expids");
29 $this->validation = $a_validation;
32 include_once(
"./Modules/LearningModule/classes/class.ilLMPageObject.php");
38 $this->parent_obj->object->getId(),
"st");
44 $this->parent_obj->object->getId());
47 $this->
setTitle($lng->txt(
"cont_html_export_ids"));
49 $this->
addColumn($this->lng->txt(
"pg"),
"title");
50 $this->
addColumn($this->lng->txt(
"cont_export_id"));
53 $this->
setRowTemplate(
"tpl.export_id_row.html",
"Modules/LearningModule");
67 $this->online_help_mode = $a_val;
87 $this->tpl->setVariable(
"VAL_TITLE", $a_set[
"title"]);
88 $this->tpl->setVariable(
"PAGE_ID", $a_set[
"obj_id"]);
91 $this->parent_obj->object->getId(), $a_set[
"obj_id"], $a_set[
"type"]);
93 if ($this->validation)
95 if (!preg_match(
"/^[a-zA-Z_]*$/",
96 trim(
$_POST[
"exportid"][$a_set[
"obj_id"]])))
99 $this->tpl->setVariable(
"STYLE",
100 " style='background-color: #FCEAEA;' ");
101 $this->tpl->setVariable(
"ALERT_IMG",
106 $this->tpl->setVariable(
"EXPORT_ID",
112 $this->tpl->setVariable(
"EXPORT_ID",
116 if ($this->cnt_exp_ids[$exp_id] > 1)
118 $this->tpl->setVariable(
"ITEM_ADD_TXT",
119 $lng->txt(
"cont_exp_id_used_multiple"));
120 $this->tpl->setVariable(
"ALERT_IMG",
124 if (!$this->dup_info_given)
127 $this->dup_info_given =
true;