4 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
5 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php");
38 parent::__construct($a_slm_object, $a_id);
42 $this->mobs_contained =
array();
43 $this->files_contained =
array();
56 if(is_object($this->page_object))
58 unset($this->page_object);
77 function create($a_upload =
false,$a_layout_id = 0)
79 parent::create($a_upload);
82 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php");
83 if(!is_object($this->page_object))
88 $this->page_object->setParentId($this->
getSLMId());
89 if ($a_layout_id == 0) {
90 $this->page_object->create($a_upload);
92 $this->page_object->createWithLayoutId($a_layout_id);
101 function delete($a_delete_meta_data =
true)
103 parent::delete($a_delete_meta_data);
104 $this->page_object->delete();
115 $slm_page->setTitle($this->
getTitle());
116 $slm_page->setSLMId($a_target_slm->getId());
117 $slm_page->setType($this->
getType());
119 $slm_page->setImportId(
"il__page_".$this->
getId());
120 $slm_page->create(
true);
123 include_once(
"Services/MetaData/classes/class.ilMD.php");
125 $new_md = $md->cloneMD($a_target_slm->getId(), $slm_page->getId(), $this->
getType());
128 $page = $slm_page->getPageObject();
130 $clone_mobs = ($this->
getSLMId() == $a_target_slm->getId())
134 $this->page_object->copy($page->getId(), $page->getParentType(), $page->getParentId(), $clone_mobs);
150 $slm_page->setTitle($a_lm_page->getTitle());
151 $slm_page->setSLMId($a_target_slm->getId());
152 $slm_page->setType(
"page");
153 $slm_page->create(
true);
156 include_once(
"Services/MetaData/classes/class.ilMD.php");
157 $md =
new ilMD($a_lm_page->getLMId(), $a_lm_page->getId(), $a_lm_page->getType());
158 $md->
cloneMD($a_target_slm->getId(), $slm_page->getId(),
"page");
161 $page = $slm_page->getPageObject();
163 $a_lm_page->getPageObject()->copy($page->getId(), $page->getParentType(), $page->getParentId(), $clone_mobs);
210 $this->page_object = $a_page_obj;
250 $this->is_alias = $a_is_alias;
255 return $this->is_alias;
261 return $this->origin_id = $a_id;
267 return $this->origin_id;
277 return $this->mobs_contained;
287 return $this->files_contained;
& cloneMD($a_rbac_id, $a_obj_id, $a_obj_type)
Class ilSCORM2004PageNode.
getMediaObjectIds()
get ids of all media objects within the page
setAlias($a_is_alias)
Set wether page object is an alias.
& getPageObject()
Get assigned page object.
static copyPageFromLM($a_target_slm, $a_lm_page)
Copy page from learning module.
copy($a_target_slm)
copy page node
read()
Read data from database.
getSLMId()
Get ID of parent Scorm Learning Module Object.
create($a_upload=false, $a_layout_id=0)
Create Scorm Page.
getDescription()
Get description.
Create styles array
The data for the language used.
__construct($a_slm_object, $a_id=0)
Constructor public.
setType($a_type)
Set type.
getFileItemIds()
get ids of all file items within the page
& copyToOtherContObject(&$a_cont_obj)
copy a page to another content object (learning module / dlib book)
assignPageObject(&$a_page_obj)
Assign page object.