ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ILIAS\MetaData\OERHarvester\Services\Services Class Reference
+ Collaboration diagram for ILIAS\MetaData\OERHarvester\Services\Services:

Public Member Functions

 __construct (protected GlobalContainer $dic, protected PresentationServices $presentation_services, protected CopyrightServices $copyright_services, protected PathServices $path_services, protected RepositoryServices $repository_services, protected XMLServices $xml_services)
 
 settings ()
 
 exposedRecordsRepository ()
 
 controlCenterGUI (string $link_to_parent)
 
 stateInfoFetcher ()
 
 controlCenterComponentFactory ()
 
 automaticPublisher ()
 

Protected Member Functions

 linkFactory ()
 
 repositoryObjectHandler ()
 
 XMLWriter ()
 
 statusRepository ()
 
 publisher ()
 

Protected Attributes

SettingsInterface $settings
 
ExposedRecordsRepository $exposed_records_repository
 
StateInfoFetcherInterface $state_info_fetcher
 
ControlCenterComponentFactoryInterface $control_center_component_factory
 
ControlCenterGUI $control_center_gui
 
LinkFactoryInterface $link_factory
 
ObjectHandler $repository_object_handler
 
Writer $xml_writer
 
StatusRepository $status_repository
 
PublisherInterface $publisher
 

Detailed Description

Definition at line 52 of file Services.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MetaData\OERHarvester\Services\Services::__construct ( protected GlobalContainer  $dic,
protected PresentationServices  $presentation_services,
protected CopyrightServices  $copyright_services,
protected PathServices  $path_services,
protected RepositoryServices  $repository_services,
protected XMLServices  $xml_services 
)

Definition at line 66 of file Services.php.

73 {
74 }

Member Function Documentation

◆ automaticPublisher()

ILIAS\MetaData\OERHarvester\Services\Services::automaticPublisher ( )

Definition at line 146 of file Services.php.

146 : AutomaticPublisher
147 {
148 return new AutomaticPublisher(
149 $this->publisher(),
150 $this->settings(),
152 $this->statusRepository(),
154 $this->copyright_services->searcherFactory(),
155 $this->repository_services->repository(),
156 $this->XMLWriter(),
157 $this->dic->logger()->meta()
158 );
159 }

References ILIAS\MetaData\OERHarvester\Services\Services\exposedRecordsRepository(), ILIAS\MetaData\OERHarvester\Services\Services\publisher(), ILIAS\MetaData\OERHarvester\Services\Services\repositoryObjectHandler(), ILIAS\MetaData\OERHarvester\Services\Services\settings(), and ILIAS\MetaData\OERHarvester\Services\Services\statusRepository().

+ Here is the call graph for this function:

◆ controlCenterComponentFactory()

ILIAS\MetaData\OERHarvester\Services\Services::controlCenterComponentFactory ( )

Definition at line 136 of file Services.php.

136 : ControlCenterComponentFactoryInterface
137 {
138 return $this->control_center_component_factory ??= new ControlCenterComponentFactory(
139 $this->dic->ui()->factory(),
140 new DataFactory(),
141 $this->linkFactory(),
142 $this->presentation_services->utilities()
143 );
144 }

References ILIAS\MetaData\OERHarvester\Services\Services\linkFactory().

+ Here is the call graph for this function:

◆ controlCenterGUI()

ILIAS\MetaData\OERHarvester\Services\Services::controlCenterGUI ( string  $link_to_parent)

Definition at line 86 of file Services.php.

86 : ControlCenterGUI
87 {
88 $data_factory = new DataFactory();
89 $link_to_parent = $data_factory->uri(
90 rtrim(ILIAS_HTTP_PATH, '/') . '/' .
91 ltrim($link_to_parent, '/')
92 );
93
94 return $this->control_center_gui ??= new ControlCenterGUI(
95 $link_to_parent,
96 $this->dic->ctrl(),
97 $this->dic->ui()->mainTemplate(),
98 $this->dic->ui()->factory(),
99 $this->dic->ui()->renderer(),
100 new RequestParser(
101 $this->dic->http(),
102 $this->dic->refinery()
103 ),
104 new ContentFactory(
105 $this->dic->ui()->factory(),
106 $this->presentation_services->utilities(),
107 $this->linkFactory(),
108 $this->copyright_services->repository()
109 ),
110 $this->presentation_services->utilities(),
111 $this->stateInfoFetcher(),
112 $this->publisher(),
113 $this->settings(),
114 $this->dic['static_url'],
115 $data_factory,
116 $this->repositoryObjectHandler()
117 );
118 }

◆ exposedRecordsRepository()

ILIAS\MetaData\OERHarvester\Services\Services::exposedRecordsRepository ( )

Definition at line 81 of file Services.php.

81 : ExposedRecordsRepository
82 {
83 return $this->exposed_records_repository ??= new ExposedRecordsRepository($this->dic->database());
84 }

Referenced by ILIAS\MetaData\OERHarvester\Services\Services\automaticPublisher(), and ILIAS\MetaData\OERHarvester\Services\Services\publisher().

+ Here is the caller graph for this function:

◆ linkFactory()

ILIAS\MetaData\OERHarvester\Services\Services::linkFactory ( )
protected

Definition at line 161 of file Services.php.

161 : LinkFactoryInterface
162 {
163 return $this->link_factory ??= new LinkFactory(
164 $this->dic->ctrl()
165 );
166 }

Referenced by ILIAS\MetaData\OERHarvester\Services\Services\controlCenterComponentFactory().

+ Here is the caller graph for this function:

◆ publisher()

ILIAS\MetaData\OERHarvester\Services\Services::publisher ( )
protected

Definition at line 186 of file Services.php.

186 : PublisherInterface
187 {
188 return $this->publisher ??= new Publisher(
190 $this->statusRepository(),
192 new ExportHandler(
193 $this->dic->user(),
194 new ExportService(), // should be replaced by proper API
195 new DataFactory()
196 ),
197 $this->settings(),
198 $this->XMLWriter(),
199 $this->dic->access()
200 );
201 }

References ILIAS\MetaData\OERHarvester\Services\Services\exposedRecordsRepository(), ILIAS\MetaData\OERHarvester\Services\Services\publisher(), ILIAS\MetaData\OERHarvester\Services\Services\repositoryObjectHandler(), ILIAS\MetaData\OERHarvester\Services\Services\settings(), ILIAS\MetaData\OERHarvester\Services\Services\statusRepository(), and ILIAS\MetaData\OERHarvester\Services\Services\XMLWriter().

Referenced by ILIAS\MetaData\OERHarvester\Services\Services\automaticPublisher(), and ILIAS\MetaData\OERHarvester\Services\Services\publisher().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ repositoryObjectHandler()

ILIAS\MetaData\OERHarvester\Services\Services::repositoryObjectHandler ( )
protected

Definition at line 168 of file Services.php.

168 : ObjectHandler
169 {
170 return $this->repository_object_handler ??= new ObjectHandler($this->dic->repositoryTree());
171 }

Referenced by ILIAS\MetaData\OERHarvester\Services\Services\automaticPublisher(), and ILIAS\MetaData\OERHarvester\Services\Services\publisher().

+ Here is the caller graph for this function:

◆ settings()

ILIAS\MetaData\OERHarvester\Services\Services::settings ( )

Definition at line 76 of file Services.php.

76 : SettingsInterface
77 {
78 return $this->settings ??= new Settings();
79 }

References ILIAS\MetaData\OERHarvester\Services\Services\settings().

Referenced by ILIAS\MetaData\OERHarvester\Services\Services\automaticPublisher(), ILIAS\MetaData\OERHarvester\Services\Services\publisher(), and ILIAS\MetaData\OERHarvester\Services\Services\settings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ stateInfoFetcher()

ILIAS\MetaData\OERHarvester\Services\Services::stateInfoFetcher ( )

Definition at line 120 of file Services.php.

120 : StateInfoFetcherInterface
121 {
122 return $this->state_info_fetcher ??= new StateInfoFetcher(
123 $this->dic->access(),
124 $this->exposedRecordsRepository(),
125 $this->statusRepository(),
126 $this->settings(),
127 $this->repositoryObjectHandler(),
128 $this->copyright_services->identifiersHandler(),
129 $this->publisher(),
130 $this->repository_services->repository(),
131 $this->path_services->navigatorFactory(),
132 $this->path_services->pathFactory()
133 );
134 }

◆ statusRepository()

ILIAS\MetaData\OERHarvester\Services\Services::statusRepository ( )
protected

Definition at line 181 of file Services.php.

181 : StatusRepository
182 {
183 return $this->status_repository ??= new DatabaseRepository($this->dic->database());
184 }

Referenced by ILIAS\MetaData\OERHarvester\Services\Services\automaticPublisher(), and ILIAS\MetaData\OERHarvester\Services\Services\publisher().

+ Here is the caller graph for this function:

◆ XMLWriter()

ILIAS\MetaData\OERHarvester\Services\Services::XMLWriter ( )
protected

Definition at line 173 of file Services.php.

173 : Writer
174 {
175 return $this->xml_writer ??= new Writer(
176 $this->repository_services->repository(),
177 $this->xml_services->simpleDCWriter()
178 );
179 }

Referenced by ILIAS\MetaData\OERHarvester\Services\Services\publisher().

+ Here is the caller graph for this function:

Field Documentation

◆ $control_center_component_factory

ControlCenterComponentFactoryInterface ILIAS\MetaData\OERHarvester\Services\Services::$control_center_component_factory
protected

Definition at line 57 of file Services.php.

◆ $control_center_gui

ControlCenterGUI ILIAS\MetaData\OERHarvester\Services\Services::$control_center_gui
protected

Definition at line 58 of file Services.php.

◆ $exposed_records_repository

ExposedRecordsRepository ILIAS\MetaData\OERHarvester\Services\Services::$exposed_records_repository
protected

Definition at line 55 of file Services.php.

◆ $link_factory

LinkFactoryInterface ILIAS\MetaData\OERHarvester\Services\Services::$link_factory
protected

Definition at line 60 of file Services.php.

◆ $publisher

PublisherInterface ILIAS\MetaData\OERHarvester\Services\Services::$publisher
protected

Definition at line 64 of file Services.php.

◆ $repository_object_handler

ObjectHandler ILIAS\MetaData\OERHarvester\Services\Services::$repository_object_handler
protected

Definition at line 61 of file Services.php.

◆ $settings

SettingsInterface ILIAS\MetaData\OERHarvester\Services\Services::$settings
protected

Definition at line 54 of file Services.php.

◆ $state_info_fetcher

StateInfoFetcherInterface ILIAS\MetaData\OERHarvester\Services\Services::$state_info_fetcher
protected

Definition at line 56 of file Services.php.

◆ $status_repository

StatusRepository ILIAS\MetaData\OERHarvester\Services\Services::$status_repository
protected

Definition at line 63 of file Services.php.

◆ $xml_writer

Writer ILIAS\MetaData\OERHarvester\Services\Services::$xml_writer
protected

Definition at line 62 of file Services.php.


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