|
static | _getInstance (string $a_type, int $a_index, ?int $a_technical_id=0) |
|
Definition at line 31 of file class.ilMDFactory.php.
◆ _getInstance()
static ilMDFactory::_getInstance |
( |
string |
$a_type, |
|
|
int |
$a_index, |
|
|
?int |
$a_technical_id = 0 |
|
) |
| |
|
static |
- Returns
- null|ilMDTechnical|ilMDTechnical|ilMDRequirement|ilMDLocation|ilMDFormat|ilMDLifecycle|ilMDEntity|ilMDContribute|ilMDIdentifier|ilMDDescription|ilMDKeyword|ilMDLanguage|ilMDRights|ilMDEducational|ilMDTypicalAgeRange|ilMDRelation|ilMDIdentifier_|ilMDAnnotation|ilMDClassification|ilMDTaxonPath|ilMDTaxon|ilMDMetaMetadata
Definition at line 36 of file class.ilMDFactory.php.
References ILIAS\LTI\ToolProvider\$key, and XapiProxy\$req.
Referenced by ilMDEditorGUI\deleteElement(), and ilMDEditorGUI\deleteSection().
39 case 'meta_technical':
42 $tec->setMetaId($a_index);
46 case 'meta_or_composite':
49 $tec->setMetaId($a_technical_id);
51 return $tec->getOrComposite($a_index);
53 case 'meta_requirement':
56 $req->setMetaId($a_index);
63 $loc->setMetaId($a_index);
70 $for->setMetaId($a_index);
74 case 'meta_lifecycle':
77 $lif->setMetaId($a_index);
84 $ent->setMetaId($a_index);
88 case 'meta_contribute':
91 $con->setMetaId($a_index);
95 case 'meta_identifier':
98 $ide->setMetaId($a_index);
102 case 'educational_description':
103 case 'meta_description':
106 $des->setMetaId($a_index);
111 case 'classification_keyword':
114 $key->setMetaId($a_index);
118 case 'educational_language':
119 case 'meta_language':
122 $lan->setMetaId($a_index);
129 $rights->setMetaId($a_index);
132 case 'meta_educational':
135 $edu->setMetaId($a_index);
138 case 'educational_typical_age_range':
141 $age->setMetaId($a_index);
144 case 'meta_relation':
147 $relation->setMetaId($a_index);
150 case 'relation_resource_identifier':
153 $ide->setMetaId($a_index);
157 case 'relation_resource_description':
160 $des->setMetaId($a_index);
164 case 'meta_annotation':
167 $anno->setMetaId($a_index);
170 case 'meta_classification':
173 $class->setMetaId($a_index);
176 case 'classification_taxon_path':
180 $tax_path->setMetaId($a_index);
183 case 'classification_taxon':
186 $tax->setMetaId($a_index);
189 case 'meta_meta_metadata':
192 $met->setMetaId($a_index);
196 echo $a_type .
" not known";
catch(\Exception $e) $req
The documentation for this class was generated from the following file: