5 require_once
"./Services/Object/classes/class.ilObject2.php";
47 $id = $ilDB->nextId(
"help_module");
49 $ilDB->manipulate(
"INSERT INTO help_module ".
51 $ilDB->quote(
$id,
"integer").
67 $ilDB->manipulate(
"UPDATE help_module SET ".
68 " lm_id = ".$ilDB->quote($a_lm_id,
"integer").
69 " WHERE id = ".$ilDB->quote($a_id,
"integer")
85 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
87 $newObj->setType(
"lm");
88 $newObj->setTitle(
"Help Module");
89 $newObj->create(
true);
90 $newObj->createLMTree();
95 $mess = $newObj->importFromZipFile($a_file[
"tmp_name"], $a_file[
"name"],
109 $set = $ilDB->query(
"SELECT * FROM help_module");
112 while ($rec = $ilDB->fetchAssoc($set))
136 $set = $ilDB->query(
"SELECT * FROM help_module ".
137 " WHERE id = ".$ilDB->quote($a_id,
"integer")
139 $rec = $ilDB->fetchAssoc($set);
157 $set = $ilDB->query(
"SELECT lm_id FROM help_module ".
158 " WHERE id = ".$ilDB->quote($a_id,
"integer")
160 $rec = $ilDB->fetchAssoc($set);
161 return $rec[
"lm_id"];
175 if ($a_id == (
int) $ilSetting->get(
"help_module"))
177 $ilSetting->set(
"help_module",
"");
180 $set = $ilDB->query(
"SELECT * FROM help_module ".
181 " WHERE id = ".$ilDB->quote($a_id,
"integer")
183 $rec = $ilDB->fetchAssoc($set);
188 include_once(
"./Modules/LearningModule/classes/class.ilObjLearningModule.php");
194 include_once(
"./Services/Help/classes/class.ilHelpMapping.php");
198 include_once(
"./Services/Help/classes/class.ilHelp.php");
202 $ilDB->manipulate(
"DELETE FROM help_module WHERE ".
203 " id = ".$ilDB->quote($a_id,
"integer"));