ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class. More...
Public Member Functions | |
__construct ($a_slm_object, $a_id=0) | |
setTitle ($a_title) | |
Set title. More... | |
getTitle () | |
Get title. More... | |
setDescription ($a_description) | |
Set description. More... | |
getDescription () | |
Get description. More... | |
setType ($a_type) | |
Set type. More... | |
getType () | |
Get type. More... | |
setSLMId ($a_slm_id) | |
Set ID of parent Scorm Learning Module Object. More... | |
getSLMId () | |
Get ID of parent Scorm Learning Module Object. More... | |
setSLMObject ($a_slm_obj) | |
Set Scorm Learning Module Object. More... | |
getSLMObject () | |
Get scorm learning module object. More... | |
getContentObject () | |
Get Scorm Learning Module Object. More... | |
setId ($a_id) | |
Set Node ID. More... | |
getId () | |
Get Node ID. More... | |
getImportId () | |
Set Import ID. More... | |
setImportId ($a_id) | |
Get Import ID. More... | |
read () | |
Read Data of Node. More... | |
MDUpdateListener ($a_element) | |
Meta data update listener. More... | |
createMetaData () | |
create meta data entry More... | |
updateMetaData () | |
update meta data entry More... | |
deleteMetaData () | |
delete meta data entry More... | |
setDataRecord ($a_record) | |
this method should only be called by class ilSCORM2004NodeFactory More... | |
create ($a_upload=false) | |
Create Node. More... | |
update () | |
Update Node. More... | |
delete () | |
Delete Node. More... | |
getObjectives () | |
deleteSeqInfo () | |
parentHasSeqTemplate () | |
exportAsScorm12 () | |
exportAsScorm13 () | |
Static Public Member Functions | |
static | _lookupTitle ($a_obj_id) |
Lookup Title. More... | |
static | _lookupType ($a_obj_id) |
Lookup Type. More... | |
static | _writeTitle ($a_obj_id, $a_title) |
Write Title. More... | |
static | _writeImportId ($a_id, $a_import_id) |
Write import ID. More... | |
static | _getIdForImportId ($a_import_id) |
Get Node ID for import ID (static) More... | |
static | _exists ($a_id) |
Checks wether a node exists. More... | |
static | _deleteAllSLMNodes ($a_slm_object) |
Delete all nodes of Scorm Learning Module. More... | |
static | _lookupSLMID ($a_id) |
Lookup Scorm Learning Module ID for node id. More... | |
static | putInTree ($a_obj, $a_parent_id="", $a_target_node_id="") |
put this object into content object tree More... | |
static | getTree ($a_slm_obj_id) |
Get scorm module editing tree. More... | |
static | clipboardCopy ($a_slm_obj_id, $a_ids) |
Copy a set of chapters/pages/scos into the clipboard. More... | |
static | clipboardCut ($a_slm_obj_id, $a_ids) |
Cut and copy a set of chapters/pages into the clipboard. More... | |
static | uniqueTypesCheck ($a_items) |
Check for unique types (all pages or all chapters or all scos) More... | |
static | insertPageClip ($a_slm_obj) |
Insert pages from clipboard. More... | |
static | insertAssetClip ($a_slm_obj, $a_type="ass") |
Insert assets from clipboard. More... | |
static | insertScoClip ($a_slm_obj) |
Insert scos from clipboard. More... | |
static | insertChapterClip ($a_slm_obj, $a_as_sub=false) |
Insert Chapter from clipboard. More... | |
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, $a_source_parent_type="") |
Paste item (tree) from clipboard or other learning module to target scorm learning module. More... | |
Data Fields | |
$slm_id | |
$type | |
$id | |
$slm_object | |
Protected Attributes | |
$db | |
$user | |
Class.
Base class for Scorm 2004 Nodes (Chapters, Pages, SCOs)
Definition at line 18 of file class.ilSCORM2004Node.php.
ilSCORM2004Node::__construct | ( | $a_slm_object, | |
$a_id = 0 |
|||
) |
object | $a_slm_object | ilObjScorm2004LearningModule object |
Definition at line 38 of file class.ilSCORM2004Node.php.
References $DIC, read(), setSLMId(), setSLMObject(), and user().
|
static |
Delete all nodes of Scorm Learning Module.
object | Scorm 2004 Learning Module Object |
Definition at line 534 of file class.ilSCORM2004Node.php.
References $DIC, $ilDB, $query, and ilSCORM2004NodeFactory\getInstance().
|
static |
Checks wether a node exists.
int | $id | id |
Definition at line 507 of file class.ilSCORM2004Node.php.
References $DIC, $ilDB, and ilInternalLink\_extractObjIdOfTarget().
|
static |
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 477 of file class.ilSCORM2004Node.php.
References $DIC, $ilDB, $slm_id, ilObject\_hasUntrashedReference(), and _lookupSLMID().
|
static |
Lookup Scorm Learning Module ID for node id.
Definition at line 559 of file class.ilSCORM2004Node.php.
References $DIC, $ilDB, and $query.
Referenced by _getIdForImportId(), ilObjMediaObject\getParentObjectIdForUsage(), and pasteTree().
|
static |
Lookup Title.
int | Node ID |
Definition at line 335 of file class.ilSCORM2004Node.php.
References $DIC, $ilDB, and $query.
Referenced by clipboardCopy(), ilTermUsagesTableGUI\fillRow(), ilObjectivesAlignmentTableGUI\fillRow(), and ilNoteGUI\showTargets().
|
static |
Lookup Type.
int | Node ID |
Definition at line 355 of file class.ilSCORM2004Node.php.
References $DIC, $ilDB, and $query.
Referenced by clipboardCopy(), ilObjSCORM2004LearningModuleGUI\editOrganization(), 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 393 of file class.ilSCORM2004Node.php.
|
static |
Write Title.
int | Node ID |
string | Title |
Definition at line 375 of file class.ilSCORM2004Node.php.
References $DIC, $ilDB, and $query.
Referenced by MDUpdateListener(), and ilObjSCORM2004LearningModuleGUI\saveAllTitles().
|
static |
Copy a set of chapters/pages/scos into the clipboard.
Definition at line 626 of file class.ilSCORM2004Node.php.
References $DIC, $id, $ilUser, $time, _lookupTitle(), _lookupType(), date, getTree(), and time.
Referenced by clipboardCut(), ilSCORM2004NodeGUI\copyItems(), and ilObjSCORM2004LearningModuleGUI\copyItems().
|
static |
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().
ilSCORM2004Node::create | ( | $a_upload = false | ) |
Create Node.
boolean | Upload Mode |
Definition at line 413 of file class.ilSCORM2004Node.php.
References $db, $id, $ilDB, $query, createMetaData(), getImportId(), getSLMId(), getTitle(), getType(), and setId().
ilSCORM2004Node::createMetaData | ( | ) |
create meta data entry
Definition at line 269 of file class.ilSCORM2004Node.php.
References $ilUser, $user, getDescription(), getId(), getSLMId(), getTitle(), and getType().
Referenced by create().
ilSCORM2004Node::delete | ( | ) |
Delete Node.
Definition at line 455 of file class.ilSCORM2004Node.php.
References $db, $ilDB, $query, deleteMetaData(), and getId().
ilSCORM2004Node::deleteMetaData | ( | ) |
delete meta data entry
Definition at line 313 of file class.ilSCORM2004Node.php.
References getId(), getSLMId(), and getType().
Referenced by delete().
ilSCORM2004Node::deleteSeqInfo | ( | ) |
Definition at line 1076 of file class.ilSCORM2004Node.php.
References getId().
ilSCORM2004Node::exportAsScorm12 | ( | ) |
Definition at line 1092 of file class.ilSCORM2004Node.php.
ilSCORM2004Node::exportAsScorm13 | ( | ) |
Definition at line 1098 of file class.ilSCORM2004Node.php.
ilSCORM2004Node::getContentObject | ( | ) |
Get Scorm Learning Module Object.
Definition at line 164 of file class.ilSCORM2004Node.php.
References $slm_object.
ilSCORM2004Node::getDescription | ( | ) |
Get description.
Definition at line 94 of file class.ilSCORM2004Node.php.
References $description.
Referenced by ilSCORM2004Chapter\copy(), ilSCORM2004Asset\copy(), ilSCORM2004PageNode\copy(), ilSCORM2004Sco\copy(), and createMetaData().
ilSCORM2004Node::getId | ( | ) |
Get Node ID.
int | Node ID |
Definition at line 184 of file class.ilSCORM2004Node.php.
References $id.
Referenced by ilSCORM2004Chapter\copy(), ilSCORM2004Asset\copy(), ilSCORM2004Sco\copy(), ilSCORM2004Sco\create(), createMetaData(), ilSCORM2004Chapter\delete(), ilSCORM2004Asset\delete(), delete(), ilSCORM2004Chapter\delete_rec(), ilSCORM2004Asset\delete_rec(), deleteMetaData(), deleteSeqInfo(), ilSCORM2004Asset\exportHTMLPageObjects(), ilSCORM2004Asset\exportScorm(), ilSCORM2004Chapter\exportXMLMetaData(), ilSCORM2004Asset\exportXMLMetaData(), ilSCORM2004Asset\getExportFiles(), ilSCORM2004Asset\getGlossaryTermIds(), getObjectives(), ilSCORM2004Asset\insertDefaultSequencingItem(), ilSCORM2004Chapter\insertDefaultSequencingItem(), MDUpdateListener(), parentHasSeqTemplate(), update(), and updateMetaData().
ilSCORM2004Node::getImportId | ( | ) |
Set Import ID.
int | Import ID |
Definition at line 194 of file class.ilSCORM2004Node.php.
Referenced by create().
ilSCORM2004Node::getObjectives | ( | ) |
Definition at line 1070 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 134 of file class.ilSCORM2004Node.php.
References $slm_id.
Referenced by ilSCORM2004Chapter\copy(), ilSCORM2004Asset\copy(), ilSCORM2004PageNode\copy(), ilSCORM2004Sco\copy(), ilSCORM2004PageNode\create(), create(), createMetaData(), deleteMetaData(), ilSCORM2004Chapter\exportXMLMetaData(), ilSCORM2004Asset\exportXMLMetaData(), MDUpdateListener(), update(), and updateMetaData().
ilSCORM2004Node::getSLMObject | ( | ) |
Get scorm learning module object.
Definition at line 154 of file class.ilSCORM2004Node.php.
References $slm_object.
ilSCORM2004Node::getTitle | ( | ) |
Get title.
Definition at line 74 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 613 of file class.ilSCORM2004Node.php.
Referenced by clipboardCopy(), clipboardCut(), insertAssetClip(), insertChapterClip(), and insertPageClip().
ilSCORM2004Node::getType | ( | ) |
Get type.
Definition at line 114 of file class.ilSCORM2004Node.php.
References $type.
Referenced by ilSCORM2004Chapter\copy(), ilSCORM2004Asset\copy(), ilSCORM2004PageNode\copy(), ilSCORM2004Sco\copy(), create(), createMetaData(), deleteMetaData(), ilSCORM2004Asset\exportHTMLPageObjects(), ilSCORM2004Asset\exportScorm(), ilSCORM2004Chapter\exportXMLMetaData(), ilSCORM2004Asset\exportXMLMetaData(), ilSCORM2004Asset\getExportFiles(), MDUpdateListener(), and updateMetaData().
|
static |
Insert assets from clipboard.
Definition at line 795 of file class.ilSCORM2004Node.php.
References $a_type, $DIC, $ilCtrl, $ilUser, $target, array, ilEditClipboard\clear(), ilEditClipboard\getAction(), ilHierarchyFormGUI\getPostFirstChild(), ilHierarchyFormGUI\getPostNodeId(), getTree(), IL_FIRST_NODE, and pasteTree().
Referenced by ilSCORM2004NodeGUI\insertAssetClip(), and ilObjSCORM2004LearningModuleGUI\insertAssetClip().
|
static |
Insert Chapter from clipboard.
Definition at line 857 of file class.ilSCORM2004Node.php.
References $DIC, $ilCtrl, $ilLog, $ilUser, $target, array, ilEditClipboard\clear(), ilEditClipboard\getAction(), ilHierarchyFormGUI\getPostFirstChild(), ilHierarchyFormGUI\getPostNodeId(), getTree(), IL_FIRST_NODE, and pasteTree().
Referenced by ilObjSCORM2004LearningModuleGUI\insertChapterClip().
|
static |
Insert pages from clipboard.
Definition at line 733 of file class.ilSCORM2004Node.php.
References $DIC, $ilUser, $target, array, ilEditClipboard\clear(), ilEditClipboard\getAction(), ilHierarchyFormGUI\getPostFirstChild(), ilHierarchyFormGUI\getPostNodeId(), getTree(), IL_FIRST_NODE, and pasteTree().
Referenced by ilSCORM2004NodeGUI\insertPageClip(), and ilObjSCORM2004LearningModuleGUI\insertPageClip().
|
static |
Insert scos from clipboard.
Definition at line 848 of file class.ilSCORM2004Node.php.
Referenced by ilSCORM2004NodeGUI\insertScoClip(), and ilObjSCORM2004LearningModuleGUI\insertScoClip().
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 239 of file class.ilSCORM2004Node.php.
References $id, _writeTitle(), getId(), getSLMId(), and getType().
ilSCORM2004Node::parentHasSeqTemplate | ( | ) |
Definition at line 1084 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 935 of file class.ilSCORM2004Node.php.
References $DIC, $ilLog, $ilUser, _lookupSLMID(), ilLMObject\_lookupType(), _lookupType(), array, ilMD\cloneMD(), ilSCORM2004PageNode\copyPageFromLM(), IL_LAST_NODE, and putInTree().
Referenced by ilLMChapterImportForm\addNode(), ilObjSCORM2004LearningModule\copyAuthoredContent(), insertAssetClip(), insertChapterClip(), and insertPageClip().
|
static |
put this object into content object tree
Definition at line 576 of file class.ilSCORM2004Node.php.
References $target, IL_FIRST_NODE, and ilTree\setTreeTablePK().
Referenced by ilLMChapterImportForm\addNode(), ilSCORM13Package\dbImportLM(), ilSCORM13Package\dbImportSco(), ilSCORM2004SeqTemplate\importTemplate(), ilObjSCORM2004LearningModuleGUI\insertAsset(), ilObjSCORM2004LearningModuleGUI\insertChapter(), ilObjSCORM2004LearningModuleGUI\insertPage(), ilObjSCORM2004LearningModuleGUI\insertSco(), ilObjSCORM2004LearningModuleGUI\insertTemplate(), and pasteTree().
ilSCORM2004Node::read | ( | ) |
Read Data of Node.
Definition at line 212 of file class.ilSCORM2004Node.php.
References $db, $ilDB, $query, setImportId(), and setTitle().
Referenced by __construct().
ilSCORM2004Node::setDataRecord | ( | $a_record | ) |
this method should only be called by class ilSCORM2004NodeFactory
Definition at line 324 of file class.ilSCORM2004Node.php.
ilSCORM2004Node::setDescription | ( | $a_description | ) |
Set description.
string | Description |
Definition at line 84 of file class.ilSCORM2004Node.php.
ilSCORM2004Node::setId | ( | $a_id | ) |
Set Node ID.
int | Node ID |
Definition at line 174 of file class.ilSCORM2004Node.php.
Referenced by create().
ilSCORM2004Node::setImportId | ( | $a_id | ) |
Get Import ID.
int | Import ID |
Definition at line 204 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 124 of file class.ilSCORM2004Node.php.
Referenced by __construct().
ilSCORM2004Node::setSLMObject | ( | $a_slm_obj | ) |
Set Scorm Learning Module Object.
int | Scorm LM Object |
Definition at line 144 of file class.ilSCORM2004Node.php.
Referenced by __construct().
ilSCORM2004Node::setTitle | ( | $a_title | ) |
Set title.
string | $a_title | title |
Definition at line 64 of file class.ilSCORM2004Node.php.
Referenced by read().
ilSCORM2004Node::setType | ( | $a_type | ) |
Set type.
string | Type |
Definition at line 104 of file class.ilSCORM2004Node.php.
References $a_type.
Referenced by ilSCORM2004Chapter\__construct(), ilSCORM2004Sco\__construct(), ilSCORM2004PageNode\__construct(), ilSCORM2004Asset\__construct(), and ilSCORM2004SeqChapter\__construct().
|
static |
Check for unique types (all pages or all chapters or all scos)
Definition at line 714 of file class.ilSCORM2004Node.php.
References $type, _lookupType(), and array.
Referenced by ilSCORM2004NodeGUI\copyItems(), ilObjSCORM2004LearningModuleGUI\copyItems(), ilSCORM2004NodeGUI\cutItems(), and ilObjSCORM2004LearningModuleGUI\cutItems().
ilSCORM2004Node::update | ( | ) |
Update Node.
Definition at line 438 of file class.ilSCORM2004Node.php.
References $db, $ilDB, $query, getId(), getSLMId(), getTitle(), and updateMetaData().
ilSCORM2004Node::updateMetaData | ( | ) |
update meta data entry
Definition at line 289 of file class.ilSCORM2004Node.php.
References getId(), getSLMId(), getTitle(), and getType().
Referenced by update().
|
protected |
Definition at line 23 of file class.ilSCORM2004Node.php.
Referenced by ilSCORM2004Sco\create(), create(), ilSCORM2004Sco\delete(), delete(), ilSCORM2004Sco\read(), read(), ilSCORM2004Sco\update(), and update().
ilSCORM2004Node::$id |
Definition at line 32 of file class.ilSCORM2004Node.php.
Referenced by clipboardCopy(), clipboardCut(), create(), getId(), and MDUpdateListener().
ilSCORM2004Node::$slm_id |
Definition at line 30 of file class.ilSCORM2004Node.php.
Referenced by _getIdForImportId(), and getSLMId().
ilSCORM2004Node::$slm_object |
Definition at line 33 of file class.ilSCORM2004Node.php.
Referenced by getContentObject(), and getSLMObject().
ilSCORM2004Node::$type |
Definition at line 31 of file class.ilSCORM2004Node.php.
Referenced by ilSCORM2004Asset\getExportFiles(), getType(), and uniqueTypesCheck().
|
protected |
Definition at line 28 of file class.ilSCORM2004Node.php.
Referenced by createMetaData().