ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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
 
Manager $manager
 
ContainerManager $container_manager
 
Consumers $consumers
 
Collections $collections
 
Flavours $flavours
 
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 50 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 63 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().

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

Member Function Documentation

◆ collection()

ILIAS\ResourceStorage\Services::collection ( )

Definition at line 149 of file Services.php.

References ILIAS\ResourceStorage\Services\$collections.

149  : Collections
150  {
151  return $this->collections;
152  }

◆ consume()

ILIAS\ResourceStorage\Services::consume ( )

Definition at line 144 of file Services.php.

References ILIAS\ResourceStorage\Services\$consumers.

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

144  : Consumers
145  {
146  return $this->consumers;
147  }
+ Here is the caller graph for this function:

◆ events()

ILIAS\ResourceStorage\Services::events ( )

Definition at line 164 of file Services.php.

References ILIAS\ResourceStorage\Services\$events.

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

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

◆ flavours()

ILIAS\ResourceStorage\Services::flavours ( )

Definition at line 154 of file Services.php.

References ILIAS\ResourceStorage\Services\$flavours.

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

154  : Flavours
155  {
156  return $this->flavours;
157  }
+ Here is the caller graph for this function:

◆ manage()

ILIAS\ResourceStorage\Services::manage ( )

Definition at line 134 of file Services.php.

References ILIAS\ResourceStorage\Services\$manager.

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

134  : Manager
135  {
136  return $this->manager;
137  }
+ Here is the caller graph for this function:

◆ manageContainer()

ILIAS\ResourceStorage\Services::manageContainer ( )

Definition at line 139 of file Services.php.

References ILIAS\ResourceStorage\Services\$container_manager.

139  : ContainerManager
140  {
142  }
ContainerManager $container_manager
Definition: Services.php:54

◆ preload()

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

Definition at line 159 of file Services.php.

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

Field Documentation

◆ $collections

Collections ILIAS\ResourceStorage\Services::$collections
protected

Definition at line 56 of file Services.php.

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

◆ $consumers

Consumers ILIAS\ResourceStorage\Services::$consumers
protected

Definition at line 55 of file Services.php.

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

◆ $container_manager

ContainerManager ILIAS\ResourceStorage\Services::$container_manager
protected

Definition at line 54 of file Services.php.

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

◆ $events

Subject ILIAS\ResourceStorage\Services::$events
protected

◆ $flavours

Flavours ILIAS\ResourceStorage\Services::$flavours
protected

Definition at line 57 of file Services.php.

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

◆ $manager

Manager ILIAS\ResourceStorage\Services::$manager
protected

Definition at line 53 of file Services.php.

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

◆ $preloader

RepositoryPreloader ILIAS\ResourceStorage\Services::$preloader
protected

Definition at line 58 of file Services.php.


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