ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\ResourceStorage\Services Class Reference

Class Services. More...

+ Collaboration diagram for ILIAS\ResourceStorage\Services:

Public Member Functions

 __construct (StorageHandlerFactory $storage_handler_factory, Repositories $repositories, Artifacts $artifacts, LockHandler $lock_handler, FileNamePolicy $file_name_policy, StreamAccess $stream_access, Factory $machine_factory, SrcBuilder $src_builder=null, RepositoryPreloader $preloader=null)
 Services constructor. More...
 
 manage ()
 
 manageContainer ()
 
 consume ()
 
 collection ()
 
 flavours ()
 
 preload (array $identification_strings)
 
 events ()
 

Protected Attributes

Subject $events
 
ILIAS ResourceStorage Manager Manager $manager
 
ContainerManager $container_manager
 
ILIAS ResourceStorage Consumer Consumers $consumers
 
ILIAS ResourceStorage Collection Collections $collections
 
ILIAS ResourceStorage Flavour Flavours $flavours
 
ILIAS ResourceStorage Preloader RepositoryPreloader $preloader
 

Detailed Description

Class Services.

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s.ch

Definition at line 51 of file Services.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\ResourceStorage\Services::__construct ( StorageHandlerFactory  $storage_handler_factory,
Repositories  $repositories,
Artifacts  $artifacts,
LockHandler  $lock_handler,
FileNamePolicy  $file_name_policy,
StreamAccess  $stream_access,
Factory  $machine_factory,
SrcBuilder  $src_builder = null,
RepositoryPreloader  $preloader = null 
)

Services constructor.

Definition at line 64 of file Services.php.

References ILIAS\ResourceStorage\Services\$events, ILIAS\ResourceStorage\Services\events(), ILIAS\ResourceStorage\Services\flavours(), ILIAS\ResourceStorage\Repositories\getCollectionRepository(), and ILIAS\ResourceStorage\Repositories\getFlavourRepository().

74  {
75  $this->events = new Subject();
76  $src_builder ??= new InlineSrcBuilder();
77  $file_name_policy_stack = new FileNamePolicyStack();
78  $file_name_policy_stack->addPolicy($file_name_policy);
79  $resource_builder = new ResourceBuilder(
80  $storage_handler_factory,
81  $repositories,
82  $lock_handler,
83  $stream_access,
84  $file_name_policy_stack
85  );
86  $collection_builder = new CollectionBuilder(
87  $repositories->getCollectionRepository(),
89  new UniqueIDCollectionIdentificationGenerator(),
90  $lock_handler
91  );
92  $this->preloader = $preloader ?? new StandardRepositoryPreloader($repositories);
93  $this->manager = new Manager(
94  $resource_builder,
95  $collection_builder,
96  $this->preloader
97  );
98  $this->container_manager = new ContainerManager(
99  $resource_builder,
100  $collection_builder,
101  $this->preloader,
102  $this->events
103  );
104  $this->consumers = new Consumers(
105  new ConsumerFactory(
106  $stream_access,
107  $file_name_policy_stack
108  ),
109  $resource_builder,
110  $collection_builder,
111  $src_builder
112  );
113  $this->collections = new Collections(
114  $resource_builder,
115  $collection_builder,
116  $this->preloader,
117  $this->events
118  );
119 
120  $flavour_builder = new FlavourBuilder(
121  $repositories->getFlavourRepository(),
122  $machine_factory,
123  $resource_builder,
124  $storage_handler_factory,
125  $stream_access,
127  );
128 
129  $this->flavours = new Flavours(
130  $flavour_builder,
131  $resource_builder
132  );
133  }
ILIAS ResourceStorage Preloader RepositoryPreloader $preloader
Definition: Services.php:59
+ Here is the call graph for this function:

Member Function Documentation

◆ collection()

ILIAS\ResourceStorage\Services::collection ( )

Definition at line 150 of file Services.php.

