ILIAS
Release_4_1_x_branch Revision 61804
|
Class ilSCORM2004Sco. More...
Public Member Functions | |
ilSCORM2004Sco ($a_slm_object, $a_id=0) | |
Constructor public. | |
delete ($a_delete_meta_data=true) | |
Delete a SCO. | |
create ($a_upload=false, $a_template=false) | |
overwritten method | |
copy ($a_target_slm) | |
Copy sco. | |
exportScorm ($a_inst, $a_target_dir, $ver, &$expLog) | |
exportHTML ($a_inst, $a_target_dir, &$expLog) | |
exportHTML4PDF ($a_inst, $a_target_dir, &$expLog) | |
exportPDF ($a_inst, $a_target_dir, &$expLog) | |
exportPDFPrepareXmlNFiles ($a_inst, $a_target_dir, &$expLog, &$a_xml_writer) | |
exportHTMLPageObjects ($a_inst, $a_target_dir, &$expLog, $mode) | |
exportXMLPageObjects ($a_target_dir, &$a_xml_writer, $a_inst, &$expLog) | |
exportXMLMediaObjects (&$a_xml_writer, $a_inst, $a_target_dir, &$expLog) | |
exportFileItems ($a_target_dir, &$expLog) | |
export files of file itmes | |
exportXMLMetaData (&$a_xml_writer) | |
getExportFiles () | |
getGlossaryTermIds () | |
Get glossary term ids in sco. | |
Public Member Functions inherited from ilSCORM2004Node | |
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 () |
Data Fields | |
$q_media = null | |
Data Fields inherited from ilSCORM2004Node | |
$slm_id | |
$type | |
$id | |
$slm_object |
Private Member Functions | |
delete_rec ($a_delete_meta_data=true) | |
Delete Nested Page Objects. | |
fixFullscreeenLink ($matches) | |
insertQuestion ($matches) |
Additional Inherited Members | |
Static Public Member Functions inherited from ilSCORM2004Node | |
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. |
Class ilSCORM2004Sco.
SCO class for SCORM 2004 Editing
Definition at line 17 of file class.ilSCORM2004Sco.php.
ilSCORM2004Sco::copy | ( | $a_target_slm | ) |
Copy sco.
Definition at line 85 of file class.ilSCORM2004Sco.php.
References ilSCORM2004Node\getDescription(), ilSCORM2004Node\getId(), ilSCORM2004Node\getSLMId(), ilSCORM2004Node\getTitle(), ilSCORM2004Node\getType(), and ilSCORM2004Sco().
Referenced by exportFileItems(), exportHTML(), exportPDF(), and exportScorm().
ilSCORM2004Sco::create | ( | $a_upload = false , |
|
$a_template = false |
|||
) |
overwritten method
Definition at line 46 of file class.ilSCORM2004Sco.php.
References ilSCORM2004Node\getId().
ilSCORM2004Sco::delete | ( | $a_delete_meta_data = true | ) |
Delete a SCO.
Definition at line 35 of file class.ilSCORM2004Sco.php.
References delete_rec(), ilSCORM2004Node\deleteSeqInfo(), and ilSCORM2004Node\getId().
|
private |
Delete Nested Page Objects.
Definition at line 64 of file class.ilSCORM2004Sco.php.
References ilSCORM2004Node\delete(), ilSCORM2004Node\getId(), and ilSCORM2004NodeFactory\getInstance().
Referenced by delete().
ilSCORM2004Sco::exportFileItems | ( | $a_target_dir, | |
& | $expLog | ||
) |
export files of file itmes
Definition at line 723 of file class.ilSCORM2004Sco.php.
References ilObject\_exists(), and copy().
Referenced by exportHTMLPageObjects(), and exportPDFPrepareXmlNFiles().
ilSCORM2004Sco::exportHTML | ( | $a_inst, | |
$a_target_dir, | |||
& | $expLog | ||
) |
Definition at line 176 of file class.ilSCORM2004Sco.php.
References $files, $ilBench, copy(), exportHTMLPageObjects(), ilObjStyleSheet\getContentStylePath(), ilYuiUtil\getLocalPath(), ilUtil\getStyleSheetLocation(), and ilUtil\makeDir().
Referenced by exportScorm().
ilSCORM2004Sco::exportHTML4PDF | ( | $a_inst, | |
$a_target_dir, | |||
& | $expLog | ||
) |
Definition at line 249 of file class.ilSCORM2004Sco.php.
References exportHTMLPageObjects(), and ilUtil\makeDir().
Referenced by exportPDFPrepareXmlNFiles().
ilSCORM2004Sco::exportHTMLPageObjects | ( | $a_inst, | |
$a_target_dir, | |||
& | $expLog, | ||
$mode | |||
) |
Definition at line 330 of file class.ilSCORM2004Sco.php.
References $ilBench, $ilCtrl, $ilLog, $lng, $tpl, ilInternalLink\_extractObjIdOfTarget(), assQuestionGUI\_getQuestionGUI(), ilPageObject\_getQuestionIdsForPage(), exportFileItems(), ilGlossaryDefinition\getDefinitionList(), ilQuestionExporter\getFiles(), ilSCORM2004PageGUI\getGlossaryHTML(), ilSCORM2004ScoGUI\getGlossaryOverviewId(), getGlossaryTermIds(), ilSCORM2004Node\getId(), ilQuestionExporter\getMobs(), ilSCORM2004Node\getObjectives(), ilSCORM2004Node\getSLMId(), ilSCORM2004Node\getTitle(), ilSCORM2004Node\getType(), IL_PAGE_OFFLINE, ilQuestionExporter\indicateNewSco(), ilSCORM2004PageGUI\initExport(), and ilQuestionExporter\questionsJS().
Referenced by exportHTML(), and exportHTML4PDF().
ilSCORM2004Sco::exportPDF | ( | $a_inst, | |
$a_target_dir, | |||
& | $expLog | ||
) |
Definition at line 257 of file class.ilSCORM2004Sco.php.
References $ilCtrl, $lng, $results, $tpl, copy(), exportPDFPrepareXmlNFiles(), ilFileUtils\recursive_dirscan(), and ilXmlWriter\xmlStartTag().
ilSCORM2004Sco::exportPDFPrepareXmlNFiles | ( | $a_inst, | |
$a_target_dir, | |||
& | $expLog, | ||
& | $a_xml_writer | ||
) |
Definition at line 293 of file class.ilSCORM2004Sco.php.
References $ilCtrl, $lng, $tpl, ilPageObject\_getQuestionIdsForPage(), assQuestion\_instanciateQuestion(), exportFileItems(), exportHTML4PDF(), exportXMLMediaObjects(), and exportXMLPageObjects().
Referenced by exportPDF().
ilSCORM2004Sco::exportScorm | ( | $a_inst, | |
$a_target_dir, | |||
$ver, | |||
& | $expLog | ||
) |
Definition at line 108 of file class.ilSCORM2004Sco.php.
References $data, $ilBench, copy(), exportHTML(), exportXMLMediaObjects(), exportXMLMetaData(), exportXMLPageObjects(), ilSCORM2004Node\getId(), ilSCORM2004Node\getObjectives(), ilXmlWriter\xmlSetDtdDef(), xslt_create(), xslt_free(), and xslt_process().
ilSCORM2004Sco::exportXMLMediaObjects | ( | & | $a_xml_writer, |
$a_inst, | |||
$a_target_dir, | |||
& | $expLog | ||
) |
Definition at line 675 of file class.ilSCORM2004Sco.php.
Referenced by exportPDFPrepareXmlNFiles(), and exportScorm().
ilSCORM2004Sco::exportXMLMetaData | ( | & | $a_xml_writer | ) |
Definition at line 781 of file class.ilSCORM2004Sco.php.
References ilSCORM2004Node\getId(), ilSCORM2004Node\getSLMId(), and ilSCORM2004Node\getType().
Referenced by exportScorm().
ilSCORM2004Sco::exportXMLPageObjects | ( | $a_target_dir, | |
& | $a_xml_writer, | ||
$a_inst, | |||
& | $expLog | ||
) |
Definition at line 614 of file class.ilSCORM2004Sco.php.
References $ilBench, ilPageObject\_getQuestionIdsForPage(), and assQuestion\_instanciateQuestion().
Referenced by exportPDFPrepareXmlNFiles(), and exportScorm().
|
private |
Definition at line 598 of file class.ilSCORM2004Sco.php.
ilSCORM2004Sco::getExportFiles | ( | ) |
Definition at line 790 of file class.ilSCORM2004Sco.php.
References $dir, $file, ilSCORM2004Node\$type, ilSCORM2004Node\getId(), and ilSCORM2004Node\getType().
ilSCORM2004Sco::getGlossaryTermIds | ( | ) |
Get glossary term ids in sco.
@return |
Definition at line 840 of file class.ilSCORM2004Sco.php.
References ilInternalLink\_getTargetsOfSource(), ilGlossaryTerm\_lookGlossaryTerm(), and ilSCORM2004Node\getId().
Referenced by exportHTMLPageObjects().
ilSCORM2004Sco::ilSCORM2004Sco | ( | $a_slm_object, | |
$a_id = 0 |
|||
) |
Constructor public.
Definition at line 26 of file class.ilSCORM2004Sco.php.
References ilSCORM2004Node\ilSCORM2004Node(), and ilSCORM2004Node\setType().
Referenced by copy().
|
private |
Definition at line 609 of file class.ilSCORM2004Sco.php.
ilSCORM2004Sco::$q_media = null |
Definition at line 20 of file class.ilSCORM2004Sco.php.