ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
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
21
namespace
ILIAS\Glossary\Metadata
;
22
23
use
ILIAS\MetaData\Services\ServicesInterface
as
LOMServices
;
24
25
class
MetadataManager
26
{
27
protected
LOMServices
$lom_services
;
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
}
ILIAS\FileUpload\DTO\Metadata\MetadataManager\getActiveAdvMDRecords
getActiveAdvMDRecords(int $ref_id)
Definition:
class.MetadataManager.php:46
ILIAS\FileUpload\DTO\Metadata\MetadataManager\__construct
__construct(LOMServices $lom_services)
Definition:
class.MetadataManager.php:29
$ref_id
$ref_id
Definition:
ltiauth.php:65
ILIAS\FileUpload\DTO\Metadata\MetadataManager\$lom_services
LOMServices $lom_services
Definition:
class.MetadataManager.php:27
ILIAS\FileUpload\DTO\Metadata\MetadataManager
Definition:
class.MetadataManager.php:25
ILIAS\FileUpload\DTO\Metadata\MetadataManager\getLOMLanguagesForSelectInputs
getLOMLanguagesForSelectInputs()
Definition:
class.MetadataManager.php:34
ILIAS\Glossary\Metadata
Definition:
class.MetadataManager.php:21
ServicesInterface
components
ILIAS
Glossary
Metadata
class.MetadataManager.php
Generated on Tue Apr 8 2025 23:03:00 for ILIAS by
1.8.13 (using
Doxyfile
)