ILIAS
release_4-3 Revision
|
Class. More...
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 | insertAssetClip ($a_slm_obj, $a_type="ass") |
Insert assets 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, $a_from_clipboard=true) |
Paste item (tree) from clipboard or other learning module to target scorm learning module. |
Data Fields | |
$slm_id | |
$type | |
$id | |
$slm_object |
Class.
Base class for Scorm 2004 Nodes (Chapters, Pages, SCOs)
Definition at line 18 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 522 of file class.ilSCORM2004Node.php.
References $query, and ilSCORM2004NodeFactory\getInstance().
ilSCORM2004Node::_exists | ( | $a_id | ) |
Checks wether a node exists.
int | $id | id |
Definition at line 492 of file class.ilSCORM2004Node.php.
References ilInternalLink\_extractObjIdOfTarget().
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 462 of file class.ilSCORM2004Node.php.
References $slm_id, ilObject\_hasUntrashedReference(), and _lookupSLMID().
ilSCORM2004Node::_lookupSLMID | ( | $a_id | ) |
Lookup Scorm Learning Module ID for node id.
Definition at line 547 of file class.ilSCORM2004Node.php.
References $query.
Referenced by _getIdForImportId(), and pasteTree().
|
static |
Lookup Title.
int | Node ID |
Definition at line 327 of file class.ilSCORM2004Node.php.
References $query.
Referenced by clipboardCopy(), ilTermUsagesTableGUI\fillRow(), ilObjectivesAlignmentTableGUI\fillRow(), and ilNoteGUI\showTargets().
|
static |
Lookup Type.
int | Node ID |
Definition at line 345 of file class.ilSCORM2004Node.php.
References $query.
Referenced by clipboardCopy(), ilObjSCORM2004LearningModuleGUI\frameset(), ilObjSCORM2004LearningModuleGUI\getNotesHTML(), ilObjSCORM2004LearningModuleGUI\jumpToNode(), pasteTree(), and uniqueTypesCheck().
|
static |
Write import ID.
int | $a_id | Node ID |
string | $a_import_id | Import ID |
Definition at line 379 of file class.ilSCORM2004Node.php.
|
static |
Write Title.
int | Node ID |
string | Title |
Definition at line 363 of file class.ilSCORM2004Node.php.
References $query.
Referenced by MDUpdateListener(), and ilObjSCORM2004LearningModuleGUI\saveAllTitles().
|
static |
Copy a set of chapters/pages/scos into the clipboard.
Definition at line 619 of file class.ilSCORM2004Node.php.
References $id, $ilUser, _lookupTitle(), _lookupType(), and getTree().
Referenced by clipboardCut(), ilSCORM2004NodeGUI\copyItems(), and ilObjSCORM2004LearningModuleGUI\copyItems().
ilSCORM2004Node::clipboardCut | ( | $a_slm_obj_id, | |
$a_ids | |||
) |
Cut and copy a set of chapters/pages into the clipboard.
Definition at line 661 of file class.ilSCORM2004Node.php.
References $id, $path, clipboardCopy(), and getTree().
Referenced by ilSCORM2004NodeGUI\cutItems(), and ilObjSCORM2004LearningModuleGUI\cutItems().
ilSCORM2004Node::create | ( | $a_upload = false | ) |
Create Node.
boolean | Upload Mode |
Definition at line 397 of file class.ilSCORM2004Node.php.
References $id, $query, createMetaData(), getImportId(), getSLMId(), getTitle(), getType(), and setId().
ilSCORM2004Node::createMetaData | ( | ) |
create meta data entry
Definition at line 260 of file class.ilSCORM2004Node.php.
References $ilUser, getDescription(), getId(), getSLMId(), getTitle(), and getType().
Referenced by create().
ilSCORM2004Node::delete | ( | ) |
Delete Node.
Reimplemented in ilSCORM2004Sco.
Definition at line 440 of file class.ilSCORM2004Node.php.
References $query, deleteMetaData(), and getId().
Referenced by ilSCORM2004PageNode\delete(), ilSCORM2004Chapter\delete_rec(), and ilSCORM2004Asset\delete_rec().
ilSCORM2004Node::deleteMetaData | ( | ) |
delete meta data entry
Definition at line 305 of file class.ilSCORM2004Node.php.
References getId(), getSLMId(), and getType().
Referenced by delete().
ilSCORM2004Node::deleteSeqInfo | ( | ) |
Definition at line 1028 of file class.ilSCORM2004Node.php.
References getId().
Referenced by ilSCORM2004Asset\delete(), and ilSCORM2004Chapter\delete().
ilSCORM2004Node::exportAsScorm12 | ( | ) |
Definition at line 1043 of file class.ilSCORM2004Node.php.
ilSCORM2004Node::exportAsScorm13 | ( | ) |
Definition at line 1048 of file class.ilSCORM2004Node.php.
ilSCORM2004Node::getContentObject | ( | ) |
Get Scorm Learning Module Object.
Definition at line 152 of file class.ilSCORM2004Node.php.
References $slm_object.
ilSCORM2004Node::getDescription | ( | ) |
Get description.
Definition at line 81 of file class.ilSCORM2004Node.php.
Referenced by ilSCORM2004Chapter\copy(), ilSCORM2004Asset\copy(), ilSCORM2004PageNode\copy(), ilSCORM2004Sco\copy(), and createMetaData().
ilSCORM2004Node::getId | ( | ) |
Get Node ID.
int | Node ID |
Reimplemented in ilSCORM2004PageNode, and ilSCORM2004SeqTemplate.
Definition at line 172 of file class.ilSCORM2004Node.php.
References $id.
Referenced by ilSCORM2004Chapter\copy(), ilSCORM2004Asset\copy(), ilSCORM2004Sco\copy(), ilSCORM2004Asset\create(), ilSCORM2004Sco\create(), createMetaData(), ilSCORM2004Asset\delete(), ilSCORM2004Chapter\delete(), delete(), ilSCORM2004Chapter\delete_rec(), ilSCORM2004Asset\delete_rec(), deleteMetaData(), deleteSeqInfo(), ilSCORM2004Asset\exportHTMLPageObjects(), ilSCORM2004Asset\exportScorm(), ilSCORM2004Asset\exportXMLMetaData(), ilSCORM2004Asset\getExportFiles(), ilSCORM2004Asset\getGlossaryTermIds(), getObjectives(), MDUpdateListener(), parentHasSeqTemplate(), update(), and updateMetaData().
ilSCORM2004Node::getImportId | ( | ) |
Set Import ID.
int | Import ID |
Definition at line 182 of file class.ilSCORM2004Node.php.
Referenced by create().
ilSCORM2004Node::getObjectives | ( | ) |
Definition at line 1022 of file class.ilSCORM2004Node.php.
References ilSCORM2004Objective\fetchAllObjectives(), and getId().
Referenced by ilSCORM2004Asset\exportScorm(), and ilSCORM2004Sco\getMainObjectiveText().
ilSCORM2004Node::getSLMId | ( | ) |
Get ID of parent Scorm Learning Module Object.
int | Scorm LM ID |
Definition at line 122 of file class.ilSCORM2004Node.php.
References $slm_id.
Referenced by ilSCORM2004Chapter\copy(), ilSCORM2004Asset\copy(), ilSCORM2004PageNode\copy(), ilSCORM2004Sco\copy(), ilSCORM2004PageNode\create(), create(), createMetaData(), deleteMetaData(), ilSCORM2004Asset\exportXMLMetaData(), MDUpdateListener(), update(), and updateMetaData().
ilSCORM2004Node::getSLMObject | ( | ) |
Get scorm learning module object.
Definition at line 142 of file class.ilSCORM2004Node.php.
References $slm_object.
ilSCORM2004Node::getTitle | ( | ) |
Get title.
Definition at line 61 of file class.ilSCORM2004Node.php.
References $title.
Referenced by ilSCORM2004Chapter\copy(), ilSCORM2004Asset\copy(), ilSCORM2004PageNode\copy(), ilSCORM2004Sco\copy(), create(), createMetaData(), ilSCORM2004Asset\exportHTMLPageObjects(), update(), and updateMetaData().
|
static |
Get scorm module editing tree.
int | scorm module object id |
Definition at line 606 of file class.ilSCORM2004Node.php.
Referenced by clipboardCopy(), clipboardCut(), insertAssetClip(), insertChapterClip(), and insertPageClip().
ilSCORM2004Node::getType | ( | ) |
Get type.
Definition at line 101 of file class.ilSCORM2004Node.php.
References $type.
Referenced by ilSCORM2004Chapter\copy(), ilSCORM2004Asset\copy(), ilSCORM2004Sco\copy(), ilSCORM2004PageNode\copy(), create(), createMetaData(), deleteMetaData(), ilSCORM2004Asset\exportHTMLPageObjects(), ilSCORM2004Asset\exportScorm(), ilSCORM2004Asset\exportXMLMetaData(), ilSCORM2004Asset\getExportFiles(), MDUpdateListener(), and updateMetaData().
ilSCORM2004Node::ilSCORM2004Node | ( | $a_slm_object, | |
$a_id = 0 |
|||
) |
object | $a_slm_object | ilObjScorm2004LearningModule object |
Definition at line 28 of file class.ilSCORM2004Node.php.
References read(), setSLMId(), and setSLMObject().
Referenced by ilSCORM2004EntryAsset\__construct(), ilSCORM2004FinalAsset\__construct(), ilSCORM2004Asset\__construct(), ilSCORM2004Chapter\ilSCORM2004Chapter(), and ilSCORM2004PageNode\ilSCORM2004PageNode().
|
static |
Insert assets from clipboard.
Definition at line 780 of file class.ilSCORM2004Node.php.
References $ilCtrl, $ilUser, ilEditClipboard\clear(), ilEditClipboard\getAction(), ilHierarchyFormGUI\getPostFirstChild(), ilHierarchyFormGUI\getPostNodeId(), getTree(), IL_FIRST_NODE, and pasteTree().
Referenced by insertScoClip().
ilSCORM2004Node::insertChapterClip | ( | $a_slm_obj, | |
$a_as_sub = false |
|||
) |
Insert Chapter from clipboard.
Definition at line 838 of file class.ilSCORM2004Node.php.
References $ilCtrl, $ilLog, $ilUser, ilEditClipboard\clear(), ilEditClipboard\getAction(), ilHierarchyFormGUI\getPostFirstChild(), ilHierarchyFormGUI\getPostNodeId(), getTree(), IL_FIRST_NODE, and pasteTree().
|
static |
Insert pages from clipboard.
Definition at line 731 of file class.ilSCORM2004Node.php.
References $ilCtrl, $ilUser, ilEditClipboard\clear(), ilEditClipboard\getAction(), ilHierarchyFormGUI\getPostFirstChild(), ilHierarchyFormGUI\getPostNodeId(), getTree(), IL_FIRST_NODE, and pasteTree().
|
static |
Insert scos from clipboard.
Definition at line 829 of file class.ilSCORM2004Node.php.
References insertAssetClip().
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 228 of file class.ilSCORM2004Node.php.
References $id, _writeTitle(), getId(), getSLMId(), and getType().
ilSCORM2004Node::parentHasSeqTemplate | ( | ) |
Definition at line 1036 of file class.ilSCORM2004Node.php.
References getId().
|
static |
Paste item (tree) from clipboard or other learning module to target scorm learning module.
object | $a_target_slm | target scorm 2004 learning module object |
int | $a_item_id | id of item that should be pasted |
int | $a_parent_id | parent id in target tree, |
int | $a_target | predecessor target node, no ID means: last child |
string | $a_insert_time | cliboard insert time (not needed, if $a_from_cliboard is false) |
array | $a_copied_nodes | array of IDs od copied nodes, key is ID of source node, value is ID of copied node |
bool | $a_as_copy | if true, items are copied otherwise they are moved |
bool | $a_from_clipboard | if true, child node information is read from clipboard, otherwise from source tree |
Definition at line 918 of file class.ilSCORM2004Node.php.
References $ilLog, $ilUser, _lookupSLMID(), _lookupType(), ilMD\cloneMD(), IL_LAST_NODE, and putInTree().
Referenced by ilObjSCORM2004LearningModule\copyAuthoredContent(), insertAssetClip(), insertChapterClip(), and insertPageClip().
|
static |
put this object into content object tree
Definition at line 562 of file class.ilSCORM2004Node.php.
References IL_FIRST_NODE, and ilTree\setTreeTablePK().
Referenced by ilSCORM13Package\dbImportLM(), ilSCORM13Package\dbImportSco(), ilSCORM2004SeqTemplate\importTemplate(), ilObjSCORM2004LearningModuleGUI\insertAsset(), ilObjSCORM2004LearningModuleGUI\insertChapter(), ilObjSCORM2004LearningModuleGUI\insertPage(), ilObjSCORM2004LearningModuleGUI\insertSco(), ilObjSCORM2004LearningModuleGUI\insertTemplate(), and pasteTree().
ilSCORM2004Node::read | ( | ) |
Read Data of Node.
Reimplemented in ilSCORM2004Sco, and ilSCORM2004PageNode.
Definition at line 200 of file class.ilSCORM2004Node.php.
References $ilBench, $query, setImportId(), and setTitle().
Referenced by ilSCORM2004Node().
ilSCORM2004Node::setDataRecord | ( | $a_record | ) |
this method should only be called by class ilSCORM2004NodeFactory
Definition at line 316 of file class.ilSCORM2004Node.php.
ilSCORM2004Node::setDescription | ( | $a_description | ) |
Set description.
string | Description |
Definition at line 71 of file class.ilSCORM2004Node.php.
ilSCORM2004Node::setId | ( | $a_id | ) |
Set Node ID.
int | Node ID |
Reimplemented in ilSCORM2004PageNode, and ilSCORM2004SeqTemplate.
Definition at line 162 of file class.ilSCORM2004Node.php.
Referenced by create().
ilSCORM2004Node::setImportId | ( | $a_id | ) |
Get Import ID.
int | Import ID |
Definition at line 192 of file class.ilSCORM2004Node.php.
Referenced by read().
ilSCORM2004Node::setSLMId | ( | $a_slm_id | ) |
Set ID of parent Scorm Learning Module Object.
int | Scorm LM ID |
Definition at line 111 of file class.ilSCORM2004Node.php.
Referenced by ilSCORM2004Node().
ilSCORM2004Node::setSLMObject | ( | $a_slm_obj | ) |
Set Scorm Learning Module Object.
int | Scorm LM Object |
Definition at line 132 of file class.ilSCORM2004Node.php.
Referenced by ilSCORM2004Node().
ilSCORM2004Node::setTitle | ( | $a_title | ) |
Set title.
string | $a_title | title |
Definition at line 51 of file class.ilSCORM2004Node.php.
Referenced by read().
ilSCORM2004Node::setType | ( | $a_type | ) |
Set type.
string | Type |
Definition at line 91 of file class.ilSCORM2004Node.php.
Referenced by ilSCORM2004EntryAsset\__construct(), ilSCORM2004FinalAsset\__construct(), ilSCORM2004Asset\__construct(), ilSCORM2004Sco\__construct(), ilSCORM2004Chapter\ilSCORM2004Chapter(), ilSCORM2004PageNode\ilSCORM2004PageNode(), and ilSCORM2004SeqChapter\ilSCORM2004SeqChapter().
|
static |
Check for unique types (all pages or all chapters or all scos)
Definition at line 709 of file class.ilSCORM2004Node.php.
References $type, and _lookupType().
Referenced by ilSCORM2004NodeGUI\copyItems(), ilObjSCORM2004LearningModuleGUI\copyItems(), ilSCORM2004NodeGUI\cutItems(), and ilObjSCORM2004LearningModuleGUI\cutItems().
ilSCORM2004Node::update | ( | ) |
Update Node.
Reimplemented in ilSCORM2004Sco.
Definition at line 423 of file class.ilSCORM2004Node.php.
References $query, getId(), getSLMId(), getTitle(), and updateMetaData().
ilSCORM2004Node::updateMetaData | ( | ) |
update meta data entry
Definition at line 280 of file class.ilSCORM2004Node.php.
References getId(), getSLMId(), getTitle(), and getType().
Referenced by update().
ilSCORM2004Node::$id |
Definition at line 22 of file class.ilSCORM2004Node.php.
Referenced by clipboardCopy(), clipboardCut(), create(), getId(), and MDUpdateListener().
ilSCORM2004Node::$slm_id |
Definition at line 20 of file class.ilSCORM2004Node.php.
Referenced by _getIdForImportId(), and getSLMId().
ilSCORM2004Node::$slm_object |
Definition at line 23 of file class.ilSCORM2004Node.php.
Referenced by getContentObject(), and getSLMObject().
ilSCORM2004Node::$type |
Definition at line 21 of file class.ilSCORM2004Node.php.
Referenced by ilSCORM2004Asset\getExportFiles(), getType(), and uniqueTypesCheck().