ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Public Member Functions | |
__construct (?int $packageId=null) | |
load (int $packageId) | |
il_import (string $packageFolder, int $packageId, bool $reimport=false) | |
Imports an extracted SCORM 2004 module from ilias-data dir into database. More... | |
jsonNode (object $node, ?array &$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. More... | |
dbImport (object $node, ?int &$lft=1, ?int $depth=1, ?int $parent=0) | |
removeCMIData () | |
removeCPData () | |
dbRemoveAll () | |
transform (\DOMDocument $inputdoc, string $xslfile, ?string $outputpath=null) | |
Static Public Member Functions | |
static | _removeTrackingDataForUser (int $user_id) |
Data Fields | |
const | DB_ENCODE_XSL = '../components/ILIAS/Scorm2004/templates/xsl/op/op-scorm13.xsl' |
const | CONVERT_XSL = '../components/ILIAS/Scorm2004/templates/xsl/op/scorm12To2004.xsl' |
const | DB_DECODE_XSL = '../components/ILIAS/Scorm2004/templates/xsl/op/op-scorm13-revert.xsl' |
const | VALIDATE_XSD = '../vendor/ilias/Scorm2004/xsd/op/op-scorm13.xsd' |
const | WRAPPER_HTML = '../components/ILIAS/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/GenericRunTimeWrapper.htm' |
const | WRAPPER_JS = '../components/ILIAS/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/SCOPlayerWrapper.js' |
DOMDocument | $imsmanifest |
bool DOMDocument | $manifest |
array | $diagnostic |
int | $packageId |
string | $packageName = "" |
string | $packageHash = "" |
int | $userId |
Private Attributes | |
string | $packageFolder |
string | $packagesFolder |
array | $packageData = [] |
string | $imsmanifestFile |
array | $idmap = [] |
float | $progress = 0.0 |
Static Private Attributes | |
static array | $elements |
Definition at line 26 of file ilSCORM13Package.php.
ilSCORM13Package::__construct | ( | ?int | $packageId = null | ) |
Definition at line 84 of file ilSCORM13Package.php.
|
static |
Definition at line 571 of file ilSCORM13Package.php.
References ilSCORM2004DeleteData\removeCMIDataForUser().
Referenced by ilObjUser\delete().
ilSCORM13Package::dbImport | ( | object | $node, |
?int & | $lft = 1 , |
||
?int | $depth = 1 , |
||
?int | $parent = 0 |
||
) |
Definition at line 262 of file ilSCORM13Package.php.
References $DIC, $ilDB, $packageId, $res, ILIAS\Repository\int(), and null.
Referenced by il_import().
ilSCORM13Package::dbRemoveAll | ( | ) |
Definition at line 540 of file ilSCORM13Package.php.
References removeCMIData(), and removeCPData().
Referenced by il_import().
ilSCORM13Package::il_import | ( | string | $packageFolder, |
int | $packageId, | ||
bool | $reimport = false |
||
) |
Imports an extracted SCORM 2004 module from ilias-data dir into database.
ilSaxParserException |
Definition at line 114 of file ilSCORM13Package.php.
References Vendor\Package\$b, $DIC, $ilDB, $ilErr, $packageFolder, $packageId, $path, $r, $res, dbImport(), dbRemoveAll(), ilLoggerFactory\getLogger(), jsonNode(), null, ilUtil\stripSlashes(), and transform().
ilSCORM13Package::jsonNode | ( | object | $node, |
?array & | $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 243 of file ilSCORM13Package.php.
Referenced by il_import().
ilSCORM13Package::load | ( | int | $packageId | ) |
Definition at line 92 of file ilSCORM13Package.php.
References $DIC, $ilDB, $lm_set, and $packageId.
Referenced by __construct().
ilSCORM13Package::removeCMIData | ( | ) |
Definition at line 487 of file ilSCORM13Package.php.
References ilLPStatusWrapper\_refreshStatus(), and ilSCORM2004DeleteData\removeCMIDataForPackage().
Referenced by dbRemoveAll().
ilSCORM13Package::removeCPData | ( | ) |
Definition at line 493 of file ilSCORM13Package.php.
References $data, $DIC, $ilDB, $res, and ilLoggerFactory\getLogger().
Referenced by dbRemoveAll().
ilSCORM13Package::transform | ( | \DOMDocument | $inputdoc, |
string | $xslfile, | ||
?string | $outputpath = null |
||
) |
Definition at line 550 of file ilSCORM13Package.php.
References $r.
Referenced by il_import().
array ilSCORM13Package::$diagnostic |
Definition at line 46 of file ilSCORM13Package.php.
|
staticprivate |
Definition at line 59 of file ilSCORM13Package.php.
|
private |
Definition at line 53 of file ilSCORM13Package.php.
DOMDocument ilSCORM13Package::$imsmanifest |
Definition at line 44 of file ilSCORM13Package.php.
|
private |
Definition at line 42 of file ilSCORM13Package.php.
bool DOMDocument ilSCORM13Package::$manifest |
Definition at line 45 of file ilSCORM13Package.php.
|
private |
Definition at line 39 of file ilSCORM13Package.php.
|
private |
Definition at line 37 of file ilSCORM13Package.php.
Referenced by il_import().
string ilSCORM13Package::$packageHash = "" |
Definition at line 50 of file ilSCORM13Package.php.
int ilSCORM13Package::$packageId |
Definition at line 48 of file ilSCORM13Package.php.
Referenced by dbImport(), il_import(), and load().
string ilSCORM13Package::$packageName = "" |
Definition at line 49 of file ilSCORM13Package.php.
|
private |
Definition at line 38 of file ilSCORM13Package.php.
|
private |
Definition at line 54 of file ilSCORM13Package.php.
int ilSCORM13Package::$userId |
Definition at line 51 of file ilSCORM13Package.php.
const ilSCORM13Package::CONVERT_XSL = '../components/ILIAS/Scorm2004/templates/xsl/op/scorm12To2004.xsl' |
Definition at line 29 of file ilSCORM13Package.php.
const ilSCORM13Package::DB_DECODE_XSL = '../components/ILIAS/Scorm2004/templates/xsl/op/op-scorm13-revert.xsl' |
Definition at line 30 of file ilSCORM13Package.php.
const ilSCORM13Package::DB_ENCODE_XSL = '../components/ILIAS/Scorm2004/templates/xsl/op/op-scorm13.xsl' |
Definition at line 28 of file ilSCORM13Package.php.
const ilSCORM13Package::VALIDATE_XSD = '../vendor/ilias/Scorm2004/xsd/op/op-scorm13.xsd' |
Definition at line 31 of file ilSCORM13Package.php.
const ilSCORM13Package::WRAPPER_HTML = '../components/ILIAS/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/GenericRunTimeWrapper.htm' |
Definition at line 33 of file ilSCORM13Package.php.
const ilSCORM13Package::WRAPPER_JS = '../components/ILIAS/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/SCOPlayerWrapper.js' |
Definition at line 34 of file ilSCORM13Package.php.