| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
Class ilSCORM2004Asset. More...
 Inheritance diagram for ilSCORM2004Asset:
 Inheritance diagram for ilSCORM2004Asset: Collaboration diagram for ilSCORM2004Asset:
 Collaboration diagram for ilSCORM2004Asset:| Public Member Functions | |
| __construct ($a_slm_object, $a_id=0) | |
| Constructor. | |
| delete ($a_delete_meta_data=true) | |
| Delete a SCO. | |
| create ($a_upload=false, $a_template=false) | |
| Create asset. | |
| copy ($a_target_slm) | |
| Copy sco. | |
| exportScorm ($a_inst, $a_target_dir, $ver, &$expLog) | |
| exportHTML ($a_inst, $a_target_dir, &$expLog, $a_asset_type="sco", $a_one_file="") | |
| 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, $a_asset_type="sco", $a_one_file="", $a_sco_tpl=null) | |
| Export HTML pages of SCO. | |
| 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 () | |
| Static Public Member Functions | |
| static | renderNavigation ($a_tpl, $a_spacer_img="", $a_lang="") | 
| Render navigation. | |
| static | renderMetaPage ($a_tpl, $a_sco, $a_asset_type="", $mode="") | 
| Render meta page (description/objectives at beginning) | |
| static | convertLists ($a_text) | 
| Convert * and # to lists. | |
|  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 | 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 | |
| $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) | |
Class ilSCORM2004Asset.
Asset class for SCORM 2004 Editing
Definition at line 16 of file class.ilSCORM2004Asset.php.
| ilSCORM2004Asset::__construct | ( | $a_slm_object, | |
| $a_id = 0 | |||
| ) | 
Constructor.
Reimplemented in ilSCORM2004Sco.
Definition at line 23 of file class.ilSCORM2004Asset.php.
References ilSCORM2004Node\ilSCORM2004Node(), and ilSCORM2004Node\setType().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Convert * and # to lists.
| string | $a_text | text | 
Definition at line 661 of file class.ilSCORM2004Asset.php.
References ilPCParagraph\input2xmlReplaceLists().
Referenced by ilObjectivesAlignmentTableGUI\fillRow().
 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:| ilSCORM2004Asset::copy | ( | $a_target_slm | ) | 