References ILIAS\ResourceStorage\Services\$collections.

150  : Collections
151  {
152  return $this->collections;
153  }
ILIAS ResourceStorage Collection Collections $collections
Definition: Services.php:57

◆ consume()

ILIAS\ResourceStorage\Services::consume ( )

Definition at line 145 of file Services.php.

References ILIAS\ResourceStorage\Services\$consumers.

Referenced by ilDAVFile\__construct(), and ilObjUser\copyProfilePicturesToDirectory().

145  : Consumers
146  {
147  return $this->consumers;
148  }
ILIAS ResourceStorage Consumer Consumers $consumers
Definition: Services.php:56
+ Here is the caller graph for this function:

◆ events()

ILIAS\ResourceStorage\Services::events ( )

Definition at line 165 of file Services.php.

References ILIAS\ResourceStorage\Services\$events.

Referenced by ILIAS\ResourceStorage\Services\__construct().

165  : Subject
166  {
167  return $this->events;
168  }
+ Here is the caller graph for this function:

◆ flavours()

ILIAS\ResourceStorage\Services::flavours ( )

Definition at line 155 of file Services.php.

References ILIAS\ResourceStorage\Services\$flavours.

Referenced by ILIAS\ResourceStorage\Services\__construct().

155  : Flavours
156  {
157  return $this->flavours;
158  }
ILIAS ResourceStorage Flavour Flavours $flavours
Definition: Services.php:58
+ Here is the caller graph for this function:

◆ manage()

ILIAS\ResourceStorage\Services::manage ( )

Definition at line 135 of file Services.php.

References ILIAS\ResourceStorage\Services\$manager.

Referenced by ilDAVFile\__construct(), and ilObjUser\copyProfilePicturesToDirectory().

135  : Manager
136  {
137  return $this->manager;
138  }
ILIAS ResourceStorage Manager Manager $manager
Definition: Services.php:54
+ Here is the caller graph for this function:

◆ manageContainer()

ILIAS\ResourceStorage\Services::manageContainer ( )

Definition at line 140 of file Services.php.

References ILIAS\ResourceStorage\Services\$container_manager.

140  : ContainerManager
141  {
143  }
ContainerManager $container_manager
Definition: Services.php:55

◆ preload()

ILIAS\ResourceStorage\Services::preload ( array  $identification_strings)

Definition at line 160 of file Services.php.

160  : void
161  {
162  $this->preloader->preload($identification_strings);
163  }

Field Documentation

◆ $collections

ILIAS ResourceStorage Collection Collections ILIAS\ResourceStorage\Services::$collections
protected

Definition at line 57 of file Services.php.

Referenced by ILIAS\ResourceStorage\Services\collection().

◆ $consumers

ILIAS ResourceStorage Consumer Consumers ILIAS\ResourceStorage\Services::$consumers
protected

Definition at line 56 of file Services.php.

Referenced by ILIAS\ResourceStorage\Services\consume().

◆ $container_manager

ContainerManager ILIAS\ResourceStorage\Services::$container_manager
protected

Definition at line 55 of file Services.php.

Referenced by ILIAS\ResourceStorage\Services\manageContainer().

◆ $events

Subject ILIAS\ResourceStorage\Services::$events
protected

◆ $flavours

ILIAS ResourceStorage Flavour Flavours ILIAS\ResourceStorage\Services::$flavours
protected

Definition at line 58 of file Services.php.

Referenced by ILIAS\ResourceStorage\Services\flavours().

◆ $manager

ILIAS ResourceStorage Manager Manager ILIAS\ResourceStorage\Services::$manager
protected

Definition at line 54 of file Services.php.

Referenced by ILIAS\ResourceStorage\Services\manage().

◆ $preloader

ILIAS ResourceStorage Preloader RepositoryPreloader ILIAS\ResourceStorage\Services::$preloader
protected

Definition at line 59 of file Services.php.


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