ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilImportMapping Class Reference

Import mapping. More...

+ Collaboration diagram for ilImportMapping:

Public Member Functions

 __construct ()
 Constructor.
 setInstallId ($a_val)
 Set Installation ID.
 getInstallId ()
 Get Installation ID.
 setInstallUrl ($a_val)
 Set Installation Url.
 getInstallUrl ()
 Get Installation Url.
 setTagetId ($a_target_id)
 set target id
 getTargetId ()
 get target id
 addMapping ($a_comp, $a_entity, $a_old_id, $a_new_id)
 Add mapping.
 getMapping ($a_comp, $a_entity, $a_old_id)
 Get a mapping.
 getAllMappings ()
 Get mapping.
 getMappingsOfEntity ($a_comp, $a_entity)
 Get mappings for entity.

Data Fields

 $mappings
 $install_id
 $install_url

Protected Attributes

 $target_id = 0

Detailed Description

Import mapping.

Author
Alex Killing <alex.killing>
Version
$Id$

Definition at line 11 of file class.ilImportMapping.php.

Constructor & Destructor Documentation

ilImportMapping::__construct ( )

Constructor.

Parameters
@return

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

{
$this->mappings = array();
}

Member Function Documentation

ilImportMapping::addMapping (   $a_comp,
  $a_entity,
  $a_old_id,
  $a_new_id 
)

Add mapping.

Parameters
stringcomponent
stringentity
stringold id
stringnew id

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

{
$this->mappings[$a_comp][$a_entity][$a_old_id] = $a_new_id;
}
ilImportMapping::getAllMappings ( )

Get mapping.

Returns
array mapping

Definition at line 130 of file class.ilImportMapping.php.

References $mappings.

{
}
ilImportMapping::getInstallId ( )
final

Get Installation ID.

Returns
string Installation ID

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

References $install_id.

{
}
ilImportMapping::getInstallUrl ( )
final

Get Installation Url.

Returns
string Installation Url

Definition at line 65 of file class.ilImportMapping.php.

References $install_url.

{
}
ilImportMapping::getMapping (   $a_comp,
  $a_entity,
  $a_old_id 
)

Get a mapping.

Parameters
stringcomponent
stringentity
stringold id
Returns
string new id, or false if no mapping given

Definition at line 111 of file class.ilImportMapping.php.

{
if(!isset ($this->mappings[$a_comp]) or !isset ($this->mappings[$a_comp][$a_entity]))
{
return false;
}
if (isset($this->mappings[$a_comp][$a_entity][$a_old_id]))
{
return $this->mappings[$a_comp][$a_entity][$a_old_id];
}
return false;
}
ilImportMapping::getMappingsOfEntity (   $a_comp,
  $a_entity 
)

Get mappings for entity.

Parameters
stringcomponent
stringentity
Returns

Definition at line 142 of file class.ilImportMapping.php.

{
if (isset($this->mappings[$a_comp][$a_entity]))
{
return $this->mappings[$a_comp][$a_entity];
}
return array();
}
ilImportMapping::getTargetId ( )
final

get target id

Returns

Definition at line 84 of file class.ilImportMapping.php.

References $target_id.

{
}
ilImportMapping::setInstallId (   $a_val)
final

Set Installation ID.

Parameters
stringInstallation ID

Definition at line 35 of file class.ilImportMapping.php.

{
$this->install_id = $a_val;
}
ilImportMapping::setInstallUrl (   $a_val)
final

Set Installation Url.

Parameters
stringInstallation Url

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

{
$this->install_url = $a_val;
}
ilImportMapping::setTagetId (   $a_target_id)
final

set target id

Parameters
object$a_target_id
Returns

Definition at line 75 of file class.ilImportMapping.php.

{
$this->target_id = $a_target_id;
}

Field Documentation

ilImportMapping::$install_id

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

Referenced by getInstallId().

ilImportMapping::$install_url

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

Referenced by getInstallUrl().

ilImportMapping::$mappings

Definition at line 13 of file class.ilImportMapping.php.

Referenced by getAllMappings().

ilImportMapping::$target_id = 0
protected

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

Referenced by getTargetId().


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