ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.MetadataManager.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
26 {
28 
29  public function __construct(LOMServices $lom_services)
30  {
31  $this->lom_services = $lom_services;
32  }
33 
34  public function getLOMLanguagesForSelectInputs(): array
35  {
36  $languages = [];
37  foreach ($this->lom_services->dataHelper()->getAllLanguages() as $language) {
38  $languages[$language->value()] = $language->presentableLabel();
39  }
40  return $languages;
41  }
42 
46  public function getActiveAdvMDRecords(int $ref_id): array
47  {
48  $adv_adapter = new \ilGlossaryAdvMetaDataAdapter($ref_id);
49  return $adv_adapter->getActiveRecords();
50  }
51 }
$ref_id
Definition: ltiauth.php:65