ILIAS
Release_3_10_x_branch Revision 61812
|
Public Member Functions | |
__construct ($packageId=null) | |
load ($packageId) | |
rollback () | |
exportZIP () | |
exportXML () | |
Export as internal XML. | |
removeCMIData () | |
il_import ($packageFolder, $packageId, $ilias, $validate) | |
Imports an extracted SCORM 2004 module from ilias-data dir into database. | |
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. | |
dbImport ($node, &$lft=1, $depth=1, $parent=0) | |
dbAddNew () | |
add new sahs and package record | |
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 | |
$idmap = array() | |
$progress = 0.0 |
Static Private Attributes | |
static | $elements |
Definition at line 34 of file ilSCORM13Package.php.
ilSCORM13Package::__construct | ( | $packageId = null | ) |
Definition at line 88 of file ilSCORM13Package.php.
References $GLOBALS, $packageId, and load().
ilSCORM13Package::dbAddNew | ( | ) |
add new sahs and package record
Definition at line 437 of file ilSCORM13Package.php.
ilSCORM13Package::dbImport | ( | $node, | |
& | $lft = 1 , |
||
$depth = 1 , |
|||
$parent = 0 |
|||
) |
Definition at line 332 of file ilSCORM13Package.php.
Referenced by il_import().
ilSCORM13Package::dbRemoveAll | ( | ) |
Definition at line 464 of file ilSCORM13Package.php.
References $t.
Referenced by rollback().
ilSCORM13Package::exportXML | ( | ) |
Export as internal XML.
Definition at line 138 of file ilSCORM13Package.php.
References DB_FETCHMODE_ASSOC.
ilSCORM13Package::exportZIP | ( | ) |
Definition at line 128 of file ilSCORM13Package.php.
ilSCORM13Package::il_import | ( | $packageFolder, | |
$packageId, | |||
$ilias, | |||
$validate | |||
) |
Imports an extracted SCORM 2004 module from ilias-data dir into database.
public
Definition at line 179 of file ilSCORM13Package.php.
References $ilLog, $packageFolder, $packageId, dbImport(), jsonNode(), transform(), and validate().
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 315 of file ilSCORM13Package.php.
Referenced by il_import().
ilSCORM13Package::load | ( | $packageId | ) |
Definition at line 95 of file ilSCORM13Package.php.
References $packageId, and DB_FETCHMODE_ASSOC.
Referenced by __construct().
ilSCORM13Package::removeCMIData | ( | ) |
Definition at line 152 of file ilSCORM13Package.php.
References DB_FETCHMODE_ASSOC.
ilSCORM13Package::rollback | ( | ) |
Definition at line 117 of file ilSCORM13Package.php.
References dbRemoveAll(), and setProgress().
|
private |
Definition at line 301 of file ilSCORM13Package.php.
References $progress.
Referenced by rollback().
ilSCORM13Package::transform | ( | $inputdoc, | |
$xslfile, | |||
$outputpath = null |
|||
) |
Definition at line 498 of file ilSCORM13Package.php.
Referenced by il_import().
ilSCORM13Package::validate | ( | $doc, | |
$schema | |||
) |
Definition at line 522 of file ilSCORM13Package.php.
Referenced by il_import().
ilSCORM13Package::$diagnostic |
Definition at line 53 of file ilSCORM13Package.php.
|
staticprivate |
Definition at line 63 of file ilSCORM13Package.php.
|
private |
Definition at line 60 of file ilSCORM13Package.php.
ilSCORM13Package::$imsmanifest |
Definition at line 51 of file ilSCORM13Package.php.
ilSCORM13Package::$manifest |
Definition at line 52 of file ilSCORM13Package.php.
|
private |
Definition at line 49 of file ilSCORM13Package.php.
|
private |
Definition at line 46 of file ilSCORM13Package.php.
|
private |
Definition at line 47 of file ilSCORM13Package.php.
Referenced by il_import().
ilSCORM13Package::$packageHash |
Definition at line 57 of file ilSCORM13Package.php.
ilSCORM13Package::$packageId |
Definition at line 55 of file ilSCORM13Package.php.
Referenced by __construct(), il_import(), and load().
ilSCORM13Package::$packageName |
Definition at line 56 of file ilSCORM13Package.php.
|
private |
Definition at line 48 of file ilSCORM13Package.php.
|
private |
Definition at line 61 of file ilSCORM13Package.php.
Referenced by setProgress().
ilSCORM13Package::$status |
Definition at line 54 of file ilSCORM13Package.php.
ilSCORM13Package::$userId |
Definition at line 58 of file ilSCORM13Package.php.
const ilSCORM13Package::CONVERT_XSL = './Modules/Scorm2004/templates/xsl/op/scorm12To2004.xsl' |
Definition at line 38 of file ilSCORM13Package.php.
const ilSCORM13Package::DB_DECODE_XSL = './Modules/Scorm2004/templates/xsl/op/op-scorm13-revert.xsl' |
Definition at line 39 of file ilSCORM13Package.php.
const ilSCORM13Package::DB_ENCODE_XSL = './Modules/Scorm2004/templates/xsl/op/op-scorm13.xsl' |
Definition at line 37 of file ilSCORM13Package.php.
const ilSCORM13Package::VALIDATE_XSD = './Modules/Scorm2004/templates/xsd/op/op-scorm13.xsd' |
Definition at line 40 of file ilSCORM13Package.php.
const ilSCORM13Package::WRAPPER_HTML = './Modules/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/GenericRunTimeWrapper.htm' |
Definition at line 42 of file ilSCORM13Package.php.
const ilSCORM13Package::WRAPPER_JS = './Modules/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/SCOPlayerWrapper.js' |
Definition at line 43 of file ilSCORM13Package.php.