ILIAS
Release_4_0_x_branch Revision 61816
|
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) | |
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) |
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 37 of file ilSCORM13Package.php.
ilSCORM13Package::__construct | ( | $packageId = null | ) |
Definition at line 93 of file ilSCORM13Package.php.
References $GLOBALS, $packageId, and load().
ilSCORM13Package::dbAddNew | ( | ) |
add new sahs and package record
Definition at line 744 of file ilSCORM13Package.php.
ilSCORM13Package::dbImport | ( | $node, | |
& | $lft = 1 , |
||
$depth = 1 , |
|||
$parent = 0 |
|||
) |
Definition at line 547 of file ilSCORM13Package.php.
References $ilDB, $key, $query, and $res.
Referenced by il_import().
ilSCORM13Package::dbImportLM | ( | $node, | |
$parent_id | |||
) |
Definition at line 325 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 418 of file ilSCORM13Package.php.
References $d, $f, $l, $q, $result, $slm, $t, ilObjMediaObject\_getDirectory(), ilUtil\getDir(), IL_MO_PARSE_QTI, IL_MO_VERIFY_QTI, ilSCORM2004Node\putInTree(), ilUtil\renameExecutables(), and ilSaxParser\startParsing().
Referenced by il_importSco().
ilSCORM13Package::dbRemoveAll | ( | ) |
Definition at line 883 of file ilSCORM13Package.php.
References removeCMIData(), and removeCPData().
Referenced by il_import(), and rollback().
ilSCORM13Package::exportXML | ( | ) |
Export as internal XML.
Definition at line 143 of file ilSCORM13Package.php.
References $ilDB, $res, and $row.
ilSCORM13Package::exportZIP | ( | ) |
Definition at line 133 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 168 of file ilSCORM13Package.php.
References $ilDB, $ilErr, $ilLog, $packageFolder, $packageId, $x, dbImport(), dbRemoveAll(), jsonNode(), transform(), and validate().
ilSCORM13Package::il_importLM | ( | $slm, | |
$packageFolder | |||
) |
Definition at line 301 of file ilSCORM13Package.php.
References $ilDB, $ilLog, $packageFolder, $slm, and dbImportLM().
ilSCORM13Package::il_importSco | ( | $packageId, | |
$sco_id, | |||
$packageFolder | |||
) |
Imports an extracted SCORM 2004 module from ilias-data dir into database.
public
Definition at line 277 of file ilSCORM13Package.php.
References $ilDB, $ilLog, $packageFolder, $packageId, $slm, and dbImportSco().
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 401 of file ilSCORM13Package.php.
References $name.
Referenced by il_import().
ilSCORM13Package::load | ( | $packageId | ) |
Definition at line 100 of file ilSCORM13Package.php.
References $ilDB, and $packageId.
Referenced by __construct().
ilSCORM13Package::removeCMIData | ( | ) |
Definition at line 769 of file ilSCORM13Package.php.
References $data, $ilDB, $query, and $res.
Referenced by dbRemoveAll().
ilSCORM13Package::removeCPData | ( | ) |
Definition at line 836 of file ilSCORM13Package.php.
References $data, $ilDB, $ilLog, $in, $res, and $t.
Referenced by dbRemoveAll().
ilSCORM13Package::rollback | ( | ) |
Definition at line 122 of file ilSCORM13Package.php.
References dbRemoveAll(), and setProgress().
|
private |
Definition at line 387 of file ilSCORM13Package.php.
References $progress.
Referenced by rollback().
ilSCORM13Package::transform | ( | $inputdoc, | |
$xslfile, | |||
$outputpath = null |
|||
) |
Definition at line 890 of file ilSCORM13Package.php.
Referenced by il_import().
ilSCORM13Package::validate | ( | $doc, | |
$schema | |||
) |
Definition at line 914 of file ilSCORM13Package.php.
References $error.
Referenced by il_import().
ilSCORM13Package::$diagnostic |
Definition at line 58 of file ilSCORM13Package.php.
|
staticprivate |
Definition at line 68 of file ilSCORM13Package.php.
|
private |
Definition at line 65 of file ilSCORM13Package.php.
ilSCORM13Package::$imsmanifest |
Definition at line 56 of file ilSCORM13Package.php.
ilSCORM13Package::$manifest |
Definition at line 57 of file ilSCORM13Package.php.
|
private |
Definition at line 52 of file ilSCORM13Package.php.
|
private |
Definition at line 49 of file ilSCORM13Package.php.
|
private |
Definition at line 50 of file ilSCORM13Package.php.
Referenced by il_import(), il_importLM(), and il_importSco().
ilSCORM13Package::$packageHash |
Definition at line 62 of file ilSCORM13Package.php.
ilSCORM13Package::$packageId |
Definition at line 60 of file ilSCORM13Package.php.
Referenced by __construct(), il_import(), il_importSco(), and load().
ilSCORM13Package::$packageName |
Definition at line 61 of file ilSCORM13Package.php.
|
private |
Definition at line 51 of file ilSCORM13Package.php.
|
private |
Definition at line 66 of file ilSCORM13Package.php.
Referenced by setProgress().
|
private |
Definition at line 53 of file ilSCORM13Package.php.
Referenced by dbImportSco(), il_importLM(), and il_importSco().
|
private |
Definition at line 54 of file ilSCORM13Package.php.
ilSCORM13Package::$status |
Definition at line 59 of file ilSCORM13Package.php.
ilSCORM13Package::$userId |
Definition at line 63 of file ilSCORM13Package.php.
const ilSCORM13Package::CONVERT_XSL = './Modules/Scorm2004/templates/xsl/op/scorm12To2004.xsl' |
Definition at line 41 of file ilSCORM13Package.php.
const ilSCORM13Package::DB_DECODE_XSL = './Modules/Scorm2004/templates/xsl/op/op-scorm13-revert.xsl' |
Definition at line 42 of file ilSCORM13Package.php.
const ilSCORM13Package::DB_ENCODE_XSL = './Modules/Scorm2004/templates/xsl/op/op-scorm13.xsl' |
Definition at line 40 of file ilSCORM13Package.php.
const ilSCORM13Package::VALIDATE_XSD = './Modules/Scorm2004/templates/xsd/op/op-scorm13.xsd' |
Definition at line 43 of file ilSCORM13Package.php.
const ilSCORM13Package::WRAPPER_HTML = './Modules/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/GenericRunTimeWrapper.htm' |
Definition at line 45 of file ilSCORM13Package.php.
const ilSCORM13Package::WRAPPER_JS = './Modules/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/SCOPlayerWrapper.js' |
Definition at line 46 of file ilSCORM13Package.php.