37 require_once
"classes/class.ilObject.php";
54 $this->
ilObject($a_id,$a_call_by_reference);
167 $q =
"UPDATE file_based_lm SET ".
169 " startfile = ".$ilDB->quote($this->
getStartFile()).
" ".
170 " WHERE id = ".$ilDB->quote($this->
getId()).
" ";
171 $this->ilias->db->query($q);
185 $q =
"SELECT * FROM file_based_lm WHERE id = ".$ilDB->quote($this->
getId());
186 $lm_set = $this->ilias->db->query($q);
198 include_once(
"./Modules/LearningModule/classes/class.ilBibItem.php");
201 $this->bib_obj->read();
226 $q =
"INSERT INTO file_based_lm (id, online, startfile) VALUES ".
227 " (".$ilDB->quote($this->getID()).
",".$ilDB->quote(
"n").
",".
228 $ilDB->quote(
"").
")";
237 $lm_dir = $lm_data_dir.
"/lm_".$this->
getId();
249 return $this->start_file;
254 $this->start_file = $a_file;
259 $this->online = $a_online;
264 return $this->online;
274 $q =
"SELECT * FROM file_based_lm WHERE id = ".$ilDB->quote($a_id);
275 $lm_set = $this->ilias->db->query($q);
298 if (!parent::delete())
314 include_once(
"classes/class.ilNestedSetXML.php");
316 $nested->init($this->
getId(),
"bib");
317 $nested->deleteAllDBData();
320 $q =
"DELETE FROM file_based_lm WHERE id = ".
321 $ilDB->quote($this->getID());
353 return $roles ? $roles : array();
369 function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
409 if ($a_node_id==
$_GET[
"ref_id"])
411 $parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
412 $parent_type = $parent_obj->getType();
413 if($parent_type == $this->
getType())
415 $a_node_id = (int) $tree->getParentId($a_node_id);
419 parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);