37 require_once
"classes/class.ilObject.php";
54 $this->
ilObject($a_id,$a_call_by_reference);
167 $ilDB->manipulate(
"UPDATE file_based_lm SET ".
168 " is_online = ".$ilDB->quote(
ilUtil::tf2yn($this->getOnline()),
"text").
",".
169 " startfile = ".$ilDB->quote($this->
getStartFile(),
"text").
" ".
170 " WHERE id = ".$ilDB->quote($this->
getId(),
"integer"));
184 $q =
"SELECT * FROM file_based_lm WHERE id = ".$ilDB->quote($this->
getId(),
"integer");
185 $lm_set = $ilDB->query(
$q);
186 $lm_rec = $ilDB->fetchAssoc($lm_set);
197 include_once(
"./Modules/LearningModule/classes/class.ilBibItem.php");
200 $this->bib_obj->read();
216 $ilDB->manipulate(
"INSERT INTO file_based_lm (id, is_online, startfile) VALUES ".
217 " (".$ilDB->quote($this->getID(),
"integer").
",".
218 $ilDB->quote(
"n",
"text").
",".
219 $ilDB->quote(
"",
"text").
")");
227 $lm_dir = $lm_data_dir.
"/lm_".$this->
getId();
239 return $this->start_file;
244 $this->start_file = $a_file;
249 $this->online = $a_online;
254 return $this->online;
264 $q =
"SELECT * FROM file_based_lm WHERE id = ".$ilDB->quote($a_id,
"integer");
265 $lm_set = $ilDB->query(
$q);
266 $lm_rec = $ilDB->fetchAssoc($lm_set);
279 require_once(
"./Modules/HTMLLearningModule/classes/class.ilObjFileBasedLMAccess.php");
300 if (!parent::delete())
316 include_once(
"classes/class.ilNestedSetXML.php");
318 $nested->init($this->
getId(),
"bib");
319 $nested->deleteAllDBData();
322 $ilDB->manipulate(
"DELETE FROM file_based_lm WHERE id = ".
323 $ilDB->quote($this->getID(),
"integer"));
354 return $roles ? $roles : array();
370 function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
410 if ($a_node_id==
$_GET[
"ref_id"])
412 $parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
413 $parent_type = $parent_obj->getType();
414 if($parent_type == $this->
getType())
416 $a_node_id = (int) $tree->getParentId($a_node_id);
420 parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);