ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilSCORM2004Asset. More...
Public Member Functions | |
__construct ($a_slm_object, $a_id=0) | |
Constructor. More... | |
delete ($a_delete_meta_data=true) | |
Delete a SCO. More... | |
create ($a_upload=false, $a_template=false) | |
Create asset. More... | |
insertDefaultSequencingItem () | |
Insert default sequencing item. More... | |
copy ($a_target_slm) | |
Copy sco. More... | |
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. More... | |
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 More... | |
exportXMLMetaData (&$a_xml_writer) | |
getExportFiles () | |
getGlossaryTermIds () | |
Get glossary term ids in sco. More... | |
Public Member Functions inherited from ilSCORM2004Node | |
__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 () | |
exportAsScorm12 () | |
exportAsScorm13 () | |
Static Public Member Functions | |
static | renderNavigation ($a_tpl, $a_spacer_img="", $a_lang="") |
Render navigation. More... | |
static | renderMetaPage ($a_tpl, $a_sco, $a_asset_type="", $mode="") |
Render meta page (description/objectives at beginning) More... | |
static | convertLists ($a_text) |
Convert * and # to lists. More... | |
Static Public Member Functions inherited from ilSCORM2004Node | |
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 | |
$q_media = null | |
Data Fields inherited from ilSCORM2004Node | |
$slm_id | |
$type | |
$id | |
$slm_object | |
Protected Attributes | |
$tpl | |
$lng | |
$ctrl | |
Protected Attributes inherited from ilSCORM2004Node | |
$db | |
$user | |
Private Member Functions | |
delete_rec ($a_delete_meta_data=true) | |
Delete Nested Page Objects. More... | |
Static Private Member Functions | |
static | fixFullscreeenLink ($matches) |
static | 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.
Definition at line 38 of file class.ilSCORM2004Asset.php.
References $DIC, and ilSCORM2004Node\setType().
|
static |
Convert * and # to lists.
string | $a_text | text |
Definition at line 672 of file class.ilSCORM2004Asset.php.
References ilPCParagraph\input2xmlReplaceLists().
Referenced by ilObjectivesAlignmentTableGUI\fillRow().
ilSCORM2004Asset::copy | ( | $a_target_slm | ) |
Copy sco.
Definition at line 107 of file class.ilSCORM2004Asset.php.
References ilSCORM2004Node\getDescription(), ilSCORM2004Node\getId(), ilSCORM2004Node\getSLMId(), ilSCORM2004Node\getTitle(), and ilSCORM2004Node\getType().
Referenced by exportFileItems(), exportHTMLPageObjects(), and exportScorm().
ilSCORM2004Asset::create | ( | $a_upload = false , |
|
$a_template = false |
|||
) |
Create asset.
Definition at line 63 of file class.ilSCORM2004Asset.php.
References insertDefaultSequencingItem().
ilSCORM2004Asset::delete | ( | $a_delete_meta_data = true | ) |
Delete a SCO.
Definition at line 52 of file class.ilSCORM2004Asset.php.
References delete_rec(), and ilSCORM2004Node\getId().
|
private |
Delete Nested Page Objects.
Definition at line 89 of file class.ilSCORM2004Asset.php.
References ilSCORM2004Node\getId(), and ilSCORM2004NodeFactory\getInstance().
Referenced by delete().
ilSCORM2004Asset::exportFileItems | ( | $a_target_dir, | |
& | $expLog | ||
) |
export files of file itmes
Definition at line 804 of file class.ilSCORM2004Asset.php.
References ilObject\_exists(), ilObject\_lookupType(), copy(), and Monolog\Handler\error_log().
Referenced by exportHTMLPageObjects(), and exportPDFPrepareXmlNFiles().
ilSCORM2004Asset::exportHTML | ( | $a_inst, | |
$a_target_dir, | |||
& | $expLog, | ||
$a_asset_type = "sco" , |
|||
$a_one_file = "" |
|||
) |
Definition at line 197 of file class.ilSCORM2004Asset.php.
References exportHTMLPageObjects().
Referenced by exportScorm().
ilSCORM2004Asset::exportHTML4PDF | ( | $a_inst, | |
$a_target_dir, | |||
& | $expLog | ||
) |
Definition at line 216 of file class.ilSCORM2004Asset.php.
References exportHTMLPageObjects(), and ilUtil\makeDir().
Referenced by exportPDFPrepareXmlNFiles().
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 299 of file class.ilSCORM2004Asset.php.
References $html, $i, Sabre\VObject\$output, $style, $tree, ilInternalLink\_extractObjIdOfTarget(), assQuestionGUI\_getQuestionGUI(), ilPCQuestion\_getQuestionIdsForPage(), ilPCFileList\collectFileItems(), copy(), exportFileItems(), ilObjSAHSLearningModule\getAffectiveLocalization(), ilGlossaryDefinition\getDefinitionList(), ilQuestionExporter\getFiles(), ilSCORM2004PageGUI\getGlossaryHTML(), ilSCORM2004ScoGUI\getGlossaryOverviewId(), getGlossaryTermIds(), ilSCORM2004Node\getId(), ilPCQuestion\getJSTextInitCode(), ilQuestionExporter\getMobs(), ilSCORM2004Node\getTitle(), ilSCORM2004Node\getType(), IL_PAGE_OFFLINE, ilQuestionExporter\indicateNewSco(), ilSCORM2004PageGUI\initExport(), ilQuestionExporter\questionsJS(), assQuestionGUI\RENDER_PURPOSE_PREVIEW, and ilPageObjectGUI\setPresentationTitle().
Referenced by exportHTML(), and exportHTML4PDF().
ilSCORM2004Asset::exportPDF | ( | $a_inst, | |
$a_target_dir, | |||
& | $expLog | ||
) |
Definition at line 224 of file class.ilSCORM2004Asset.php.
References $ctrl, $ilCtrl, $key, $lng, $results, $tpl, exportPDFPrepareXmlNFiles(), ilFileUtils\recursive_dirscan(), and ilXmlWriter\xmlStartTag().
ilSCORM2004Asset::exportPDFPrepareXmlNFiles | ( | $a_inst, | |
$a_target_dir, | |||
& | $expLog, | ||
& | $a_xml_writer | ||
) |
Definition at line 259 of file class.ilSCORM2004Asset.php.
References $ctrl, $ilCtrl, $lng, $tpl, $tree, $x, ilPCQuestion\_getQuestionIdsForPage(), assQuestion\_instanciateQuestion(), exportFileItems(), exportHTML4PDF(), exportXMLMediaObjects(), and exportXMLPageObjects().
Referenced by exportPDF().
ilSCORM2004Asset::exportScorm | ( | $a_inst, | |
$a_target_dir, | |||
$ver, | |||
& | $expLog | ||
) |
Definition at line 130 of file class.ilSCORM2004Asset.php.
References $data, Sabre\VObject\$output, copy(), exportHTML(), exportXMLMediaObjects(), exportXMLMetaData(), exportXMLPageObjects(), ilSCORM2004Node\getId(), ilSCORM2004Node\getObjectives(), ilSCORM2004Node\getType(), ilXmlWriter\xmlSetDtdDef(), xslt_create(), and xslt_free().
ilSCORM2004Asset::exportXMLMediaObjects | ( | & | $a_xml_writer, |
$a_inst, | |||
$a_target_dir, | |||
& | $expLog | ||
) |
Definition at line 760 of file class.ilSCORM2004Asset.php.
References ilObject\_lookupType().
Referenced by exportPDFPrepareXmlNFiles(), and exportScorm().
ilSCORM2004Asset::exportXMLMetaData | ( | & | $a_xml_writer | ) |
Definition at line 863 of file class.ilSCORM2004Asset.php.
References ilSCORM2004Node\getId(), ilSCORM2004Node\getSLMId(), and ilSCORM2004Node\getType().
Referenced by exportScorm().
ilSCORM2004Asset::exportXMLPageObjects | ( | $a_target_dir, | |
& | $a_xml_writer, | ||
$a_inst, | |||
& | $expLog | ||
) |
Definition at line 712 of file class.ilSCORM2004Asset.php.
References $tree, ilPCQuestion\_getQuestionIdsForPage(), and assQuestion\_instantiateQuestion().
Referenced by exportPDFPrepareXmlNFiles(), and exportScorm().
|
staticprivate |
Definition at line 693 of file class.ilSCORM2004Asset.php.
ilSCORM2004Asset::getExportFiles | ( | ) |
Definition at line 872 of file class.ilSCORM2004Asset.php.
References ilSCORM2004Node\$type, ilSCORM2004Node\getId(), and ilSCORM2004Node\getType().
ilSCORM2004Asset::getGlossaryTermIds | ( | ) |
Get glossary term ids in sco.
Definition at line 918 of file class.ilSCORM2004Asset.php.
References $c, $l, $links, ilInternalLink\_getTargetsOfSource(), ilGlossaryTerm\_lookGlossaryTerm(), and ilSCORM2004Node\getId().
Referenced by exportHTMLPageObjects().
ilSCORM2004Asset::insertDefaultSequencingItem | ( | ) |
Insert default sequencing item.
Definition at line 79 of file class.ilSCORM2004Asset.php.
References ilSCORM2004Node\getId().
Referenced by create().
|
staticprivate |
|
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 607 of file class.ilSCORM2004Asset.php.
References $DIC, $lng, and ilMD\getGeneral().
Referenced by ilSCORM2004ScoGUI\sco_preview().
|
static |
Render navigation.
object | $a_tpl | template |
string | $a_spacer_img | path to spacer image |
Definition at line 574 of file class.ilSCORM2004Asset.php.
References $DIC, $lng, and ilUtil\getImagePath().
Referenced by ilSCORM2004ScoGUI\sco_preview().
|
protected |
Definition at line 31 of file class.ilSCORM2004Asset.php.
Referenced by exportPDF(), and exportPDFPrepareXmlNFiles().
|
protected |
Definition at line 26 of file class.ilSCORM2004Asset.php.
Referenced by exportPDF(), exportPDFPrepareXmlNFiles(), renderMetaPage(), and renderNavigation().
ilSCORM2004Asset::$q_media = null |
Definition at line 33 of file class.ilSCORM2004Asset.php.
|
protected |
Definition at line 21 of file class.ilSCORM2004Asset.php.
Referenced by exportPDF(), and exportPDFPrepareXmlNFiles().