ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
Service.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28use ILIAS\Data\Factory as DataFactory;
34
36{
38
39 public function __construct(
40 protected Container $dic
41 ) {
42 }
43
44 public function result(): ResultPresenter
45 {
46 $lng = $this->dic->language();
47 $lng->loadLanguageModule('search');
48 $sanitizer = new SanitizerImpl($this->dic->refinery());
49 $access_checker = new AccessCheckerImpl($this->dic->access());
50 $subitem_properties_factory = new SubitemPropertiesFactoryImpl();
51 return $this->result_presenter ??= new ResultPresenterImpl(
53 $this->dic->ui()->factory(),
54 $lng,
55 $sanitizer
56 ),
57 new ObjectPropertiesAggregatorImpl(
58 $access_checker,
59 $this->dic['objDefinition'],
60 $lng,
61 $this->dic['static_url'],
62 new DataFactory()
63 ),
64 new SubitemPropertiesAggregatorImpl(
65 $this->dic,
66 $subitem_properties_factory
67 ),
68 $subitem_properties_factory,
69 new CopyrightHelperImpl($this->dic->learningObjectMetadata()),
70 $access_checker,
71 $sanitizer
72 );
73 }
74}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
Builds data types.
Definition: Factory.php:36
__construct(protected Container $dic)
Definition: Service.php:39
$dic
Definition: ltiresult.php:33
global $lng
Definition: privfeed.php:31