ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ILIAS\Object\ilObjectDIC Class Reference
+ Inheritance diagram for ILIAS\Object\ilObjectDIC:
+ Collaboration diagram for ILIAS\Object\ilObjectDIC:

Static Public Member Functions

static dic ()
 

Private Member Functions

 init (ILIASContainer $DIC)
 

Static Private Attributes

static ilObjectDIC $dic = null
 

Detailed Description

Definition at line 33 of file ilObjectDIC.php.

Member Function Documentation

◆ dic()

static ILIAS\Object\ilObjectDIC::dic ( )
static

Definition at line 37 of file ilObjectDIC.php.

References $DIC, and $dic.

Referenced by ILIAS\Repository\Form\initStdObjProperties().

37  : self
38  {
39  if (self::$dic === null) {
40  global $DIC;
41  self::$dic = new ilObjectDIC();
42  self::$dic->init($DIC);
43  }
44 
45  return self::$dic;
46  }
global $DIC
Definition: shib_login.php:25
$dic
Definition: ltiresult.php:33
+ Here is the caller graph for this function:

◆ init()

ILIAS\Object\ilObjectDIC::init ( ILIASContainer  $DIC)
private

Definition at line 48 of file ilObjectDIC.php.

References $c, and ILIAS\Setup\Artifact\BuildArtifactObjective\PATH().

48  : void
49  {
50  $this['common_settings'] = fn($c): \ilObjectCommonSettings => new \ilObjectCommonSettings(
51  $DIC['lng'],
52  $DIC['upload'],
53  $DIC['resource_storage'],
54  $DIC['http'],
55  $c['tile_image_stackholder'],
56  $c['tile_image_flavour']
57  );
58 
59  $this['object_properties_agregator'] = fn($c): \ilObjectPropertiesAgregator => new \ilObjectPropertiesAgregator(
60  $c['core_properties_repository'],
61  $c['additional_properties_repository'],
62  $c['object_type_specific_properties_factory'],
63  $DIC['learning_object_metadata']
64  );
65 
66  $this['core_properties_repository'] = fn($c): \ilObjectCorePropertiesRepository
68  $DIC['ilDB'],
69  $DIC['objDefinition'],
70  $DIC['resource_storage'],
71  $c['tile_image_stackholder'],
72  new ilObjectTileImageFlavourDefinition(),
73  $c['object_type_specific_properties_factory']
74  );
75 
76  $this['multi_object_properties_manipulator'] = fn($c): MultiObjectPropertiesManipulator
77  => new MultiObjectPropertiesManipulator(
78  $c['object_reference_repository'],
79  $c['object_properties_agregator'],
80  $DIC['lng'],
81  $DIC['ilCtrl'],
82  $DIC['ilUser'],
83  $DIC['ui.factory'],
84  $DIC['tpl'],
85  $DIC['refinery']
86  );
87 
88  $this['additional_properties_repository'] = fn($c): \ilObjectAdditionalPropertiesRepository
90  $DIC['object.customicons.factory'],
91  $c['object_type_specific_properties_factory']
92  );
93 
94  $this['tile_image_stackholder'] = static fn($c): ilObjectTileImageStakeholder
95  => new ilObjectTileImageStakeholder();
96 
97  $this['tile_image_flavour'] = static fn($c): ilObjectTileImageFlavourDefinition
98  => new ilObjectTileImageFlavourDefinition();
99 
100  $this['object_type_specific_properties_factory'] = fn($c): ObjectTypeSpecificPropertiesFactory
101  => new ObjectTypeSpecificPropertiesFactory(
102  is_readable(ilObjectTypeSpecificPropertiesArtifactObjective::PATH()) ?
103  include ilObjectTypeSpecificPropertiesArtifactObjective::PATH()
104  : [],
105  $DIC['ilDB']
106  );
107 
108  $this['object_reference_repository'] = fn($c): ObjectReferencePropertiesCachedRepository
109  => new ObjectReferencePropertiesCachedRepository(
110  $c['availability_period_repository'],
111  $DIC['ilDB']
112  );
113 
114  $this['availability_period_repository'] = fn($c): ObjectAvailabilityPeriodPropertiesCachedRepository
115  => new ObjectAvailabilityPeriodPropertiesCachedRepository(
116  $DIC['ilDB'],
117  $DIC['tree']
118  );
119  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$c
Definition: deliver.php:9
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:25
+ Here is the call graph for this function:

Field Documentation

◆ $dic

ilObjectDIC ILIAS\Object\ilObjectDIC::$dic = null
staticprivate

Definition at line 35 of file ilObjectDIC.php.


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