ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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 | ( | ) |
Definition at line 65 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, and getWebDataDirRelativeObjectDirectory().
Referenced by importFormUpload(), and importServerFile().
|
protected |
FileUploadResult | $uploadResult |
Definition at line 306 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleUpload().
|
private |
Definition at line 448 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, $objId, and ilCmiXapiUser\getIliasUuid().
Referenced by initObjectFromCmi5Xml().
|
protected |
Definition at line 283 of file class.ilCmiXapiContentUploadImporter.php.
References getWebDataDirRelativeObjectDirectory(), and ilUtil\getWebspaceDir().
Referenced by getStoredContentXml(), and handleZipContentUpload().
|
protected |
Definition at line 322 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, getAbsoluteObjectDirectory(), and getWebDataDirRelativeObjectDirectory().
Referenced by handleFile(), handleUpload(), and hasStoredContentXml().
|
protected |
$uploadFilePath |
Definition at line 148 of file class.ilCmiXapiContentUploadImporter.php.
References $DIC, $result, and $results.
Referenced by importFormUpload().
ilCmiXapiContentUploadImporter::getWebDataDirRelativeObjectDirectory | ( | ) |
Definition at line 297 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by ensureCreatedObjectDirectory(), getAbsoluteObjectDirectory(), getStoredContentXml(), and sanitizeObjectDirectory().
|
protected |
string | $xsdFileName |
Definition at line 341 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
|
protected |
string | $serverFile |
ilCmiXapiInvalidUploadContentException |
Definition at line 99 of file class.ilCmiXapiContentUploadImporter.php.
References getStoredContentXml(), handleXmlFile(), handleZipContentUpload(), and hasStoredContentXml().
Referenced by importServerFile().
|
protected |
FileUploadResult | $uploadResult |
ilCmiXapiInvalidUploadContentException |
Definition at line 184 of file class.ilCmiXapiContentUploadImporter.php.
References fetchFileExtension(), getStoredContentXml(), handleXmlFile(), handleXmlFileFromUpload(), handleZipContentUpload(), and hasStoredContentXml().
Referenced by importFormUpload().
|
protected |
string | $xmlFilePath |
ilCmiXapiInvalidUploadContentException |
Definition at line 208 of file class.ilCmiXapiContentUploadImporter.php.
References getXsdFilePath(), initObjectFromCmi5Xml(), initObjectFromTincanXml(), and validateXmlFile().
Referenced by handleFile(), and handleUpload().
|
protected |
string | $xmlFileName | |
string | $xmlFilePath |
ilCmiXapiInvalidUploadContentException |
Definition at line 239 of file class.ilCmiXapiContentUploadImporter.php.
References getXsdFilePath(), initObjectFromCmi5Xml(), initObjectFromTincanXml(), and validateXmlFile().
Referenced by handleUpload().
|
protected |
Definition at line 271 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 | ( | ilFileInputGUI | $uploadInput | ) |
ilFileInputGUI | $uploadInput |
Definition at line 127 of file class.ilCmiXapiContentUploadImporter.php.
References $_POST, ensureCreatedObjectDirectory(), ilFormPropertyGUI\getPostVar(), getUpload(), handleUpload(), and sanitizeObjectDirectory().
ilCmiXapiContentUploadImporter::importServerFile | ( | $serverFile | ) |
$serverFile |
Definition at line 86 of file class.ilCmiXapiContentUploadImporter.php.
References ensureCreatedObjectDirectory(), handleFile(), and sanitizeObjectDirectory().
|
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().
|
protected |
Definition at line 422 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
|
protected |
Definition at line 74 of file class.ilCmiXapiContentUploadImporter.php.
References getWebDataDirRelativeObjectDirectory(), ilUtil\getWebspaceDir(), and ilUtil\renameExecutables().
Referenced by importFormUpload(), and importServerFile().
|
protected |
Definition at line 264 of file class.ilCmiXapiContentUploadImporter.php.
Referenced by handleXmlFile(), and handleXmlFileFromUpload().
|
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.
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.
const ilCmiXapiContentUploadImporter::IMP_FILE_EXTENSION_ZIP = 'zip' |
Definition at line 25 of file class.ilCmiXapiContentUploadImporter.php.
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.
const ilCmiXapiContentUploadImporter::TINCAN_XSD = 'tincan.xsd' |
Definition at line 31 of file class.ilCmiXapiContentUploadImporter.php.