ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilOrgUnitImporter Class Reference

Class ilOrgUnitImporter. More...

+ Inheritance diagram for ilOrgUnitImporter:
+ Collaboration diagram for ilOrgUnitImporter:

Public Member Functions

 hasErrors ()
 hasWarnings ()
 addWarning ($lang_var, $import_id, $action=null)
 addError ($lang_var, $import_id, $action=null)
 getErrors ()
 getWarnings ()
 getStats ()
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import XML.
- Public Member Functions inherited from ilXmlImporter
 __construct ()
 Constructor.
 init ()
 Init.
 setInstallId ($a_val)
 Set installation id.
 getInstallId ()
 Get installation id.
 setInstallUrl ($a_val)
 Set installation url.
 getInstallUrl ()
 Get installation url.
 setSchemaVersion ($a_val)
 Set schema version.
 getSchemaVersion ()
 Get schema version.
 setImportDirectory ($a_val)
 Set import directory.
 getImportDirectory ()
 Get import directory.
 setSkipEntities ($a_val)
 Set skip entities.
 getSkipEntities ()
 Get skip entities.
 finalProcessing ($a_mapping)
 Final processing.

Data Fields

 $errors
 $warnings
 $stats

Protected Member Functions

 buildRef ($id, $type)

Additional Inherited Members

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

Detailed Description

Member Function Documentation

ilOrgUnitImporter::addError (   $lang_var,
  $import_id,
  $action = null 
)

Definition at line 63 of file class.ilOrgUnitImporter.php.

Referenced by ilOrgUnitSimpleImport\simpleImport(), ilOrgUnitSimpleImport\simpleImportElement(), ilOrgUnitSimpleUserImport\simpleUserImport(), and ilOrgUnitSimpleUserImport\simpleUserImportElement().

{
$this->errors[] = array("lang_var" => $lang_var, "import_id" => $import_id, "action" => $action);
}

+ Here is the caller graph for this function:

ilOrgUnitImporter::addWarning (   $lang_var,
  $import_id,
  $action = null 
)

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

Referenced by ilOrgUnitSimpleImport\simpleImportElement().

{
$this->warnings[] = array("lang_var" => $lang_var, "import_id" => $import_id, "action" => $action);
}

+ Here is the caller graph for this function:

ilOrgUnitImporter::buildRef (   $id,
  $type 
)
protected

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

References ilObjOrgUnit\_exists(), ilObject\_getAllReferences(), and ilObject\_lookupObjIdByImportId().

Referenced by ilOrgUnitSimpleImport\simpleImportElement(), and ilOrgUnitSimpleUserImport\simpleUserImportElement().

{
if($type == "reference_id")
{
if(!ilObjOrgUnit::_exists($id, true))
{
return false;
}
return $id;
}
elseif($type == "external_id")
{
$ref_ids = ilObject::_getAllReferences($obj_id);
if(!count($ref_ids))
{
return false;
}
if(count($ref_ids))
{
return array_shift($ref_ids);
}
}
else
{
return false;
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilOrgUnitImporter::getErrors ( )
Returns
array

Definition at line 70 of file class.ilOrgUnitImporter.php.

References $errors.

{
return $this->errors;
}
ilOrgUnitImporter::getStats ( )
Returns
array

Definition at line 86 of file class.ilOrgUnitImporter.php.

References $stats.

{
return $this->stats;
}
ilOrgUnitImporter::getWarnings ( )
Returns
array

Definition at line 78 of file class.ilOrgUnitImporter.php.

References $warnings.

{
}
ilOrgUnitImporter::hasErrors ( )

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

{
return count($this->errors)!=0;
}
ilOrgUnitImporter::hasWarnings ( )

Definition at line 55 of file class.ilOrgUnitImporter.php.

{
return count($this->warnings)!=0;
}
ilOrgUnitImporter::importXmlRepresentation (   $a_entity,
  $a_id,
  $a_xml,
  $a_mapping 
)

Import XML.

Parameters
@return

Reimplemented from ilXmlImporter.

Definition at line 97 of file class.ilOrgUnitImporter.php.

{
}

Field Documentation

ilOrgUnitImporter::$errors

Definition at line 14 of file class.ilOrgUnitImporter.php.

Referenced by getErrors().

ilOrgUnitImporter::$stats

Definition at line 20 of file class.ilOrgUnitImporter.php.

Referenced by getStats().

ilOrgUnitImporter::$warnings

Definition at line 17 of file class.ilOrgUnitImporter.php.

Referenced by getWarnings().


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