|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Collaboration diagram for ilCmiXapiContentUploadImporter:Public Member Functions | |
| __construct (ilObjCmiXapi $object) | |
| ilCmiXapiContentUploadImporter constructor. More... | |
| ensureCreatedObjectDirectory () | |
| importServerFile ($serverFile) | |
| importFormUpload (ilFileInputGUI $uploadInput) | |
| getWebDataDirRelativeObjectDirectory () | |
Data Fields | |
| const | RELATIVE_CONTENT_DIRECTORY_NAMEBASE = 'lm_data/lm_' |
| const | RELATIVE_XSD_DIRECTORY = 'Modules/CmiXapi/xml/contentschema' |
| const | IMP_FILE_EXTENSION_XML = 'xml' |
| const | IMP_FILE_EXTENSION_ZIP = 'zip' |
| const | CMI5_XML = 'cmi5.xml' |
| const | CMI5_XSD = 'cmi5_v1_CourseStructure.xsd' |
| const | TINCAN_XML = 'tincan.xml' |
| const | TINCAN_XSD = 'tincan.xsd' |
Protected Member Functions | |
| sanitizeObjectDirectory () | |
| handleFile (string $serverFile) | |
| getUpload ($uploadFilePath) | |
| handleUpload (FileUploadResult $uploadResult) | |
| handleXmlFile ($xmlFilePath) | |
| handleXmlFileFromUpload ($xmlFileName, $xmlFilePath) | |
| validateXmlFile (DOMDocument $dom, $xsdFilePath) | |
| handleZipContentUpload ($uploadFilePath) | |
| getAbsoluteObjectDirectory () | |
| fetchFileExtension (FileUploadResult $uploadResult) | |
| hasStoredContentXml () | |
| getStoredContentXml () | |
| getXsdFilePath ($xsdFileName) | |
| initObjectFromCmi5Xml ($dom) | |
| initObjectFromTincanXml ($dom) | |
Protected Attributes | |
| $object | |
Static Protected Attributes | |
| static | $CONTENT_XML_FILENAMES |
| static | $CONTENT_XSD_FILENAMES |
Private Member Functions | |
| generateActivityId ($publisherId) | |
Definition at line 18 of file class.ilCmiXapiContentUploadImporter.php.
| ilCmiXapiContentUploadImporter::__construct | ( | ilObjCmiXapi | $object | ) |
ilCmiXapiContentUploadImporter constructor.
| ilObjCmiXapi | $object |
Definition at line 57 of file class.ilCmiXapiContentUploadImporter.php.
References $object.
| ilCmiXapiContentUploadImporter::ensureCreatedObjectDirectory | ( | ) |
ILIAS\Filesystem\Exception\IOException
Definition at line 65 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, and getWebDataDirRelativeObjectDirectory().
Referenced by importFormUpload(), and importServerFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| FileUploadResult | $uploadResult |
Definition at line 306 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleUpload().
Here is the caller graph for this function:
|
private |
Definition at line 448 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, $objId, and ilCmiXapiUser\getIliasUuid().
Referenced by initObjectFromCmi5Xml().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 283 of file class.ilCmiXapiContentUploadImporter.php.
References getWebDataDirRelativeObjectDirectory(), and ilUtil\getWebspaceDir().
Referenced by getStoredContentXml(), and handleZipContentUpload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 322 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, getAbsoluteObjectDirectory(), and getWebDataDirRelativeObjectDirectory().
Referenced by handleFile(), handleUpload(), and hasStoredContentXml().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $uploadFilePath |
ILIAS\FileUpload\Exception\IllegalStateException
| ilCmiXapiInvalidUploadContentException |
Definition at line 148 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, $result, and $results.
Referenced by importFormUpload().
Here is the caller graph for this function:| ilCmiXapiContentUploadImporter::getWebDataDirRelativeObjectDirectory | ( | ) |
Definition at line 297 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by ensureCreatedObjectDirectory(), getAbsoluteObjectDirectory(), getStoredContentXml(), and sanitizeObjectDirectory().
Here is the caller graph for this function:
|
protected |
| string | $xsdFileName |
Definition at line 341 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
Here is the caller graph for this function:
|
protected |
| string | $serverFile |
| ilCmiXapiInvalidUploadContentException |
Definition at line 99 of file class.ilCmiXapiContentUploadImporter.php.
References getStoredContentXml(), handleXmlFile(), handleZipContentUpload(), hasStoredContentXml(), IMP_FILE_EXTENSION_XML, and IMP_FILE_EXTENSION_ZIP.
Referenced by importServerFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| FileUploadResult | $uploadResult |
| ilCmiXapiInvalidUploadContentException |
Definition at line 184 of file class.ilCmiXapiContentUploadImporter.php.
References fetchFileExtension(), getStoredContentXml(), handleXmlFile(), handleXmlFileFromUpload(), handleZipContentUpload(), hasStoredContentXml(), IMP_FILE_EXTENSION_XML, and IMP_FILE_EXTENSION_ZIP.
Referenced by importFormUpload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| string | $xmlFilePath |
| ilCmiXapiInvalidUploadContentException |
Definition at line 208 of file class.ilCmiXapiContentUploadImporter.php.
References CMI5_XML, getXsdFilePath(), initObjectFromCmi5Xml(), initObjectFromTincanXml(), TINCAN_XML, and validateXmlFile().
Referenced by handleFile(), and handleUpload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| string | $xmlFileName | |
| string | $xmlFilePath |
| ilCmiXapiInvalidUploadContentException |
Definition at line 239 of file class.ilCmiXapiContentUploadImporter.php.
References CMI5_XML, getXsdFilePath(), initObjectFromCmi5Xml(), initObjectFromTincanXml(), TINCAN_XML, and validateXmlFile().
Referenced by handleUpload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 271 of file class.ilCmiXapiContentUploadImporter.php.
References getAbsoluteObjectDirectory().
Referenced by handleFile(), and handleUpload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 314 of file class.ilCmiXapiContentUploadImporter.php.
References getStoredContentXml().
Referenced by handleFile(), and handleUpload().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCmiXapiContentUploadImporter::importFormUpload | ( | ilFileInputGUI | $uploadInput | ) |
| ilFileInputGUI | $uploadInput |
ILIAS\FileUpload\Exception\IllegalStateException
ILIAS\Filesystem\Exception\IOException
| ilCmiXapiInvalidUploadContentException |
Definition at line 127 of file class.ilCmiXapiContentUploadImporter.php.
References $_POST, ensureCreatedObjectDirectory(), ilFormPropertyGUI\getPostVar(), getUpload(), handleUpload(), and sanitizeObjectDirectory().
Here is the call graph for this function:| ilCmiXapiContentUploadImporter::importServerFile | ( | $serverFile | ) |
| $serverFile |
ILIAS\Filesystem\Exception\IOException
| ilCmiXapiInvalidUploadContentException |
Definition at line 86 of file class.ilCmiXapiContentUploadImporter.php.
References ensureCreatedObjectDirectory(), handleFile(), and sanitizeObjectDirectory().
Here is the call graph for this function:
|
protected |
Definition at line 346 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, generateActivityId(), ilObjCmiXapi\LMS_MASTERY_SCORE, ilLPObjSettings\LP_MODE_CMIX_COMPLETED, ilLPObjSettings\LP_MODE_CMIX_COMPLETED_OR_PASSED, ilLPObjSettings\LP_MODE_CMIX_PASSED, ilLPObjSettings\LP_MODE_DEACTIVATED, ilCmiXapiLP\MOVEON_COMPLETED, ilCmiXapiLP\MOVEON_COMPLETED_AND_PASSED, ilCmiXapiLP\MOVEON_COMPLETED_OR_PASSED, and ilCmiXapiLP\MOVEON_PASSED.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 422 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
Here is the caller graph for this function:
|
protected |
Definition at line 74 of file class.ilCmiXapiContentUploadImporter.php.
References getWebDataDirRelativeObjectDirectory(), ilUtil\getWebspaceDir(), and ilUtil\renameExecutables().
Referenced by importFormUpload(), and importServerFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 264 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 36 of file class.ilCmiXapiContentUploadImporter.php.
|
staticprotected |
Definition at line 43 of file class.ilCmiXapiContentUploadImporter.php.
|
protected |
Definition at line 51 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by __construct().
| const ilCmiXapiContentUploadImporter::CMI5_XML = 'cmi5.xml' |
Definition at line 27 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
| const ilCmiXapiContentUploadImporter::CMI5_XSD = 'cmi5_v1_CourseStructure.xsd' |
Definition at line 28 of file class.ilCmiXapiContentUploadImporter.php.
| const ilCmiXapiContentUploadImporter::IMP_FILE_EXTENSION_XML = 'xml' |
Definition at line 24 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleFile(), and handleUpload().
| const ilCmiXapiContentUploadImporter::IMP_FILE_EXTENSION_ZIP = 'zip' |
Definition at line 25 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleFile(), and handleUpload().
| const ilCmiXapiContentUploadImporter::RELATIVE_CONTENT_DIRECTORY_NAMEBASE = 'lm_data/lm_' |
Definition at line 20 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by ilCmiXapiLaunchGUI\buildLaunchLink().
| const ilCmiXapiContentUploadImporter::RELATIVE_XSD_DIRECTORY = 'Modules/CmiXapi/xml/contentschema' |
Definition at line 22 of file class.ilCmiXapiContentUploadImporter.php.
| const ilCmiXapiContentUploadImporter::TINCAN_XML = 'tincan.xml' |
Definition at line 30 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
| const ilCmiXapiContentUploadImporter::TINCAN_XSD = 'tincan.xsd' |
Definition at line 31 of file class.ilCmiXapiContentUploadImporter.php.