ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
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 | ( | ) |
Definition at line 82 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, and getWebDataDirRelativeObjectDirectory().
Referenced by importFormUpload(), and importServerFile().
|
protected |
Definition at line 309 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleUpload().
|
private |
Definition at line 453 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, $objId, and ilCmiXapiUser\getIliasUuid().
Referenced by initObjectFromCmi5Xml().
|
protected |
Definition at line 293 of file class.ilCmiXapiContentUploadImporter.php.
References getWebDataDirRelativeObjectDirectory(), and ilFileUtils\getWebspaceDir().
Referenced by getStoredContentXml(), and handleZipContentUpload().
|
protected |
Definition at line 319 of file class.ilCmiXapiContentUploadImporter.php.
References getAbsoluteObjectDirectory(), and getWebDataDirRelativeObjectDirectory().
Referenced by handleFile(), handleUpload(), and hasStoredContentXml().
|
protected |
Definition at line 162 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, and $results.
Referenced by importFormUpload().
ilCmiXapiContentUploadImporter::getWebDataDirRelativeObjectDirectory | ( | ) |
Definition at line 304 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by ensureCreatedObjectDirectory(), getAbsoluteObjectDirectory(), getStoredContentXml(), and sanitizeObjectDirectory().
|
protected |
Definition at line 332 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
|
protected |
ilCmiXapiInvalidUploadContentException |
Definition at line 117 of file class.ilCmiXapiContentUploadImporter.php.
References getStoredContentXml(), handleXmlFile(), handleZipContentUpload(), and hasStoredContentXml().
Referenced by importServerFile().
|
protected |
ilCmiXapiInvalidUploadContentException |
Definition at line 197 of file class.ilCmiXapiContentUploadImporter.php.
References fetchFileExtension(), getStoredContentXml(), handleXmlFile(), handleXmlFileFromUpload(), handleZipContentUpload(), and hasStoredContentXml().
Referenced by importFormUpload().
|
protected |
ilCmiXapiInvalidUploadContentException |
Definition at line 220 of file class.ilCmiXapiContentUploadImporter.php.
References getXsdFilePath(), initObjectFromCmi5Xml(), initObjectFromTincanXml(), and validateXmlFile().
Referenced by handleFile(), and handleUpload().
|
protected |
ilCmiXapiInvalidUploadContentException |
Definition at line 249 of file class.ilCmiXapiContentUploadImporter.php.
References getXsdFilePath(), initObjectFromCmi5Xml(), initObjectFromTincanXml(), and validateXmlFile().
Referenced by handleUpload().
|
protected |
Definition at line 284 of file class.ilCmiXapiContentUploadImporter.php.
References getAbsoluteObjectDirectory().
Referenced by handleFile(), and handleUpload().
|
protected |
Definition at line 314 of file class.ilCmiXapiContentUploadImporter.php.
References getStoredContentXml().
Referenced by handleFile(), and handleUpload().
ilCmiXapiContentUploadImporter::importFormUpload | ( | array | $fileData | ) |
Definition at line 144 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, ensureCreatedObjectDirectory(), getUpload(), handleUpload(), and sanitizeObjectDirectory().
ilCmiXapiContentUploadImporter::importServerFile | ( | string | $serverFile | ) |
Definition at line 105 of file class.ilCmiXapiContentUploadImporter.php.
References ensureCreatedObjectDirectory(), handleFile(), and sanitizeObjectDirectory().
|
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().
|
protected |
Definition at line 427 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
|
protected |
Definition at line 91 of file class.ilCmiXapiContentUploadImporter.php.
References getWebDataDirRelativeObjectDirectory(), ilFileUtils\getWebspaceDir(), and ilFileUtils\renameExecutables().
Referenced by importFormUpload(), and importServerFile().
|
protected |
ilCmiXapiInvalidUploadContentException |
Definition at line 277 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
|
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.
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.
const ilCmiXapiContentUploadImporter::IMP_FILE_EXTENSION_ZIP = 'zip' |
Definition at line 42 of file class.ilCmiXapiContentUploadImporter.php.
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.
const ilCmiXapiContentUploadImporter::TINCAN_XSD = 'tincan.xsd' |
Definition at line 48 of file class.ilCmiXapiContentUploadImporter.php.