Copy sco.
Reimplemented in ilSCORM2004Sco.
Definition at line 78 of file class.ilSCORM2004Asset.php.
References ilSCORM2004Node\getDescription(), ilSCORM2004Node\getId(), ilSCORM2004Node\getSLMId(), ilSCORM2004Node\getTitle(), and ilSCORM2004Node\getType().
Referenced by exportFileItems(), exportHTMLPageObjects(), exportPDF(), and 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:| ilSCORM2004Asset::create | ( | $a_upload = false, | |
| $a_template = false | |||
| ) | 
Create asset.
Reimplemented in ilSCORM2004Sco.
Definition at line 43 of file class.ilSCORM2004Asset.php.
References ilSCORM2004Node\getId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSCORM2004Asset::delete | ( | $a_delete_meta_data = true | ) | 
Delete a SCO.
Definition at line 32 of file class.ilSCORM2004Asset.php.
References delete_rec(), ilSCORM2004Node\deleteSeqInfo(), and ilSCORM2004Node\getId().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Delete Nested Page Objects.
Definition at line 57 of file class.ilSCORM2004Asset.php.
References ilSCORM2004Node\delete(), ilSCORM2004Node\getId(), and ilSCORM2004NodeFactory\getInstance().
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:| ilSCORM2004Asset::exportFileItems | ( | $a_target_dir, | |
| & | $expLog | ||
| ) | 
export files of file itmes
Definition at line 800 of file class.ilSCORM2004Asset.php.
References ilObject\_exists(), ilObject\_lookupType(), and copy().
Referenced by exportHTMLPageObjects(), and exportPDFPrepareXmlNFiles().
 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:| ilSCORM2004Asset::exportHTML | ( | $a_inst, | |
| $a_target_dir, | |||
| & | $expLog, | ||
| $a_asset_type = "sco", | |||
| $a_one_file = "" | |||
| ) | 
Definition at line 172 of file class.ilSCORM2004Asset.php.
References exportHTMLPageObjects().
Referenced by ilSCORM2004EntryAsset\exportScorm(), ilSCORM2004FinalAsset\exportScorm(), and 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:| ilSCORM2004Asset::exportHTML4PDF | ( | $a_inst, | |
| $a_target_dir, | |||
| & | $expLog | ||
| ) | 
Definition at line 183 of file class.ilSCORM2004Asset.php.
References exportHTMLPageObjects(), and ilUtil\makeDir().
Referenced by exportPDFPrepareXmlNFiles().
 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:| ilSCORM2004Asset::exportHTMLPageObjects | ( | $a_inst, | |
| $a_target_dir, | |||
| & | $expLog, | ||
| $mode, | |||
| $a_asset_type = "sco", | |||
| $a_one_file = "", | |||
| $a_sco_tpl = null | |||
| ) | 
Export HTML pages of SCO.
Definition at line 267 of file class.ilSCORM2004Asset.php.
References $ilBench, $ilCtrl, $ilLog, $lng, $tpl, ilInternalLink\_extractObjIdOfTarget(), assQuestionGUI\_getQuestionGUI(), ilPageObject\_getQuestionIdsForPage(), copy(), exportFileItems(), ilObjSAHSLearningModule\getAffectiveLocalization(), ilGlossaryDefinition\getDefinitionList(), ilQuestionExporter\getFiles(), ilSCORM2004PageGUI\getGlossaryHTML(), ilSCORM2004ScoGUI\getGlossaryOverviewId(), getGlossaryTermIds(), ilSCORM2004Node\getId(), ilPageObjectGUI\getJSTextInitCode(), ilQuestionExporter\getMobs(), ilSCORM2004Node\getTitle(), ilSCORM2004Node\getType(), IL_PAGE_OFFLINE, ilQuestionExporter\indicateNewSco(), ilSCORM2004PageGUI\initExport(), ilQuestionExporter\questionsJS(), renderMetaPage(), renderNavigation(), and ilPageObjectGUI\setPresentationTitle().
Referenced by exportHTML(), and exportHTML4PDF().
 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:| ilSCORM2004Asset::exportPDF | ( | $a_inst, | |
| $a_target_dir, | |||
| & | $expLog | ||
| ) | 
Definition at line 191 of file class.ilSCORM2004Asset.php.
References $ilCtrl, $lng, $results, $tpl, copy(), exportPDFPrepareXmlNFiles(), ilFileUtils\recursive_dirscan(), and ilXmlWriter\xmlStartTag().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSCORM2004Asset::exportPDFPrepareXmlNFiles | ( | $a_inst, | |
| $a_target_dir, | |||
| & | $expLog, | ||
| & | $a_xml_writer | ||
| ) | 
Definition at line 227 of file class.ilSCORM2004Asset.php.
References $ilCtrl, $lng, $tpl, ilPageObject\_getQuestionIdsForPage(), assQuestion\_instanciateQuestion(), exportFileItems(), exportHTML4PDF(), exportXMLMediaObjects(), and exportXMLPageObjects().
Referenced by exportPDF().
 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:| ilSCORM2004Asset::exportScorm | ( | $a_inst, | |
| $a_target_dir, | |||
| $ver, | |||
| & | $expLog | ||
| ) | 
Definition at line 102 of file class.ilSCORM2004Asset.php.
References $data, $ilBench, copy(), exportHTML(), exportXMLMediaObjects(), exportXMLMetaData(), exportXMLPageObjects(), ilSCORM2004Node\getId(), ilSCORM2004Node\getObjectives(), ilSCORM2004Node\getType(), ilXmlWriter\xmlSetDtdDef(), xslt_create(), xslt_free(), and xslt_process().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSCORM2004Asset::exportXMLMediaObjects | ( | & | $a_xml_writer, | 
| $a_inst, | |||
| $a_target_dir, | |||
| & | $expLog | ||
| ) | 
Definition at line 752 of file class.ilSCORM2004Asset.php.
Referenced by exportPDFPrepareXmlNFiles(), and exportScorm().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilSCORM2004Asset::exportXMLMetaData | ( | & | $a_xml_writer | ) | 
Definition at line 865 of file class.ilSCORM2004Asset.php.
References ilSCORM2004Node\getId(), ilSCORM2004Node\getSLMId(), and ilSCORM2004Node\getType().
Referenced by 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:| ilSCORM2004Asset::exportXMLPageObjects | ( | $a_target_dir, | |
| & | $a_xml_writer, | ||
| $a_inst, | |||
| & | $expLog | ||
| ) | 
Definition at line 700 of file class.ilSCORM2004Asset.php.
References $ilBench, ilPageObject\_getQuestionIdsForPage(), and assQuestion\_instanciateQuestion().
Referenced by exportPDFPrepareXmlNFiles(), and 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:| 
 | private | 
Definition at line 681 of file class.ilSCORM2004Asset.php.
| ilSCORM2004Asset::getExportFiles | ( | ) | 
Definition at line 874 of file class.ilSCORM2004Asset.php.
References $file, ilSCORM2004Node\$type, ilSCORM2004Node\getId(), and ilSCORM2004Node\getType().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilSCORM2004Asset::getGlossaryTermIds | ( | ) | 
Get glossary term ids in sco.
| @return | 
Definition at line 924 of file class.ilSCORM2004Asset.php.
References ilInternalLink\_getTargetsOfSource(), ilGlossaryTerm\_lookGlossaryTerm(), and ilSCORM2004Node\getId().
Referenced by exportHTMLPageObjects().
 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:| 
 | private | 
Definition at line 692 of file class.ilSCORM2004Asset.php.
References $ret.
| 
 | static | 
Render meta page (description/objectives at beginning)
| object | $a_tpl | template | 
| object | $a_sco | SCO | 
| string | $a_asset_type | asset type | 
| string | $a_mode | mode | 
Definition at line 588 of file class.ilSCORM2004Asset.php.
References $lng, and ilMD\getGeneral().
Referenced by exportHTMLPageObjects(), and ilSCORM2004ScoGUI\sco_preview().
 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 | 
Render navigation.
| object | $a_tpl | template | 
| string | $a_spacer_img | path to spacer image | 
Definition at line 555 of file class.ilSCORM2004Asset.php.
References $lng, and ilUtil\getImagePath().
Referenced by exportHTMLPageObjects(), and ilSCORM2004ScoGUI\sco_preview().
 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:| ilSCORM2004Asset::$q_media = null | 
Definition at line 18 of file class.ilSCORM2004Asset.php.