ILIAS
trunk Revision v11.0_alpha-1861-g09f3d197f78
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
deliver.php
Go to the documentation of this file.
1
<?php
2
19
require_once __DIR__ .
'/../vendor/composer/vendor/autoload.php'
;
20
21
use
ILIAS\DI\Container
;
22
use
ILIAS\FileDelivery\Init
;
23
use
ILIAS\FileDelivery\Services
;
24
25
$c
=
new
Container
();
26
Init::init
(
$c
);
29
$file_delivery
=
$c
[
'file_delivery'
];
30
$http
=
$c
[
'http'
];
31
32
$requested_url
= (string)
$http
->request()->getUri();
33
34
// get everything after StreamDelivery::DELIVERY_ENDPOINT in the requested url
35
$access_token
= substr(
36
$requested_url
,
37
strpos(
$requested_url
, Services::DELIVERY_ENDPOINT) + strlen(Services::DELIVERY_ENDPOINT)
38
);
39
40
$file_delivery
->delivery()->deliverFromToken(
$access_token
);
$access_token
$access_token
Definition:
deliver.php:35
Services
$http
$http
Definition:
deliver.php:30
$c
$c
Definition:
deliver.php:25
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:35
Container
$requested_url
$requested_url
Definition:
deliver.php:32
ILIAS\FileDelivery\Init
$file_delivery
$file_delivery
Definition:
deliver.php:29
init
init()
Definition:
ilPRGCertificateHelper.php:29
components
ILIAS
FileDelivery
resources
deliver.php
Generated on Wed Apr 23 2025 23:02:41 for ILIAS by
1.8.13 (using
Doxyfile
)