24 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
25 require_once(
"./Services/COPage/classes/class.ilPageObject.php");
65 $this->mobs_contained = array();
66 $this->files_contained = array();
79 if(is_object($this->page_object))
81 unset($this->page_object);
92 $this->page_object =
new ilPageObject($this->slm_object->getType(),
101 function create($a_upload =
false,$a_layout_id = 0)
106 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php");
107 if(!is_object($this->page_object))
109 $this->page_object =&
new ilSCORM2004Page($this->slm_object->getType());
112 $this->page_object->setParentId($this->
getSLMId());
113 if ($a_layout_id == 0) {
114 $this->page_object->create($a_upload);
116 $this->page_object->createWithLayoutId($a_layout_id);
125 function delete($a_delete_meta_data =
true)
128 $this->page_object->delete();
139 $slm_page->setTitle($this->
getTitle());
140 $slm_page->setSLMId($a_target_slm->getId());
141 $slm_page->setType($this->
getType());
143 $slm_page->setImportId(
"il__page_".$this->
getId());
144 $slm_page->create(
true);
147 include_once(
"Services/MetaData/classes/class.ilMD.php");
149 $new_md = $md->cloneMD($a_target_slm->getId(), $slm_page->getId(), $this->
getType());
152 $page = $slm_page->getPageObject();
153 $page->setXMLContent($this->page_object->copyXMLContent());
197 function _splitPage($a_page_id, $a_pg_parent_type, $a_hier_id)
322 $this->page_object =& $a_page_obj;
362 $this->is_alias = $a_is_alias;
367 return $this->is_alias;
373 return $this->origin_id = $a_id;
379 return $this->origin_id;
474 return $this->mobs_contained;
484 return $this->files_contained;