ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\MetaData\XML\Services\Services Class Reference
+ Collaboration diagram for ILIAS\MetaData\XML\Services\Services:

Public Member Functions

 __construct (GlobalContainer $dic, PathServices $path_services, StructureServices $structure_services, ManipulatorServices $manipulator_services, CopyrightServices $copyright_services)
 
 standardWriter ()
 
 standardReader ()
 
 simpleDCWriter ()
 

Protected Attributes

GlobalContainer $dic
 
WriterInterface $standard_writer
 
ReaderInterface $standard_reader
 
SimpleDCInterface $simple_dc_writer
 
PathServices $path_services
 
StructureServices $structure_services
 
ManipulatorServices $manipulator_services
 
CopyrightServices $copyright_services
 

Detailed Description

Definition at line 44 of file Services.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MetaData\XML\Services\Services::__construct ( GlobalContainer  $dic,
PathServices  $path_services,
StructureServices  $structure_services,
ManipulatorServices  $manipulator_services,
CopyrightServices  $copyright_services 
)

Member Function Documentation

◆ simpleDCWriter()

ILIAS\MetaData\XML\Services\Services::simpleDCWriter ( )

Definition at line 125 of file Services.php.

125 : SimpleDCInterface
126 {
127 if (isset($this->simple_dc_writer)) {
129 }
130
131 /*
132 * This should be replaced by a proper export API
133 * when it is available.
134 */
135 $export_service = new ExportService();
136 $data_factory = new DataFactory();
137
138 return $this->simple_dc_writer = new SimpleDC(
139 $this->path_services->pathFactory(),
140 $this->path_services->navigatorFactory(),
141 $data_factory,
142 new CopyrightHandler(
143 $this->copyright_services->repository(),
144 $this->copyright_services->identifiersHandler(),
146 ),
147 new LinkGenerator(
148 $this->dic['static_url'],
149 $export_service,
150 $data_factory
151 )
152 );
153 }
SimpleDCInterface $simple_dc_writer
Definition: Services.php:49

References ILIAS\MetaData\XML\Services\Services\$simple_dc_writer, and ilMDSettings\_getInstance().

+ Here is the call graph for this function:

◆ standardReader()

ILIAS\MetaData\XML\Services\Services::standardReader ( )

Definition at line 93 of file Services.php.

93 : ReaderInterface
94 {
95 if (isset($this->standard_reader)) {
97 }
98 $dictionary = (new LOMDictionaryInitiator(
99 new TagFactory(),
100 $this->path_services->pathFactory(),
101 $this->path_services->navigatorFactory(),
102 $this->structure_services->structure()
103 ))->get();
104 $marker_factory = new MarkerFactory();
105 $copyright_handler = new CopyrightHandler(
106 $this->copyright_services->repository(),
107 $this->copyright_services->identifiersHandler(),
109 );
110 return $this->standard_reader = new StandardReader(
111 new StructurallyCoupled(
112 $marker_factory,
113 $this->manipulator_services->scaffoldProvider(),
114 $dictionary,
115 $copyright_handler
116 ),
117 new Legacy(
118 $marker_factory,
119 $this->manipulator_services->scaffoldProvider(),
120 $copyright_handler
121 )
122 );
123 }

References ILIAS\MetaData\XML\Services\Services\$standard_reader, and ilMDSettings\_getInstance().

+ Here is the call graph for this function:

◆ standardWriter()

ILIAS\MetaData\XML\Services\Services::standardWriter ( )

Definition at line 70 of file Services.php.

70 : WriterInterface
71 {
72 if (isset($this->standard_writer)) {
74 }
75 $dictionary = (new LOMDictionaryInitiator(
76 new TagFactory(),
77 $this->path_services->pathFactory(),
78 $this->path_services->navigatorFactory(),
79 $this->structure_services->structure()
80 ))->get();
81 return $this->standard_writer = new StandardWriter(
82 $dictionary,
83 new CopyrightHandler(
84 $this->copyright_services->repository(),
85 $this->copyright_services->identifiersHandler(),
87 ),
88 $this->path_services->pathFactory(),
89 $this->manipulator_services->manipulator()
90 );
91 }

References ILIAS\MetaData\XML\Services\Services\$standard_writer, and ilMDSettings\_getInstance().

+ Here is the call graph for this function:

Field Documentation

◆ $copyright_services

CopyrightServices ILIAS\MetaData\XML\Services\Services::$copyright_services
protected

Definition at line 54 of file Services.php.

Referenced by ILIAS\MetaData\XML\Services\Services\__construct().

◆ $dic

GlobalContainer ILIAS\MetaData\XML\Services\Services::$dic
protected

Definition at line 46 of file Services.php.

Referenced by ILIAS\MetaData\XML\Services\Services\__construct().

◆ $manipulator_services

ManipulatorServices ILIAS\MetaData\XML\Services\Services::$manipulator_services
protected

Definition at line 53 of file Services.php.

Referenced by ILIAS\MetaData\XML\Services\Services\__construct().

◆ $path_services

PathServices ILIAS\MetaData\XML\Services\Services::$path_services
protected

Definition at line 51 of file Services.php.

Referenced by ILIAS\MetaData\XML\Services\Services\__construct().

◆ $simple_dc_writer

SimpleDCInterface ILIAS\MetaData\XML\Services\Services::$simple_dc_writer
protected

Definition at line 49 of file Services.php.

Referenced by ILIAS\MetaData\XML\Services\Services\simpleDCWriter().

◆ $standard_reader

ReaderInterface ILIAS\MetaData\XML\Services\Services::$standard_reader
protected

Definition at line 48 of file Services.php.

Referenced by ILIAS\MetaData\XML\Services\Services\standardReader().

◆ $standard_writer

WriterInterface ILIAS\MetaData\XML\Services\Services::$standard_writer
protected

Definition at line 47 of file Services.php.

Referenced by ILIAS\MetaData\XML\Services\Services\standardWriter().

◆ $structure_services

StructureServices ILIAS\MetaData\XML\Services\Services::$structure_services
protected

Definition at line 52 of file Services.php.

Referenced by ILIAS\MetaData\XML\Services\Services\__construct().


The documentation for this class was generated from the following file: