ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
◀ 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
Standard.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\XML\Reader\Standard
;
22
23
use
ILIAS\MetaData\Elements\SetInterface
;
24
use
ILIAS\MetaData\XML\Version
;
25
use
ILIAS\MetaData\XML\Reader\ReaderInterface
;
26
27
class
Standard
implements
ReaderInterface
28
{
29
protected
ReaderInterface
$structurally_coupled
;
30
protected
ReaderInterface
$legacy
;
31
32
public
function
__construct
(
33
ReaderInterface
$structurally_coupled,
34
ReaderInterface
$legacy
35
) {
36
$this->structurally_coupled =
$structurally_coupled
;
37
$this->
legacy
=
$legacy
;
38
}
39
40
public
function
read
(
41
\
SimpleXMLElement
$xml,
42
Version
$version
43
):
SetInterface
{
44
switch
($version) {
45
case
Version::V4_1_0:
46
return
$this->
legacy
->read($xml, $version);
47
48
case
Version::V10_0
:
49
default
:
50
return
$this->structurally_coupled->read($xml, $version);
51
}
52
}
53
}
SimpleXMLElement
ILIAS\MetaData\XML\Reader\ReaderInterface
Definition:
ReaderInterface.php:27
ILIAS\MetaData\XML\Reader\Standard\Standard\$legacy
ReaderInterface $legacy
Definition:
Standard.php:30
$version
$version
Definition:
plugin.php:24
ReaderInterface
ILIAS\MetaData\XML\Reader\Standard
Definition:
Legacy.php:21
ILIAS\MetaData\XML\Reader\Standard\Standard\$structurally_coupled
ReaderInterface $structurally_coupled
Definition:
Standard.php:29
ILIAS\MetaData\XML\Reader\Standard\Standard\read
read(\SimpleXMLElement $xml, Version $version)
Definition:
Standard.php:40
ILIAS\MetaData\XML\Reader\Standard\Standard
Definition:
Standard.php:27
ILIAS\MetaData\XML\V10_0
Definition:
Version.php:26
SetInterface
ILIAS\UI\examples\MainControls\Slate\Legacy\legacy
legacy()
expected output: > ILIAS shows the rendered Component.
Definition:
legacy.php:29
ILIAS\MetaData\XML\Reader\Standard\Standard\__construct
__construct(ReaderInterface $structurally_coupled, ReaderInterface $legacy)
Definition:
Standard.php:32
ILIAS\MetaData\Elements\SetInterface
Definition:
SetInterface.php:26
ILIAS\MetaData\XML\Version
Version
Definition:
Version.php:23
components
ILIAS
MetaData
classes
XML
Reader
Standard
Standard.php
Generated on Sat Apr 5 2025 23:02:58 for ILIAS by
1.8.13 (using
Doxyfile
)