| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 Collaboration diagram for ilSCORM13Package: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 | 
| 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 | 
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 84 of file ilSCORM13Package.php.
References load().
 Here is the call graph for this function:
      
  | 
  static | 
Definition at line 591 of file ilSCORM13Package.php.
References ilSCORM2004DeleteData\removeCMIDataForUser().
Referenced by ilObjUser\delete().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilSCORM13Package::dbImport | ( | object | $node, | 
| ?int & | $lft = 1,  | 
        ||
| ?int | $depth = 1,  | 
        ||
| ?int | $parent = 0  | 
        ||
| ) | 
Definition at line 283 of file ilSCORM13Package.php.
References $DIC, $ilDB, ILIAS\LTI\ToolProvider\$key, $packageId, $res, and ILIAS\Repository\int().
Referenced by il_import().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilSCORM13Package::dbRemoveAll | ( | ) | 
Definition at line 560 of file ilSCORM13Package.php.
References removeCMIData(), and removeCPData().
Referenced by il_import().
 Here is the call graph for this function:
 Here is the caller graph for this function:| 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, ilObject\_lookupType(), ilObject\_writeDescription(), dbImport(), dbRemoveAll(), ilLoggerFactory\getLogger(), jsonNode(), ilUtil\stripSlashes(), and transform().
 Here is the call graph for this function:| 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 264 of file ilSCORM13Package.php.
Referenced by il_import().
 Here is the caller graph for this function:| ilSCORM13Package::load | ( | int | $packageId | ) | 
Definition at line 92 of file ilSCORM13Package.php.
References $DIC, $ilDB, $lm_set, and $packageId.
Referenced by __construct().
 Here is the caller graph for this function:| ilSCORM13Package::removeCMIData | ( | ) | 
Definition at line 507 of file ilSCORM13Package.php.
References ilLPStatusWrapper\_refreshStatus(), and ilSCORM2004DeleteData\removeCMIDataForPackage().
Referenced by dbRemoveAll().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilSCORM13Package::removeCPData | ( | ) | 
Definition at line 513 of file ilSCORM13Package.php.
References $data, $DIC, $ilDB, $res, and ilLoggerFactory\getLogger().
Referenced by dbRemoveAll().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilSCORM13Package::transform | ( | \DOMDocument | $inputdoc, | 
| string | $xslfile, | ||
| ?string | $outputpath = null  | 
        ||
| ) | 
Definition at line 570 of file ilSCORM13Package.php.
References $r.
Referenced by il_import().
 Here is the caller graph for this function:| 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 = './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.