4 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
5 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php");
38 parent::ilSCORM2004Node($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))
85 $this->page_object =&
new ilSCORM2004Page($this->slm_object->getType());
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);
181 $this->page_object =& $a_page_obj;
221 $this->is_alias = $a_is_alias;
226 return $this->is_alias;
232 return $this->origin_id = $a_id;
238 return $this->origin_id;
248 return $this->mobs_contained;
258 return $this->files_contained;
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.
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.
setType($a_type)
Set type.
ilSCORM2004PageNode($a_slm_object, $a_id=0)
Constructor public.
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.