|
ILIAS
release_8 Revision v8.24
|
Collaboration diagram for ilCmiXapiContentUploadImporter:Public Member Functions | |
| __construct (ilObjCmiXapi $object) | |
| ilCmiXapiContentUploadImporter constructor. More... | |
| ensureCreatedObjectDirectory () | |
| importServerFile (string $serverFile) | |
| importFormUpload (array $fileData) | |
| 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 (?string $uploadFilePath) | |
| handleUpload (FileUploadResult $uploadResult) | |
| handleXmlFile (string $xmlFilePath) | |
| handleXmlFileFromUpload (string $xmlFileName, string $xmlFilePath) | |
| validateXmlFile (DOMDocument $dom, $xsdFilePath) | |
| handleZipContentUpload (string $uploadFilePath) | |
| getAbsoluteObjectDirectory () | |
| fetchFileExtension (FileUploadResult $uploadResult) | |
| hasStoredContentXml () | |
| getStoredContentXml () | |
| getXsdFilePath (string $xsdFileName) | |
| initObjectFromCmi5Xml (DOMDocument $dom) | |
| initObjectFromTincanXml (DOMDocument $dom) | |
Protected Attributes | |
| ilObjCmiXapi | $object |
Static Protected Attributes | |
| static array | $CONTENT_XML_FILENAMES |
| static array | $CONTENT_XSD_FILENAMES |
Private Member Functions | |
| generateActivityId (string $publisherId) | |
Private Attributes | |
| ILIAS DI Container | $dic |
Definition at line 35 of file class.ilCmiXapiContentUploadImporter.php.
| ilCmiXapiContentUploadImporter::__construct | ( | ilObjCmiXapi | $object | ) |
ilCmiXapiContentUploadImporter constructor.
Definition at line 72 of file class.ilCmiXapiContentUploadImporter.php.
| ilCmiXapiContentUploadImporter::ensureCreatedObjectDirectory | ( | ) |
ILIAS\Filesystem\Exception\IOException
Definition at line 82 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 |
Definition at line 309 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleUpload().
Here is the caller graph for this function:
|
private |
Definition at line 453 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 293 of file class.ilCmiXapiContentUploadImporter.php.
References getWebDataDirRelativeObjectDirectory(), and ilFileUtils\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 319 of file class.ilCmiXapiContentUploadImporter.php.
References 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 |
ILIAS\FileUpload\Exception\IllegalStateException
| ilCmiXapiInvalidUploadContentException |
Definition at line 162 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, and $results.
Referenced by importFormUpload().
Here is the caller graph for this function:| ilCmiXapiContentUploadImporter::getWebDataDirRelativeObjectDirectory | ( | ) |
Definition at line 304 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by ensureCreatedObjectDirectory(), getAbsoluteObjectDirectory(), getStoredContentXml(), and sanitizeObjectDirectory().
Here is the caller graph for this function:
|
protected |
Definition at line 332 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
Here is the caller graph for this function:
|
protected |
| ilCmiXapiInvalidUploadContentException |
Definition at line 117 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 |
| ilCmiXapiInvalidUploadContentException |
Definition at line 197 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 |
| ilCmiXapiInvalidUploadContentException |
Definition at line 220 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 |
| ilCmiXapiInvalidUploadContentException |
Definition at line 249 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 284 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 | ( | array | $fileData | ) |
ILIAS\FileUpload\Exception\IllegalStateException
ILIAS\Filesystem\Exception\IOException
| ilCmiXapiInvalidUploadContentException |
Definition at line 144 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, ensureCreatedObjectDirectory(), getUpload(), handleUpload(), and sanitizeObjectDirectory().
Here is the call graph for this function:| ilCmiXapiContentUploadImporter::importServerFile | ( | string | $serverFile | ) |
ILIAS\Filesystem\Exception\IOException
| ilCmiXapiInvalidUploadContentException |
Definition at line 105 of file class.ilCmiXapiContentUploadImporter.php.
References ensureCreatedObjectDirectory(), handleFile(), and sanitizeObjectDirectory().
Here is the call graph for this function:
|
protected |
Definition at line 337 of file class.ilCmiXapiContentUploadImporter.php.
References 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, ilCmiXapiLP\MOVEON_PASSED, and ILIAS\Repository\object().
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 427 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
Here is the caller graph for this function:
|
protected |
Definition at line 91 of file class.ilCmiXapiContentUploadImporter.php.
References getWebDataDirRelativeObjectDirectory(), ilFileUtils\getWebspaceDir(), and ilFileUtils\renameExecutables().
Referenced by importFormUpload(), and importServerFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilCmiXapiInvalidUploadContentException |
Definition at line 277 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 53 of file class.ilCmiXapiContentUploadImporter.php.
|
staticprotected |
Definition at line 60 of file class.ilCmiXapiContentUploadImporter.php.
|
private |
Definition at line 67 of file class.ilCmiXapiContentUploadImporter.php.
|
protected |
Definition at line 65 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by __construct().
| const ilCmiXapiContentUploadImporter::CMI5_XML = 'cmi5.xml' |
Definition at line 44 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
| const ilCmiXapiContentUploadImporter::CMI5_XSD = 'cmi5_v1_CourseStructure.xsd' |
Definition at line 45 of file class.ilCmiXapiContentUploadImporter.php.
| const ilCmiXapiContentUploadImporter::IMP_FILE_EXTENSION_XML = 'xml' |
Definition at line 41 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleFile(), and handleUpload().
| const ilCmiXapiContentUploadImporter::IMP_FILE_EXTENSION_ZIP = 'zip' |
Definition at line 42 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleFile(), and handleUpload().
| const ilCmiXapiContentUploadImporter::RELATIVE_CONTENT_DIRECTORY_NAMEBASE = 'lm_data/lm_' |
Definition at line 37 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by ilCmiXapiLaunchGUI\buildLaunchLink().
| const ilCmiXapiContentUploadImporter::RELATIVE_XSD_DIRECTORY = 'Modules/CmiXapi/xml/contentschema' |
Definition at line 39 of file class.ilCmiXapiContentUploadImporter.php.
| const ilCmiXapiContentUploadImporter::TINCAN_XML = 'tincan.xml' |
Definition at line 47 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
| const ilCmiXapiContentUploadImporter::TINCAN_XSD = 'tincan.xsd' |
Definition at line 48 of file class.ilCmiXapiContentUploadImporter.php.