ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMDFactory Class Reference
+ Collaboration diagram for ilMDFactory:

Public Member Functions

_getInstance ($a_type, $a_index, $a_technical_id=0)

Detailed Description

Definition at line 32 of file class.ilMDFactory.php.

Member Function Documentation

& ilMDFactory::_getInstance (   $a_type,
  $a_index,
  $a_technical_id = 0 
)

Definition at line 41 of file class.ilMDFactory.php.

References $key.

Referenced by ilMDEditorGUI\deleteElement(), and ilMDEditorGUI\deleteSection().

{
switch($a_type)
{
case 'meta_technical':
include_once 'Services/MetaData/classes/class.ilMDTechnical.php';
$tec = new ilMDTechnical();
$tec->setMetaId($a_index);
return $tec;
case 'meta_or_composite':
include_once 'Services/MetaData/classes/class.ilMDOrComposite.php';
include_once 'Services/MetaData/classes/class.ilMDTechnical.php';
$tec = new ilMDTechnical();
$tec->setMetaId($a_technical_id);
return $tec->getOrComposite($a_index);
case 'meta_requirement':
include_once 'Services/MetaData/classes/class.ilMDRequirement.php';
$req =& new ilMDRequirement();
$req->setMetaId($a_index);
return $req;
case 'meta_location':
include_once 'Services/MetaData/classes/class.ilMDLocation.php';
$loc =& new ilMDLocation();
$loc->setMetaId($a_index);
return $loc;
case 'meta_format':
include_once 'Services/MetaData/classes/class.ilMDFormat.php';
$for =& new ilMDFormat();
$for->setMetaId($a_index);
return $for;
case 'meta_lifecycle':
include_once 'Services/MetaData/classes/class.ilMDLifecycle.php';
$lif =& new ilMDLifecycle();
$lif->setMetaId($a_index);
return $lif;
case 'meta_entity':
include_once 'Services/MetaData/classes/class.ilMDEntity.php';
$ent =& new ilMDEntity();
$ent->setMetaId($a_index);
return $ent;
case 'meta_contribute':
include_once 'Services/MetaData/classes/class.ilMDContribute.php';
$con =& new ilMDContribute();
$con->setMetaId($a_index);
return $con;
case 'meta_identifier':
include_once 'Services/MetaData/classes/class.ilMDIdentifier.php';
$ide =& new ilMDIdentifier();
$ide->setMetaId($a_index);
return $ide;
case 'educational_description':
case 'meta_description':
include_once 'Services/MetaData/classes/class.ilMDDescription.php';
$des =& new ilMDDescription();
$des->setMetaId($a_index);
return $des;
case 'meta_keyword':
case 'classification_keyword':
include_once 'Services/MetaData/classes/class.ilMDKeyword.php';
$key =& new ilMDKeyword();
$key->setMetaId($a_index);
return $key;
case 'educational_language':
case 'meta_language':
include_once 'Services/MetaData/classes/class.ilMDLanguage.php';
$lan =& new ilMDLanguage();
$lan->setMetaId($a_index);
return $lan;
case 'meta_rights':
include_once 'Services/MetaData/classes/class.ilMDRights.php';
$rights =& new ilMDRights();
$rights->setMetaId($a_index);
return $rights;
case 'meta_educational':
include_once 'Services/MetaData/classes/class.ilMDEducational.php';
$edu =& new ilMDEducational();
$edu->setMetaId($a_index);
return $edu;
case 'educational_typical_age_range':
include_once 'Services/MetaData/classes/class.ilMDTypicalAgeRange.php';
$age =& new ilMDTypicalAgeRange();
$age->setMetaId($a_index);
return $age;
case 'meta_relation':
include_once 'Services/MetaData/classes/class.ilMDRelation.php';
$relation =& new ilMDRelation();
$relation->setMetaId($a_index);
return $relation;
case 'relation_resource_identifier':
include_once 'Services/MetaData/classes/class.ilMDIdentifier_.php';
$ide =& new ilMDIdentifier_();
$ide->setMetaId($a_index);
return $ide;
case 'relation_resource_description':
include_once 'Services/MetaData/classes/class.ilMDDescription.php';
$des =& new ilMDDescription();
$des->setMetaId($a_index);
return $des;
case 'meta_annotation':
include_once 'Services/MetaData/classes/class.ilMDAnnotation.php';
$anno =& new ilMDAnnotation();
$anno->setMetaId($a_index);
return $anno;
case 'meta_classification':
include_once 'Services/MetaData/classes/class.ilMDClassification.php';
$class =& new ilMDClassification();
$class->setMetaId($a_index);
return $class;
case 'classification_taxon_path':
include_once 'Services/MetaData/classes/class.ilMDTaxonPath.php';
$tax_path =& new ilMDTaxonPath();
$tax_path->setMetaId($a_index);
return $tax_path;
case 'classification_taxon':
include_once 'Services/MetaData/classes/class.ilMDTaxon.php';
$tax =& new ilMDTaxon();
$tax->setMetaId($a_index);
return $tax;
case 'meta_meta_metadata':
include_once 'Services/MetaData/classes/class.ilMDMetaMetadata.php';
$met =& new ilMDMetaMetadata();
$met->setMetaId($a_index);
return $met;
default:
echo $a_type . " not known";
}
}

+ Here is the caller graph for this function:


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