ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilCmiXapiImporter Class Reference
+ Inheritance diagram for ilCmiXapiImporter:
+ Collaboration diagram for ilCmiXapiImporter:

Public Member Functions

 __construct ()
 ilCmiXapiImporter constructor. More...
 
 init ()
 
 __destruct ()
 if single import then deleteImportDirectiry More...
 
- Public Member Functions inherited from ilXmlImporter
 __construct ()
 Constructor. More...
 
 setImport ($a_val)
 Set import. More...
 
 getImport ()
 Get import. More...
 
 init ()
 Init. More...
 
 setInstallId ($a_val)
 Set installation id. More...
 
 getInstallId ()
 Get installation id. More...
 
 setInstallUrl ($a_val)
 Set installation url. More...
 
 getInstallUrl ()
 Get installation url. More...
 
 setSchemaVersion ($a_val)
 Set schema version. More...
 
 getSchemaVersion ()
 Get schema version. More...
 
 setImportDirectory ($a_val)
 Set import directory. More...
 
 getImportDirectory ()
 Get import directory. More...
 
 setSkipEntities ($a_val)
 Set skip entities. More...
 
 getSkipEntities ()
 Get skip entities. More...
 
 exportedFromSameInstallation ()
 Is exporting and importing installation identical? More...
 
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import xml representation. More...
 
 finalProcessing ($a_mapping)
 Final processing. More...
 
 afterContainerImportProcessing (ilImportMapping $mapping)
 Called after all container objects have been implemented. More...
 

Data Fields

 $manifest = []
 

Private Member Functions

 getImportDirectorySingle ()
 Gets the relative path to the Filesystem::temp Folder. More...
 
 getImportDirectoryContainer ()
 Gets the relative path to the Filesystem::temp Folder. More...
 

Private Attributes

 $_moduleProperties = []
 
 $_dataset
 
 $_cmixObj
 
 $_newId = null
 
 $_entity
 
 $_import_objId
 
 $_import_dirname
 
 $_mapping
 
 $_hasContent = false
 
 $_relWebDir = 'lm_data/lm_'
 
 $_relImportDir = ''
 
 $_isSingleImport = false
 

Additional Inherited Members

- Protected Attributes inherited from ilXmlImporter
 $skip_entities = array()
 
 $imp
 

Detailed Description

Definition at line 15 of file class.ilCmiXapiImporter.php.

Constructor & Destructor Documentation

◆ __construct()

ilCmiXapiImporter::__construct ( )

ilCmiXapiImporter constructor.

Definition at line 59 of file class.ilCmiXapiImporter.php.

References $DIC, $xml, getImportDirectoryContainer(), getImportDirectorySingle(), ilObjectFactory\getInstanceByObjId(), ilUtil\getWebspaceDir(), ilXmlImporter\importXmlRepresentation(), and ilUtil\unzip().

60  {
61  require_once "./Modules/CmiXapi/classes/class.ilCmiXapiDataSet.php";
62  $this->_dataset = new ilCmiXapiDataSet();
63  $this->_dataset->_cmixSettingsProperties['Title'] = '';
64  $this->_dataset->_cmixSettingsProperties['Description'] = '';
65  //todo: at the moment restricted to one module in xml file, extend?
66  }
+ Here is the call graph for this function:

◆ __destruct()

ilCmiXapiImporter::__destruct ( )

if single import then deleteImportDirectiry

Definition at line 313 of file class.ilCmiXapiImporter.php.

314  {
315  if (true === $this->_isSingleImport) {
316  $this->deleteImportDirectiry();
317  }
318  }

Member Function Documentation

◆ getImportDirectoryContainer()

ilCmiXapiImporter::getImportDirectoryContainer ( )
private

Gets the relative path to the Filesystem::temp Folder.

Returns
$this

Definition at line 292 of file class.ilCmiXapiImporter.php.

References ilXmlImporter\getImportDirectory().

Referenced by __construct().

293  {
294  $importTempDir = $this->getImportDirectory();
295  $dirArr = array_reverse(explode('/', $importTempDir));
296  $this->_relImportDir = $dirArr[3] . '/' . $dirArr[2] . '/' . $dirArr[1] . '/' . $dirArr[0];
297  return $this;
298  /*
299  $dir = $this->getImportDirectory();
300  $dir = dirname($dir);
301  return $dir;
302  */
303  }
getImportDirectory()
Get import directory.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getImportDirectorySingle()

ilCmiXapiImporter::getImportDirectorySingle ( )
private

Gets the relative path to the Filesystem::temp Folder.

Returns
$this

Definition at line 280 of file class.ilCmiXapiImporter.php.

References ilXmlImporter\getImportDirectory().

Referenced by __construct().

281  {
282  $importTempDir = $this->getImportDirectory();
283  $dirArr = array_reverse(explode('/', $importTempDir));
284  $this->_relImportDir = $dirArr[1] . '/' . $dirArr[0];
285  return $this;
286  }
getImportDirectory()
Get import directory.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init()

ilCmiXapiImporter::init ( )

Definition at line 306 of file class.ilCmiXapiImporter.php.

306  : void
307  {
308  }

Field Documentation

◆ $_cmixObj

ilCmiXapiImporter::$_cmixObj
private

Definition at line 27 of file class.ilCmiXapiImporter.php.

◆ $_dataset

ilCmiXapiImporter::$_dataset
private

Definition at line 24 of file class.ilCmiXapiImporter.php.

◆ $_entity

ilCmiXapiImporter::$_entity
private

Definition at line 33 of file class.ilCmiXapiImporter.php.

◆ $_hasContent

ilCmiXapiImporter::$_hasContent = false
private

Definition at line 45 of file class.ilCmiXapiImporter.php.

◆ $_import_dirname

ilCmiXapiImporter::$_import_dirname
private

Definition at line 39 of file class.ilCmiXapiImporter.php.

◆ $_import_objId

ilCmiXapiImporter::$_import_objId
private

Definition at line 36 of file class.ilCmiXapiImporter.php.

◆ $_isSingleImport

ilCmiXapiImporter::$_isSingleImport = false
private

Definition at line 54 of file class.ilCmiXapiImporter.php.

◆ $_mapping

ilCmiXapiImporter::$_mapping
private

Definition at line 42 of file class.ilCmiXapiImporter.php.

◆ $_moduleProperties

ilCmiXapiImporter::$_moduleProperties = []
private

Definition at line 18 of file class.ilCmiXapiImporter.php.

◆ $_newId

ilCmiXapiImporter::$_newId = null
private

Definition at line 30 of file class.ilCmiXapiImporter.php.

◆ $_relImportDir

ilCmiXapiImporter::$_relImportDir = ''
private

Definition at line 51 of file class.ilCmiXapiImporter.php.

◆ $_relWebDir

ilCmiXapiImporter::$_relWebDir = 'lm_data/lm_'
private

Definition at line 48 of file class.ilCmiXapiImporter.php.

◆ $manifest

ilCmiXapiImporter::$manifest = []

Definition at line 21 of file class.ilCmiXapiImporter.php.


The documentation for this class was generated from the following file: