| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
Class. More...
 Inheritance diagram for ilSCORM2004Node:
 Inheritance diagram for ilSCORM2004Node: Collaboration diagram for ilSCORM2004Node:
 Collaboration diagram for ilSCORM2004Node:| Public Member Functions | |
| ilSCORM2004Node ($a_slm_object, $a_id=0) | |
| setTitle ($a_title) | |
| Set title. | |
| getTitle () | |
| Get title. | |
| setDescription ($a_description) | |
| Set description. | |
| getDescription () | |
| Get description. | |
| setType ($a_type) | |
| Set type. | |
| getType () | |
| Get type. | |
| setSLMId ($a_slm_id) | |
| Set ID of parent Scorm Learning Module Object. | |
| getSLMId () | |
| Get ID of parent Scorm Learning Module Object. | |
| setSLMObject ($a_slm_obj) | |
| Set Scorm Learning Module Object. | |
| getSLMObject () | |
| Get scorm learning module object. | |
| getContentObject () | |
| Get Scorm Learning Module Object. | |
| setId ($a_id) | |
| Set Node ID. | |
| getId () | |
| Get Node ID. | |
| getImportId () | |
| Set Import ID. | |
| setImportId ($a_id) | |
| Get Import ID. | |
| read () | |
| Read Data of Node. | |
| MDUpdateListener ($a_element) | |
| Meta data update listener. | |
| createMetaData () | |
| create meta data entry | |
| updateMetaData () | |
| update meta data entry | |
| deleteMetaData () | |
| delete meta data entry | |
| setDataRecord ($a_record) | |
| this method should only be called by class ilSCORM2004NodeFactory | |
| create ($a_upload=false) | |
| Create Node. | |
| update () | |
| Update Node. | |
| delete () | |
| Delete Node. | |
| _getIdForImportId ($a_import_id) | |
| Get Node ID for import ID (static) | |
| _exists ($a_id) | |
| Checks wether a node exists. | |
| _deleteAllSLMNodes ($a_slm_object) | |
| Delete all nodes of Scorm Learning Module. | |
| _lookupSLMID ($a_id) | |
| Lookup Scorm Learning Module ID for node id. | |
| clipboardCut ($a_slm_obj_id, $a_ids) | |
| Cut and copy a set of chapters/pages into the clipboard. | |
| insertChapterClip ($a_slm_obj, $a_as_sub=false) | |
| Insert Chapter from clipboard. | |
| getObjectives () | |
| deleteSeqInfo () | |
| parentHasSeqTemplate () | |
| exportAsScorm12 () | |
| exportAsScorm13 () | |
| Static Public Member Functions | |
| static | _lookupTitle ($a_obj_id) | 
| Lookup Title. | |
| static | _lookupType ($a_obj_id) | 
| Lookup Type. | |
| static | _writeTitle ($a_obj_id, $a_title) | 
| Write Title. | |
| static | _writeImportId ($a_id, $a_import_id) | 
| Write import ID. | |
| static | putInTree ($a_obj, $a_parent_id="", $a_target_node_id="") | 
| put this object into content object tree | |
| static | getTree ($a_slm_obj_id) | 
| Get scorm module editing tree. | |
| static | clipboardCopy ($a_slm_obj_id, $a_ids) | 
| Copy a set of chapters/pages/scos into the clipboard. | |
| static | uniqueTypesCheck ($a_items) | 
| Check for unique types (all pages or all chapters or all scos) | |
| static | insertPageClip ($a_slm_obj) | 
| Insert pages from clipboard. | |
| static | insertScoClip ($a_slm_obj) | 
| Insert scos from clipboard. | |
| static | pasteTree ($a_target_slm, $a_item_id, $a_parent_id, $a_target, $a_insert_time, &$a_copied_nodes, $a_as_copy=false) | 
| Paste item (tree) from clipboard to current scorm learning module. | |
| Data Fields | |
| $slm_id | |
| $type | |
| $id | |
| $slm_object | |
Class.
Base class for Scorm 2004 Nodes (Chapters, Pages, SCOs)
Definition at line 36 of file class.ilSCORM2004Node.php.
| ilSCORM2004Node::_deleteAllSLMNodes | ( | $a_slm_object | ) | 
Delete all nodes of Scorm Learning Module.
| object | Scorm 2004 Learning Module Object | 
Definition at line 538 of file class.ilSCORM2004Node.php.
References $ilDB, $query, and ilSCORM2004NodeFactory\getInstance().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSCORM2004Node::_exists | ( | $a_id | ) | 
Checks wether a node exists.
| int | $id | id | 
Definition at line 508 of file class.ilSCORM2004Node.php.
References $ilDB, and ilInternalLink\_extractObjIdOfTarget().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSCORM2004Node::_getIdForImportId | ( | $a_import_id | ) | 
Get Node ID for import ID (static)
import ids can exist multiple times (if the same learning module has been imported multiple times). we get the object id of the last imported object, that is not in trash
| int | $a_import_id | import id | 
Definition at line 478 of file class.ilSCORM2004Node.php.
References $ilDB, $slm_id, ilObject\_hasUntrashedReference(), and _lookupSLMID().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSCORM2004Node::_lookupSLMID | ( | $a_id | ) | 
Lookup Scorm Learning Module ID for node id.
Definition at line 563 of file class.ilSCORM2004Node.php.
Referenced by _getIdForImportId(), and pasteTree().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Lookup Title.
| int | Node ID | 
Definition at line 343 of file class.ilSCORM2004Node.php.
Referenced by clipboardCopy(), ilTermUsagesTableGUI\fillRow(), ilObjectivesAlignmentTableGUI\fillRow(), and ilNoteGUI\showTargets().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Lookup Type.
| int | Node ID | 
Definition at line 361 of file class.ilSCORM2004Node.php.
Referenced by clipboardCopy(), ilObjSCORM2004LearningModuleGUI\frameset(), ilObjSCORM2004LearningModuleGUI\getNotesHTML(), ilObjSCORM2004LearningModuleGUI\jumpToNode(), pasteTree(), and uniqueTypesCheck().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Write import ID.
| int | $a_id | Node ID | 
| string | $a_import_id | Import ID | 
Definition at line 395 of file class.ilSCORM2004Node.php.
References $ilDB.
| 
 | static | 
