ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
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
FileStreamConsumer.php
Go to the documentation of this file.
1
<?php declare(strict_types=1);
2
3
namespace
ILIAS\ResourceStorage\Consumer
;
4
5
use
ILIAS\Filesystem\Stream\FileStream
;
6
use
ILIAS\ResourceStorage\Resource\StorableResource
;
7
use
ILIAS\ResourceStorage\StorageHandler\StorageHandler
;
8
13
class
FileStreamConsumer
implements
StreamConsumer
14
{
15
use
GetRevisionTrait
;
16
20
private
$storage_handler
;
24
private
$resource
;
28
protected
$revision_number
= null;
29
35
public
function
__construct
(
StorableResource
$resource
,
StorageHandler
$storage_handler
)
36
{
37
$this->resource =
$resource
;
38
$this->storage_handler =
$storage_handler
;
39
}
40
41
public
function
getStream
() :
FileStream
42
{
43
$revision = $this->getRevision();
44
45
return
$this->storage_handler->getStream($revision);
46
}
47
51
public
function
setRevisionNumber
(
int
$revision_number
) :
FileStreamConsumer
52
{
53
$this->revision_number =
$revision_number
;
54
return
$this;
55
}
56
57
}
ILIAS\ResourceStorage\StorageHandler\StorageHandler
Class FileResourceHandler.
Definition:
StorageHandler.php:19
ILIAS\ResourceStorage\Resource\StorableResource
Interface StorageResource.
Definition:
StorableResource.php:14
ILIAS\ResourceStorage\Consumer\FileStreamConsumer\__construct
__construct(StorableResource $resource, StorageHandler $storage_handler)
DownloadConsumer constructor.
Definition:
FileStreamConsumer.php:35
ILIAS\ResourceStorage\Consumer\StreamConsumer
Interface StreamConsumer.
Definition:
StreamConsumer.php:11
StorableResource
GetRevisionTrait
ILIAS\ResourceStorage\Consumer\FileStreamConsumer\$resource
$resource
Definition:
FileStreamConsumer.php:24
ILIAS\ResourceStorage\Consumer
Definition:
AbsolutePathConsumer.php:3
ILIAS\ResourceStorage\Consumer\FileStreamConsumer
Definition:
FileStreamConsumer.php:13
ILIAS\ResourceStorage\Consumer\FileStreamConsumer\setRevisionNumber
setRevisionNumber(int $revision_number)
Definition:
FileStreamConsumer.php:51
ILIAS\ResourceStorage\Consumer\FileStreamConsumer\getStream
getStream()
Definition:
FileStreamConsumer.php:41
ILIAS\ResourceStorage\Consumer\FileStreamConsumer\$revision_number
$revision_number
Definition:
FileStreamConsumer.php:28
FileStream
StorageHandler
ILIAS\Filesystem\Stream\FileStream
Interface FileStream The base interface for all filesystem streams.
Definition:
FileStream.php:17
ILIAS\ResourceStorage\Consumer\FileStreamConsumer\$storage_handler
$storage_handler
Definition:
FileStreamConsumer.php:20
src
ResourceStorage
Consumer
FileStreamConsumer.php
Generated on Thu Apr 3 2025 21:01:36 for ILIAS by
1.8.13 (using
Doxyfile
)