ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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 = './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 = './libs/ilias/Scorm2004/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' |
DOMDocument | $imsmanifest |
$manifest | |
array | $diagnostic |
int | $packageId |
string | $packageName = "" |
string | $packageHash = "" |
int | $userId |
Private Attributes | |
string | $packageFolder |
string | $packagesFolder |
array | $packageData = [] |
float | $progress = 0.0 |
Static Private Attributes | |
static array | $elements |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 26 of file ilSCORM13Package.php.
ilSCORM13Package::__construct | ( | ?int | $packageId = null | ) |
Definition at line 87 of file ilSCORM13Package.php.
References load().
|
static |
Definition at line 595 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 286 of file ilSCORM13Package.php.
References $DIC, $ilDB, ILIAS\LTI\ToolProvider\$key, $packageId, $query, $res, and ILIAS\Repository\int().
Referenced by il_import().
ilSCORM13Package::dbRemoveAll | ( | ) |
Definition at line 564 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 117 of file ilSCORM13Package.php.
References Vendor\Package\$b, $DIC, $i, $ilDB, $ilErr, $packageFolder, $packageId, $path, $res, ilObject\_lookupType(), ilObject\_writeDescription(), dbImport(), dbRemoveAll(), ilLoggerFactory\getLogger(), jsonNode(), 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 267 of file ilSCORM13Package.php.
References $name.
Referenced by il_import().
ilSCORM13Package::load | ( | int | $packageId | ) |
Definition at line 95 of file ilSCORM13Package.php.
References $DIC, $ilDB, $lm_set, and $packageId.
Referenced by __construct().
ilSCORM13Package::removeCMIData | ( | ) |
Definition at line 511 of file ilSCORM13Package.php.
References ilLPStatusWrapper\_refreshStatus(), and ilSCORM2004DeleteData\removeCMIDataForPackage().
Referenced by dbRemoveAll().
ilSCORM13Package::removeCPData | ( | ) |
Definition at line 517 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 574 of file ilSCORM13Package.php.
Referenced by il_import().
array ilSCORM13Package::$diagnostic |
Definition at line 49 of file ilSCORM13Package.php.
|
staticprivate |
Definition at line 62 of file ilSCORM13Package.php.
DOMDocument ilSCORM13Package::$imsmanifest |
Definition at line 44 of file ilSCORM13Package.php.
ilSCORM13Package::$manifest |
Definition at line 48 of file ilSCORM13Package.php.
|
private |
Definition at line 40 of file ilSCORM13Package.php.
|
private |
Definition at line 38 of file ilSCORM13Package.php.
Referenced by il_import().
string ilSCORM13Package::$packageHash = "" |
Definition at line 53 of file ilSCORM13Package.php.
int ilSCORM13Package::$packageId |
Definition at line 51 of file ilSCORM13Package.php.
Referenced by dbImport(), il_import(), and load().
string ilSCORM13Package::$packageName = "" |
Definition at line 52 of file ilSCORM13Package.php.
|
private |
Definition at line 39 of file ilSCORM13Package.php.
|
private |
Definition at line 57 of file ilSCORM13Package.php.
int ilSCORM13Package::$userId |
Definition at line 54 of file ilSCORM13Package.php.
const ilSCORM13Package::CONVERT_XSL = './Modules/Scorm2004/templates/xsl/op/scorm12To2004.xsl' |
Definition at line 29 of file ilSCORM13Package.php.
const ilSCORM13Package::DB_DECODE_XSL = './Modules/Scorm2004/templates/xsl/op/op-scorm13-revert.xsl' |
Definition at line 30 of file ilSCORM13Package.php.
const ilSCORM13Package::DB_ENCODE_XSL = './Modules/Scorm2004/templates/xsl/op/op-scorm13.xsl' |
Definition at line 28 of file ilSCORM13Package.php.
const ilSCORM13Package::VALIDATE_XSD = './libs/ilias/Scorm2004/xsd/op/op-scorm13.xsd' |
Definition at line 31 of file ilSCORM13Package.php.
const ilSCORM13Package::WRAPPER_HTML = './Modules/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/GenericRunTimeWrapper.htm' |
Definition at line 33 of file ilSCORM13Package.php.
const ilSCORM13Package::WRAPPER_JS = './Modules/Scorm2004/scripts/converter/GenericRunTimeWrapper1.0_aadlc/SCOPlayerWrapper.js' |
Definition at line 34 of file ilSCORM13Package.php.