Write Title.
| int | Node ID | 
| string | Title | 
Definition at line 379 of file class.ilSCORM2004Node.php.
Referenced by MDUpdateListener(), and ilObjSCORM2004LearningModuleGUI\saveAllTitles().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Copy a set of chapters/pages/scos into the clipboard.
Definition at line 635 of file class.ilSCORM2004Node.php.
References $id, _lookupTitle(), _lookupType(), and getTree().
Referenced by clipboardCut(), ilSCORM2004NodeGUI\copyItems(), and ilObjSCORM2004LearningModuleGUI\copyItems().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::clipboardCut | ( | $a_slm_obj_id, | |
| $a_ids | |||
| ) | 
Cut and copy a set of chapters/pages into the clipboard.
Definition at line 676 of file class.ilSCORM2004Node.php.
References $id, $path, clipboardCopy(), and getTree().
Referenced by ilSCORM2004NodeGUI\cutItems(), and ilObjSCORM2004LearningModuleGUI\cutItems().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::create | ( | $a_upload = false | ) | 
Create Node.
| boolean | Upload Mode | 
Definition at line 413 of file class.ilSCORM2004Node.php.
References $id, $ilDB, $query, createMetaData(), getImportId(), getSLMId(), getTitle(), getType(), and setId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSCORM2004Node::createMetaData | ( | ) | 
create meta data entry
Definition at line 276 of file class.ilSCORM2004Node.php.
References getDescription(), getId(), getSLMId(), getTitle(), and getType().
Referenced by create().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::delete | ( | ) | 
Delete Node.
Definition at line 456 of file class.ilSCORM2004Node.php.
References $ilDB, $query, deleteMetaData(), and getId().
Referenced by ilSCORM2004PageNode\delete(), ilSCORM2004Sco\delete_rec(), and ilSCORM2004Chapter\delete_rec().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::deleteMetaData | ( | ) | 
delete meta data entry
Definition at line 321 of file class.ilSCORM2004Node.php.
References getId(), getSLMId(), and getType().
Referenced by delete().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::deleteSeqInfo | ( | ) | 
Definition at line 1001 of file class.ilSCORM2004Node.php.
References getId().
Referenced by ilSCORM2004Sco\delete(), and ilSCORM2004Chapter\delete().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::exportAsScorm12 | ( | ) | 
Definition at line 1016 of file class.ilSCORM2004Node.php.
| ilSCORM2004Node::exportAsScorm13 | ( | ) | 
Definition at line 1021 of file class.ilSCORM2004Node.php.
| ilSCORM2004Node::getContentObject | ( | ) | 
Get Scorm Learning Module Object.
Definition at line 168 of file class.ilSCORM2004Node.php.
References $slm_object.
| ilSCORM2004Node::getDescription | ( | ) | 
Get description.
Definition at line 97 of file class.ilSCORM2004Node.php.
Referenced by ilSCORM2004Sco\copy(), ilSCORM2004Chapter\copy(), ilSCORM2004PageNode\copy(), and createMetaData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::getId | ( | ) | 
Get Node ID.
| int | Node ID | 
Reimplemented in ilSCORM2004PageNode, and ilSCORM2004SeqTemplate.
Definition at line 188 of file class.ilSCORM2004Node.php.
References $id.
Referenced by ilSCORM2004Sco\copy(), ilSCORM2004Chapter\copy(), ilSCORM2004Sco\create(), createMetaData(), ilSCORM2004Sco\delete(), ilSCORM2004Chapter\delete(), delete(), ilSCORM2004Chapter\delete_rec(), ilSCORM2004Sco\delete_rec(), deleteMetaData(), deleteSeqInfo(), ilSCORM2004Sco\exportHTMLPageObjects(), ilSCORM2004Sco\exportScorm(), ilSCORM2004Sco\exportXMLMetaData(), ilSCORM2004Sco\getExportFiles(), ilSCORM2004Sco\getGlossaryTermIds(), getObjectives(), MDUpdateListener(), parentHasSeqTemplate(), update(), and updateMetaData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::getImportId | ( | ) | 
Set Import ID.
| int | Import ID | 
Definition at line 198 of file class.ilSCORM2004Node.php.
Referenced by create().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::getObjectives | ( | ) | 
Definition at line 995 of file class.ilSCORM2004Node.php.
References ilSCORM2004Objective\fetchAllObjectives(), and getId().
Referenced by ilSCORM2004Sco\exportHTMLPageObjects(), and ilSCORM2004Sco\exportScorm().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::getSLMId | ( | ) | 
Get ID of parent Scorm Learning Module Object.
| int | Scorm LM ID | 
Definition at line 138 of file class.ilSCORM2004Node.php.
References $slm_id.
Referenced by ilSCORM2004Sco\copy(), ilSCORM2004Chapter\copy(), ilSCORM2004PageNode\copy(), ilSCORM2004PageNode\create(), create(), createMetaData(), deleteMetaData(), ilSCORM2004Sco\exportHTMLPageObjects(), ilSCORM2004Sco\exportXMLMetaData(), MDUpdateListener(), update(), and updateMetaData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::getSLMObject | ( | ) | 
Get scorm learning module object.
Definition at line 158 of file class.ilSCORM2004Node.php.
References $slm_object.
| ilSCORM2004Node::getTitle | ( | ) | 
Get title.
Definition at line 77 of file class.ilSCORM2004Node.php.
References $title.
Referenced by ilSCORM2004Sco\copy(), ilSCORM2004Chapter\copy(), ilSCORM2004PageNode\copy(), create(), createMetaData(), ilSCORM2004Sco\exportHTMLPageObjects(), update(), and updateMetaData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Get scorm module editing tree.
| int | scorm module object id | 
Definition at line 622 of file class.ilSCORM2004Node.php.
Referenced by clipboardCopy(), clipboardCut(), insertChapterClip(), insertPageClip(), and insertScoClip().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::getType | ( | ) | 
Get type.
Definition at line 117 of file class.ilSCORM2004Node.php.
References $type.
Referenced by ilSCORM2004Sco\copy(), ilSCORM2004Chapter\copy(), ilSCORM2004PageNode\copy(), create(), createMetaData(), deleteMetaData(), ilSCORM2004Sco\exportHTMLPageObjects(), ilSCORM2004Sco\exportXMLMetaData(), ilSCORM2004Sco\getExportFiles(), MDUpdateListener(), and updateMetaData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::ilSCORM2004Node | ( | $a_slm_object, | |
| $a_id = 0 | |||
| ) | 
| object | $a_slm_object | ilObjScorm2004LearningModule object | 
Definition at line 46 of file class.ilSCORM2004Node.php.
References read(), setSLMId(), setSLMObject(), and ilTree\setTableNames().
Referenced by ilSCORM2004Chapter\ilSCORM2004Chapter(), ilSCORM2004PageNode\ilSCORM2004PageNode(), and ilSCORM2004Sco\ilSCORM2004Sco().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::insertChapterClip | ( | $a_slm_obj, | |
| $a_as_sub = false | |||
| ) | 
Insert Chapter from clipboard.
Definition at line 842 of file class.ilSCORM2004Node.php.
References $ilCtrl, $ilLog, ilEditClipboard\clear(), ilEditClipboard\getAction(), ilHierarchyFormGUI\getPostFirstChild(), ilHierarchyFormGUI\getPostNodeId(), getTree(), IL_FIRST_NODE, and pasteTree().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Insert pages from clipboard.
Definition at line 746 of file class.ilSCORM2004Node.php.
References $ilCtrl, ilEditClipboard\clear(), ilEditClipboard\getAction(), ilHierarchyFormGUI\getPostFirstChild(), ilHierarchyFormGUI\getPostNodeId(), getTree(), IL_FIRST_NODE, and pasteTree().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Insert scos from clipboard.
Definition at line 794 of file class.ilSCORM2004Node.php.
References $ilCtrl, ilEditClipboard\clear(), ilEditClipboard\getAction(), ilHierarchyFormGUI\getPostFirstChild(), ilHierarchyFormGUI\getPostNodeId(), getTree(), IL_FIRST_NODE, and pasteTree().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSCORM2004Node::MDUpdateListener | ( | $a_element | ) | 
Meta data update listener.
Important note: Do never call create() or update() method of ilObject here. It would result in an endless loop: update object -> update meta -> update object -> ... Use static _writeTitle() ... methods instead.
| string | $a_element | 
Definition at line 244 of file class.ilSCORM2004Node.php.
References $id, _writeTitle(), getId(), getSLMId(), and getType().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSCORM2004Node::parentHasSeqTemplate | ( | ) | 
Definition at line 1009 of file class.ilSCORM2004Node.php.
References getId().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Paste item (tree) from clipboard to current scorm learning module.
Definition at line 912 of file class.ilSCORM2004Node.php.
References $ilLog, _lookupSLMID(), _lookupType(), ilMD\cloneMD(), IL_LAST_NODE, and putInTree().
Referenced by insertChapterClip(), insertPageClip(), and insertScoClip().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
put this object into content object tree
Definition at line 578 of file class.ilSCORM2004Node.php.
References IL_FIRST_NODE, and ilTree\setTreeTablePK().
Referenced by ilSCORM13Package\dbImportLM(), ilSCORM13Package\dbImportSco(), ilSCORM2004SeqTemplate\importTemplate(), ilObjSCORM2004LearningModuleGUI\insertChapter(), ilObjSCORM2004LearningModuleGUI\insertPage(), ilObjSCORM2004LearningModuleGUI\insertSco(), ilObjSCORM2004LearningModuleGUI\insertTemplate(), and pasteTree().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::read | ( | ) | 
Read Data of Node.
Reimplemented in ilSCORM2004PageNode.
Definition at line 216 of file class.ilSCORM2004Node.php.
References $ilBench, $ilDB, $query, setImportId(), and setTitle().
Referenced by ilSCORM2004Node().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::setDataRecord | ( | $a_record | ) | 
this method should only be called by class ilSCORM2004NodeFactory
Definition at line 332 of file class.ilSCORM2004Node.php.
| ilSCORM2004Node::setDescription | ( | $a_description | ) | 
Set description.
| string | Description | 
Definition at line 87 of file class.ilSCORM2004Node.php.
| ilSCORM2004Node::setId | ( | $a_id | ) | 
Set Node ID.
| int | Node ID | 
Reimplemented in ilSCORM2004PageNode, and ilSCORM2004SeqTemplate.
Definition at line 178 of file class.ilSCORM2004Node.php.
Referenced by create().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::setImportId | ( | $a_id | ) | 
Get Import ID.
| int | Import ID | 
Definition at line 208 of file class.ilSCORM2004Node.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::setSLMId | ( | $a_slm_id | ) | 
Set ID of parent Scorm Learning Module Object.
| int | Scorm LM ID | 
Definition at line 127 of file class.ilSCORM2004Node.php.
Referenced by ilSCORM2004Node().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::setSLMObject | ( | $a_slm_obj | ) | 
Set Scorm Learning Module Object.
| int | Scorm LM Object | 
Definition at line 148 of file class.ilSCORM2004Node.php.
Referenced by ilSCORM2004Node().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::setTitle | ( | $a_title | ) | 
Set title.
| string | $a_title | title | 
Definition at line 67 of file class.ilSCORM2004Node.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::setType | ( | $a_type | ) | 
Set type.
| string | Type | 
Definition at line 107 of file class.ilSCORM2004Node.php.
Referenced by ilSCORM2004Chapter\ilSCORM2004Chapter(), ilSCORM2004PageNode\ilSCORM2004PageNode(), ilSCORM2004Sco\ilSCORM2004Sco(), and ilSCORM2004SeqChapter\ilSCORM2004SeqChapter().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Check for unique types (all pages or all chapters or all scos)
Definition at line 724 of file class.ilSCORM2004Node.php.
References $type, and _lookupType().
Referenced by ilSCORM2004NodeGUI\copyItems(), ilObjSCORM2004LearningModuleGUI\copyItems(), ilSCORM2004NodeGUI\cutItems(), and ilObjSCORM2004LearningModuleGUI\cutItems().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::update | ( | ) | 
Update Node.
Definition at line 439 of file class.ilSCORM2004Node.php.
References $ilDB, $query, getId(), getSLMId(), getTitle(), and updateMetaData().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSCORM2004Node::updateMetaData | ( | ) | 
update meta data entry
Definition at line 296 of file class.ilSCORM2004Node.php.
References getId(), getSLMId(), getTitle(), and getType().
Referenced by update().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Node::$id | 
Definition at line 40 of file class.ilSCORM2004Node.php.
Referenced by clipboardCopy(), clipboardCut(), create(), getId(), and MDUpdateListener().
| ilSCORM2004Node::$slm_id | 
Definition at line 38 of file class.ilSCORM2004Node.php.
Referenced by _getIdForImportId(), and getSLMId().
| ilSCORM2004Node::$slm_object | 
Definition at line 41 of file class.ilSCORM2004Node.php.
Referenced by getContentObject(), and getSLMObject().
| ilSCORM2004Node::$type | 
Definition at line 39 of file class.ilSCORM2004Node.php.
Referenced by ilSCORM2004Sco\getExportFiles(), getType(), and uniqueTypesCheck().