ILIAS
eassessment Revision 61809
|
Public Member Functions | |
__construct ($packageId=null) | |
load ($packageId) | |
rollback () | |
exportZIP () | |
exportXML () | |
Export as internal XML. | |
il_import ($packageFolder, $packageId, $ilias, $validate, $reimport=false) | |
Imports an extracted SCORM 2004 module from ilias-data dir into database. | |
il_importSco ($packageId, $sco_id, $packageFolder) | |
Imports an extracted SCORM 2004 module from ilias-data dir into database. | |
il_importLM ($slm, $packageFolder) | |
importGlossary ($slm, $packageFolder) | |
dbImportLM ($node, $parent_id) | |
jsonNode ($node, &$sink) | |
Helper for UploadAndImport Recursively copies values from XML into PHP array for export as json Elements are translated into sub array, attributes into literals. | |
dbImportSco ($slm, $sco) | |
dbImport ($node, &$lft=1, $depth=1, $parent=0) | |
dbAddNew () | |
add new sahs and package record | |
removeCMIData () | |
removeCPData () | |
dbRemoveAll () | |
transform ($inputdoc, $xslfile, $outputpath=null) | |
validate ($doc, $schema) |
Static Public Member Functions | |
static | _removeTrackingDataForUser ($user_id) |
Data Fields | |
const | DB_ENCODE_XSL = './Modules/Scorm2004/templates/xsl/op/op-scorm13.xsl' |
const | CONVERT_XSL = './Modules/Scorm2004/templates/xsl/op/scorm12To2004.xsl' |
const | DB_DECODE_XSL = './Modules/Scorm2004/templates/xsl/op/op-scorm13-revert.xsl' |
const | VALIDATE_XSD = './Modules/Scorm2004/templates/xsd/op/op-scorm13.xsd' |
const | WRAPPER_HTML = './Modules/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/GenericRunTimeWrapper.htm' |
const | WRAPPER_JS = './Modules/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/SCOPlayerWrapper.js' |
$imsmanifest | |
$manifest | |
$diagnostic | |
$status | |
$packageId | |
$packageName | |
$packageHash | |
$userId |
Private Member Functions | |
setProgress ($progress, $msg= '') |
Private Attributes | |
$packageFile | |
$packageFolder | |
$packagesFolder | |
$packageData | |
$slm | |
$slm_tree | |
$idmap = array() | |
$progress = 0.0 |
Static Private Attributes | |
static | $elements |
Definition at line 18 of file ilSCORM13Package.php.
ilSCORM13Package::__construct | ( | $packageId = null | ) |
Definition at line 74 of file ilSCORM13Package.php.
References $GLOBALS, $packageId, and load().
|
static |
Definition at line 1089 of file ilSCORM13Package.php.
References $data, $ilDB, $query, and $res.
Referenced by ilObjUser\delete().
ilSCORM13Package::dbAddNew | ( | ) |
add new sahs and package record
Definition at line 889 of file ilSCORM13Package.php.
ilSCORM13Package::dbImport | ( | $node, | |
& | $lft = 1 , |
||
$depth = 1 , |
|||
$parent = 0 |
|||
) |
Definition at line 692 of file ilSCORM13Package.php.
References $ilDB, $query, and $res.
Referenced by il_import().
ilSCORM13Package::dbImportLM | ( | $node, | |
$parent_id | |||
) |
Definition at line 387 of file ilSCORM13Package.php.
References $l, ilSCORM2004Item\insert(), ilSCORM2004Node\putInTree(), ilTree\setTreeTablePK(), and ilSaxParser\startParsing().
Referenced by il_importLM().
ilSCORM13Package::dbImportSco | ( | $slm, | |
$sco | |||
) |
Definition at line 492 of file ilSCORM13Package.php.
References $d, $f, $filename, $l, $path, $slm, $t, ilObjMediaObject\_getDirectory(), ilUtil\getDir(), ilObjMediaObject\getMimeType(), IL_MO_PARSE_QTI, IL_MO_VERIFY_QTI, ilSCORM2004Node\putInTree(), ilFileUtils\recursive_dirscan(), ilUtil\renameExecutables(), ilSaxParser\startParsing(), ilUtil\stripSlashes(), and ilFileUtils\utf8_encode().
Referenced by il_importSco().
ilSCORM13Package::dbRemoveAll | ( | ) |
Definition at line 1032 of file ilSCORM13Package.php.
References removeCMIData(), and removeCPData().
Referenced by il_import(), and rollback().
ilSCORM13Package::exportXML | ( | ) |
Export as internal XML.
Definition at line 124 of file ilSCORM13Package.php.
References $ilDB, $res, and $row.
ilSCORM13Package::exportZIP | ( | ) |
Definition at line 114 of file ilSCORM13Package.php.
ilSCORM13Package::il_import | ( | $packageFolder, | |
$packageId, | |||
$ilias, | |||
$validate, | |||
$reimport = false |
|||
) |
Imports an extracted SCORM 2004 module from ilias-data dir into database.
public
Definition at line 149 of file ilSCORM13Package.php.
References $ilDB, $ilErr, $ilLog, $l, $packageFolder, $packageId, $x, ilObject\_lookupType(), dbImport(), dbRemoveAll(), jsonNode(), transform(), and validate().
ilSCORM13Package::il_importLM | ( | $slm, | |
$packageFolder | |||
) |
Definition at line 332 of file ilSCORM13Package.php.
References $ilDB, $ilLog, $packageFolder, $slm, dbImportLM(), and importGlossary().
ilSCORM13Package::il_importSco | ( | $packageId, | |
$sco_id, | |||
$packageFolder | |||
) |
Imports an extracted SCORM 2004 module from ilias-data dir into database.
public
Definition at line 270 of file ilSCORM13Package.php.
References $ilDB, $ilLog, $packageFolder, $packageId, $slm, and dbImportSco().
ilSCORM13Package::importGlossary | ( | $slm, | |
$packageFolder | |||
) |
Definition at line 356 of file ilSCORM13Package.php.
References $_GET, $packageFolder, and $slm.
Referenced by il_importLM().
ilSCORM13Package::jsonNode | ( | $node, | |
& | $sink | ||
) |
Helper for UploadAndImport Recursively copies values from XML into PHP array for export as json Elements are translated into sub array, attributes into literals.
xml | element to process |
reference | to array object where to copy values |
Definition at line 475 of file ilSCORM13Package.php.
References $name.
Referenced by il_import().
ilSCORM13Package::load | ( | $packageId | ) |
Definition at line 81 of file ilSCORM13Package.php.
References $ilDB, and $packageId.
Referenced by __construct().
ilSCORM13Package::removeCMIData | ( | ) |
Definition at line 914 of file ilSCORM13Package.php.
References $data, $ilDB, $query, $res, and ilLPStatusWrapper\_refreshStatus().
Referenced by dbRemoveAll().
ilSCORM13Package::removeCPData | ( | ) |
Definition at line 985 of file ilSCORM13Package.php.
References $data, $ilDB, $ilLog, $in, $res, and $t.
Referenced by dbRemoveAll().
ilSCORM13Package::rollback | ( | ) |
Definition at line 103 of file ilSCORM13Package.php.
References dbRemoveAll(), and setProgress().
|
private |
Definition at line 461 of file ilSCORM13Package.php.
References $progress.
Referenced by rollback().
ilSCORM13Package::transform | ( | $inputdoc, | |
$xslfile, | |||
$outputpath = null |
|||
) |
Definition at line 1039 of file ilSCORM13Package.php.
Referenced by il_import().
ilSCORM13Package::validate | ( | $doc, | |
$schema | |||
) |
Definition at line 1063 of file ilSCORM13Package.php.
References $error.
Referenced by il_import().
ilSCORM13Package::$diagnostic |
Definition at line 39 of file ilSCORM13Package.php.
|
staticprivate |
Definition at line 49 of file ilSCORM13Package.php.
|
private |
Definition at line 46 of file ilSCORM13Package.php.
ilSCORM13Package::$imsmanifest |
Definition at line 37 of file ilSCORM13Package.php.
ilSCORM13Package::$manifest |
Definition at line 38 of file ilSCORM13Package.php.
|
private |
Definition at line 33 of file ilSCORM13Package.php.
|
private |
Definition at line 30 of file ilSCORM13Package.php.
|
private |
Definition at line 31 of file ilSCORM13Package.php.
Referenced by il_import(), il_importLM(), il_importSco(), and importGlossary().
ilSCORM13Package::$packageHash |
Definition at line 43 of file ilSCORM13Package.php.
ilSCORM13Package::$packageId |
Definition at line 41 of file ilSCORM13Package.php.
Referenced by __construct(), il_import(), il_importSco(), and load().
ilSCORM13Package::$packageName |
Definition at line 42 of file ilSCORM13Package.php.
|
private |
Definition at line 32 of file ilSCORM13Package.php.
|
private |
Definition at line 47 of file ilSCORM13Package.php.
Referenced by setProgress().
|
private |
Definition at line 34 of file ilSCORM13Package.php.
Referenced by dbImportSco(), il_importLM(), il_importSco(), and importGlossary().
|
private |
Definition at line 35 of file ilSCORM13Package.php.
ilSCORM13Package::$status |
Definition at line 40 of file ilSCORM13Package.php.
ilSCORM13Package::$userId |
Definition at line 44 of file ilSCORM13Package.php.
const ilSCORM13Package::CONVERT_XSL = './Modules/Scorm2004/templates/xsl/op/scorm12To2004.xsl' |
Definition at line 22 of file ilSCORM13Package.php.
const ilSCORM13Package::DB_DECODE_XSL = './Modules/Scorm2004/templates/xsl/op/op-scorm13-revert.xsl' |
Definition at line 23 of file ilSCORM13Package.php.
const ilSCORM13Package::DB_ENCODE_XSL = './Modules/Scorm2004/templates/xsl/op/op-scorm13.xsl' |
Definition at line 21 of file ilSCORM13Package.php.
const ilSCORM13Package::VALIDATE_XSD = './Modules/Scorm2004/templates/xsd/op/op-scorm13.xsd' |
Definition at line 24 of file ilSCORM13Package.php.
const ilSCORM13Package::WRAPPER_HTML = './Modules/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/GenericRunTimeWrapper.htm' |
Definition at line 26 of file ilSCORM13Package.php.
const ilSCORM13Package::WRAPPER_JS = './Modules/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/SCOPlayerWrapper.js' |
Definition at line 27 of file ilSCORM13Package.php.