4 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
5 require_once(
"./Services/COPage/classes/class.ilPageObject.php");
45 $this->mobs_contained = array();
46 $this->files_contained = array();
59 if(is_object($this->page_object))
61 unset($this->page_object);
72 $this->page_object =
new ilPageObject($this->slm_object->getType(),
81 function create($a_upload =
false,$a_layout_id = 0)
86 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php");
87 if(!is_object($this->page_object))
89 $this->page_object =&
new ilSCORM2004Page($this->slm_object->getType());
92 $this->page_object->setParentId($this->
getSLMId());
93 if ($a_layout_id == 0) {
94 $this->page_object->create($a_upload);
96 $this->page_object->createWithLayoutId($a_layout_id);
105 function delete($a_delete_meta_data =
true)
108 $this->page_object->delete();
119 $slm_page->setTitle($this->
getTitle());
120 $slm_page->setSLMId($a_target_slm->getId());
121 $slm_page->setType($this->
getType());
123 $slm_page->setImportId(
"il__page_".$this->
getId());
124 $slm_page->create(
true);
127 include_once(
"Services/MetaData/classes/class.ilMD.php");
129 $new_md = $md->cloneMD($a_target_slm->getId(), $slm_page->getId(), $this->
getType());
132 $page = $slm_page->getPageObject();
134 $clone_mobs = ($this->
getSLMId() == $a_target_slm->getId())
138 $page->setXMLContent($this->page_object->copyXMLContent($clone_mobs));
182 function _splitPage($a_page_id, $a_pg_parent_type, $a_hier_id)
307 $this->page_object =& $a_page_obj;
347 $this->is_alias = $a_is_alias;
352 return $this->is_alias;
358 return $this->origin_id = $a_id;
364 return $this->origin_id;
459 return $this->mobs_contained;
469 return $this->files_contained;