ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
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 Wed Sep 3 2025 23:02:48 for ILIAS by
1.8.13 (using
Doxyfile
)