|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
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 = 'components/ILIAS/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 37 of file class.ilCmiXapiContentUploadImporter.php.
| ilCmiXapiContentUploadImporter::__construct | ( | ilObjCmiXapi | $object | ) |
ilCmiXapiContentUploadImporter constructor.
Definition at line 74 of file class.ilCmiXapiContentUploadImporter.php.
| ilCmiXapiContentUploadImporter::ensureCreatedObjectDirectory | ( | ) |
Definition at line 84 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 319 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleUpload().
Here is the caller graph for this function:
|
private |
Definition at line 463 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 303 of file class.ilCmiXapiContentUploadImporter.php.
References CLIENT_ID, getWebDataDirRelativeObjectDirectory(), and ILIAS_WEB_DIR.
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 329 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 |
Definition at line 163 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 314 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by ensureCreatedObjectDirectory(), getAbsoluteObjectDirectory(), getStoredContentXml(), and sanitizeObjectDirectory().
Here is the caller graph for this function:
|
protected |
Definition at line 342 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
Here is the caller graph for this function:
|
protected |
| ilCmiXapiInvalidUploadContentException |
Definition at line 118 of file class.ilCmiXapiContentUploadImporter.php.
References getStoredContentXml(), handleXmlFile(), handleZipContentUpload(), and hasStoredContentXml().
Referenced by importServerFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilCmiXapiInvalidUploadContentException |
Definition at line 198 of file class.ilCmiXapiContentUploadImporter.php.
References fetchFileExtension(), getStoredContentXml(), handleXmlFile(), handleXmlFileFromUpload(), handleZipContentUpload(), and hasStoredContentXml().
Referenced by importFormUpload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilCmiXapiInvalidUploadContentException |
Definition at line 221 of file class.ilCmiXapiContentUploadImporter.php.
References getXsdFilePath(), initObjectFromCmi5Xml(), initObjectFromTincanXml(), 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 250 of file class.ilCmiXapiContentUploadImporter.php.
References getXsdFilePath(), initObjectFromCmi5Xml(), initObjectFromTincanXml(), 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 285 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 324 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 | ) |
Definition at line 145 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, ensureCreatedObjectDirectory(), getUpload(), handleUpload(), and sanitizeObjectDirectory().
Here is the call graph for this function:| ilCmiXapiContentUploadImporter::importServerFile | ( | string | $serverFile | ) |
Definition at line 106 of file class.ilCmiXapiContentUploadImporter.php.
References ensureCreatedObjectDirectory(), handleFile(), and sanitizeObjectDirectory().
Here is the call graph for this function:
|
protected |
Definition at line 347 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 437 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
Here is the caller graph for this function:
|
protected |
Definition at line 92 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 278 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 55 of file class.ilCmiXapiContentUploadImporter.php.
|
staticprotected |
Definition at line 62 of file class.ilCmiXapiContentUploadImporter.php.
|
private |
Definition at line 69 of file class.ilCmiXapiContentUploadImporter.php.
|
protected |
Definition at line 67 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by __construct().
| const ilCmiXapiContentUploadImporter::CMI5_XML = 'cmi5.xml' |
Definition at line 46 of file class.ilCmiXapiContentUploadImporter.php.
| const ilCmiXapiContentUploadImporter::CMI5_XSD = 'cmi5_v1_CourseStructure.xsd' |
Definition at line 47 of file class.ilCmiXapiContentUploadImporter.php.
| const ilCmiXapiContentUploadImporter::IMP_FILE_EXTENSION_XML = 'xml' |
Definition at line 43 of file class.ilCmiXapiContentUploadImporter.php.
| const ilCmiXapiContentUploadImporter::IMP_FILE_EXTENSION_ZIP = 'zip' |
Definition at line 44 of file class.ilCmiXapiContentUploadImporter.php.
| const ilCmiXapiContentUploadImporter::RELATIVE_CONTENT_DIRECTORY_NAMEBASE = 'lm_data/lm_' |
Definition at line 39 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by ilCmiXapiLaunchGUI\buildLaunchLink().
| const ilCmiXapiContentUploadImporter::RELATIVE_XSD_DIRECTORY = 'components/ILIAS/CmiXapi/xml/contentschema' |
Definition at line 41 of file class.ilCmiXapiContentUploadImporter.php.
| const ilCmiXapiContentUploadImporter::TINCAN_XML = 'tincan.xml' |
Definition at line 49 of file class.ilCmiXapiContentUploadImporter.php.
| const ilCmiXapiContentUploadImporter::TINCAN_XSD = 'tincan.xsd' |
Definition at line 50 of file class.ilCmiXapiContentUploadImporter.php.