ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ConsumerFactory.php
Go to the documentation of this file.
1
<?php declare(strict_types=1);
2
3
namespace
ILIAS\MainMenu\Storage\Consumer
;
4
5
use
ILIAS\MainMenu\Storage\StorableResource
;
6
use
ILIAS\MainMenu\Storage\StorageHandler\StorageHandlerFactory
;
7
13
class
ConsumerFactory
14
{
15
19
private
$storage_handler_factory
;
20
21
27
public
function
__construct
(
StorageHandlerFactory
$storage_handler_factory
)
28
{
29
$this->storage_handler_factory =
$storage_handler_factory
;
30
}
31
32
38
public
function
download
(
StorableResource
$resource) :
DownloadConsumer
39
{
40
return
new
DownloadConsumer
($resource, $this->storage_handler_factory->getHandlerForResource($resource));
41
}
42
43
49
public
function
inline
(
StorableResource
$resource) :
InlineConsumer
50
{
51
return
new
InlineConsumer
($resource, $this->storage_handler_factory->getHandlerForResource($resource));
52
}
53
54
60
public
function
fileStream
(
StorableResource
$resource) :
FileStreamConsumer
61
{
62
return
new
FileStreamConsumer
($resource, $this->storage_handler_factory->getHandlerForResource($resource));
63
}
64
}
ILIAS\MainMenu\Storage\Consumer\FileStreamConsumer
Definition:
FileStreamConsumer.php:14
ILIAS\MainMenu\Storage\Consumer
Definition:
ConsumerFactory.php:3
StorableResource
ILIAS\MainMenu\Storage\Consumer\InlineConsumer
Definition:
InlineConsumer.php:14
ILIAS\MainMenu\Storage\Consumer\ConsumerFactory\fileStream
fileStream(StorableResource $resource)
Definition:
ConsumerFactory.php:60
ILIAS\MainMenu\Storage\Consumer\ConsumerFactory
Class ConsumerFactory.
Definition:
ConsumerFactory.php:13
ILIAS\MainMenu\Storage\Consumer\DownloadConsumer
Definition:
DownloadConsumer.php:14
StorageHandlerFactory
ILIAS\MainMenu\Storage\StorageHandler\StorageHandlerFactory
Class StorageHandlerFactory.
Definition:
StorageHandlerFactory.php:12
ILIAS\MainMenu\Storage\Consumer\ConsumerFactory\download
download(StorableResource $resource)
Definition:
ConsumerFactory.php:38
ILIAS\MainMenu\Storage\Consumer\ConsumerFactory\__construct
__construct(StorageHandlerFactory $storage_handler_factory)
ConsumerFactory constructor.
Definition:
ConsumerFactory.php:27
ILIAS\MainMenu\Storage\StorableResource
Interface StorageResource.
Definition:
StorableResource.php:15
ILIAS\MainMenu\Storage\Consumer\ConsumerFactory\$storage_handler_factory
$storage_handler_factory
Definition:
ConsumerFactory.php:19
Services
MainMenu
classes
Storage
Consumer
ConsumerFactory.php
Generated on Mon Apr 14 2025 20:01:17 for ILIAS by
1.8.13 (using
Doxyfile
)