ILIAS  release_8 Revision v8.23
ilUserImporter Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilUserImporter:
+ Collaboration diagram for ilUserImporter:

Public Member Functions

 init ()
 
 importXmlRepresentation (string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
 
 finalProcessing (ilImportMapping $a_mapping)
 
- Public Member Functions inherited from ilXmlImporter
 __construct ()
 
 setImport (ilImport $a_val)
 
 getImport ()
 
 init ()
 
 setInstallId (string $a_val)
 
 getInstallId ()
 
 setInstallUrl (string $a_val)
 
 getInstallUrl ()
 
 setSchemaVersion (string $a_val)
 
 getSchemaVersion ()
 
 setImportDirectory (string $a_val)
 
 getImportDirectory ()
 
 setSkipEntities (array $a_val)
 
 getSkipEntities ()
 
 exportedFromSameInstallation ()
 
 importXmlRepresentation (string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
 
 finalProcessing (ilImportMapping $a_mapping)
 
 afterContainerImportProcessing (ilImportMapping $mapping)
 

Protected Attributes

ilUserDataSet $ds
 
- Protected Attributes inherited from ilXmlImporter
array $skip_entities = array()
 
ilImport $imp
 
string $install_id
 
string $install_url
 
string $schema_version
 
string $import_directory
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Importer class for user data

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 23 of file class.ilUserImporter.php.

Member Function Documentation

◆ finalProcessing()

ilUserImporter::finalProcessing ( ilImportMapping  $a_mapping)

Definition at line 49 of file class.ilUserImporter.php.

49  : void
50  {
51  if (is_array($this->ds->multi)) {
52  foreach ($this->ds->multi as $usr_id => $values) {
53  $usr_obj = new ilObjUser($usr_id);
54 
55  if (isset($values["interests_general"])) {
56  $usr_obj->setGeneralInterests($values["interests_general"]);
57  } else {
58  $usr_obj->setGeneralInterests();
59  }
60  if (isset($values["interests_help_offered"])) {
61  $usr_obj->setOfferingHelp($values["interests_help_offered"]);
62  } else {
63  $usr_obj->setOfferingHelp();
64  }
65  if (isset($values["interests_help_looking"])) {
66  $usr_obj->setLookingForHelp($values["interests_help_looking"]);
67  } else {
68  $usr_obj->setLookingForHelp();
69  }
70 
71  $usr_obj->updateMultiTextFields();
72  }
73  }
74  }

◆ importXmlRepresentation()

ilUserImporter::importXmlRepresentation ( string  $a_entity,
string  $a_id,
string  $a_xml,
ilImportMapping  $a_mapping 
)

Definition at line 34 of file class.ilUserImporter.php.

References ilXmlImporter\getSchemaVersion().

39  : void {
41  $a_entity,
42  $this->getSchemaVersion(),
43  $a_xml,
44  $this->ds,
45  $a_mapping
46  );
47  }
Manifest parser for ILIAS standard export files.
+ Here is the call graph for this function:

◆ init()

ilUserImporter::init ( )

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

References ilXmlImporter\getImportDirectory().

27  : void
28  {
29  $this->ds = new ilUserDataSet();
30  $this->ds->setDSPrefix("ds");
31  $this->ds->setImportDirectory($this->getImportDirectory());
32  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

Field Documentation

◆ $ds

ilUserDataSet ilUserImporter::$ds
protected

Definition at line 25 of file class.ilUserImporter.php.


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