ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
◀ 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
Writer.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\OERHarvester\XML
;
22
23
use
ILIAS\MetaData\Repository\RepositoryInterface
as
LOMRepository
;
24
use
ILIAS\MetaData\XML\Writer\SimpleDC\SimpleDCInterface
as SimpleDCXMLWriter;
25
26
class
Writer
implements
WriterInterface
27
{
28
protected
LOMRepository
$lom_repository
;
29
protected
SimpleDCXMLWriter
$xml_writer
;
30
31
public
function
__construct
(
32
LOMRepository
$lom_repository,
33
SimpleDCXMLWriter $xml_writer
34
) {
35
$this->lom_repository =
$lom_repository
;
36
$this->xml_writer =
$xml_writer
;
37
}
38
39
public
function
writeSimpleDCMetaData
(
int
$obj_id,
int
$ref_id
,
string
$type): \
DOMDocument
40
{
41
$simple_dc_xml = new \DOMDocument();
42
$simple_dc_xml->loadXML($this->xml_writer->write(
43
$this->lom_repository->getMD($obj_id, $obj_id, $type),
44
$ref_id
45
)->asXML());
46
return
$simple_dc_xml;
47
}
48
}
ILIAS\MetaData\OERHarvester\XML\Writer\__construct
__construct(LOMRepository $lom_repository, SimpleDCXMLWriter $xml_writer)
Definition:
Writer.php:31
ILIAS\MetaData\OERHarvester\XML\Writer\$xml_writer
SimpleDCXMLWriter $xml_writer
Definition:
Writer.php:29
DOMDocument
ILIAS\MetaData\OERHarvester\XML
Definition:
NullWriter.php:21
$ref_id
$ref_id
Definition:
ltiauth.php:65
SimpleDCInterface
ILIAS\MetaData\OERHarvester\XML\WriterInterface
Definition:
WriterInterface.php:23
RepositoryInterface
ILIAS\MetaData\OERHarvester\XML\Writer
Definition:
Writer.php:26
ILIAS\MetaData\OERHarvester\XML\Writer\writeSimpleDCMetaData
writeSimpleDCMetaData(int $obj_id, int $ref_id, string $type)
Definition:
Writer.php:39
ILIAS\MetaData\OERHarvester\XML\Writer\$lom_repository
LOMRepository $lom_repository
Definition:
Writer.php:28
components
ILIAS
MetaData
classes
OERHarvester
XML
Writer.php
Generated on Fri Apr 25 2025 23:03:02 for ILIAS by
1.8.13 (using
Doxyfile
)