ILIAS  release_8 Revision v8.24
ILIAS\ResourceStorage\Services Class Reference

Class Services. More...

+ Collaboration diagram for ILIAS\ResourceStorage\Services:

Public Member Functions

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

Protected Attributes

ILIAS ResourceStorage Manager Manager $manager
 
ILIAS ResourceStorage Consumer Consumers $consumers
 
ILIAS ResourceStorage Collection Collections $collections
 
ILIAS ResourceStorage Preloader RepositoryPreloader $preloader
 

Detailed Description

Class Services.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 47 of file Services.php.

Constructor & Destructor Documentation

◆ __construct()

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

Services constructor.

Parameters
StorageHandler$storage_handler_factory

Definition at line 58 of file Services.php.

66 {
67 $src_builder ??= new InlineSrcBuilder();
68 $stream_info_factory = new TokenFactory(
69 $storage_handler_factory->getBaseDir()
70 );
71 $file_name_policy_stack = new FileNamePolicyStack();
72 $file_name_policy_stack->addPolicy($file_name_policy);
73 $resource_builder = new ResourceBuilder(
74 $storage_handler_factory,
75 $repositories,
76 $lock_handler,
77 $stream_access,
78 $file_name_policy_stack
79 );
80 $collection_builder = new CollectionBuilder(
81 $repositories->getCollectionRepository(),
82 new UniqueIDCollectionIdentificationGenerator(),
83 $lock_handler
84 );
85 $this->preloader = $preloader ?? new StandardRepositoryPreloader($repositories);
86 $this->manager = new Manager(
87 $resource_builder,
88 $collection_builder,
89 $this->preloader
90 );
91 $this->consumers = new Consumers(
92 new ConsumerFactory(
93 $stream_access,
94 $file_name_policy_stack
95 ),
96 $resource_builder,
97 $collection_builder,
98 $src_builder
99 );
100 $this->collections = new Collections(
101 $resource_builder,
102 $collection_builder,
103 $this->preloader
104 );
105 }
ILIAS ResourceStorage Preloader RepositoryPreloader $preloader
Definition: Services.php:52

References ILIAS\ResourceStorage\Services\$preloader, ILIAS\ResourceStorage\StorageHandler\StorageHandlerFactory\getBaseDir(), and ILIAS\ResourceStorage\Repositories\getCollectionRepository().

+ Here is the call graph for this function:

Member Function Documentation

◆ collection()

ILIAS\ResourceStorage\Services::collection ( )

Definition at line 117 of file Services.php.

118 {
119 return $this->collections;
120 }
ILIAS ResourceStorage Collection Collections $collections
Definition: Services.php:51

References ILIAS\ResourceStorage\Services\$collections.

◆ consume()

ILIAS\ResourceStorage\Services::consume ( )

Definition at line 112 of file Services.php.

112 : Consumers
113 {
114 return $this->consumers;
115 }
ILIAS ResourceStorage Consumer Consumers $consumers
Definition: Services.php:50

References ILIAS\ResourceStorage\Services\$consumers.

Referenced by ilDAVFile\__construct().

+ Here is the caller graph for this function:

◆ manage()

ILIAS\ResourceStorage\Services::manage ( )

Definition at line 107 of file Services.php.

107 : Manager
108 {
109 return $this->manager;
110 }
ILIAS ResourceStorage Manager Manager $manager
Definition: Services.php:49

References ILIAS\ResourceStorage\Services\$manager.

Referenced by ilDAVFile\__construct().

+ Here is the caller graph for this function:

◆ preload()

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

Definition at line 122 of file Services.php.

122 : void
123 {
124 $this->preloader->preload($identification_strings);
125 }

Field Documentation

◆ $collections

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

Definition at line 51 of file Services.php.

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

◆ $consumers

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

Definition at line 50 of file Services.php.

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

◆ $manager

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

Definition at line 49 of file Services.php.

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

◆ $preloader

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

Definition at line 52 of file Services.php.

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


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