ILIAS
trunk Revision v11.0_alpha-1702-gfd3ecb7f852
◀ 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
ShortFilePayload.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\FileDelivery\Token\Signer\Payload
;
22
23
use
ILIAS\FileDelivery\Setup\BaseDirObjective
;
24
28
class
ShortFilePayload
extends
StructuredPayload
29
{
30
public
$mime_type
;
31
public
$disposition
;
32
public
$user_id
;
33
public
function
__construct
(
34
private
string
$uri,
35
private
string
$file_name
36
) {
37
// try to shorten uri
38
$base =
BaseDirObjective::get
();
39
if
($base !==
null
) {
40
$uri = str_replace($base,
''
, $uri);
41
}
42
43
parent::__construct
([
44
'p'
=> $uri,
45
'n'
=> $file_name
46
]);
47
}
48
49
public
static
function
fromArray
(array $raw_payload): self
50
{
51
return
new
self
(
52
$raw_payload[
'p'
],
53
$raw_payload[
'n'
]
54
);
55
}
56
57
public
function
getUri
(): string
58
{
59
$uri = $this->uri;
60
// try to expand uri
61
$base =
BaseDirObjective::get
();
62
if
($base !==
null
) {
63
return
$base . $uri;
64
}
65
66
return
$uri;
67
}
68
69
public
function
getMimeType
(): string
70
{
71
return
$this->mime_type
;
72
}
73
74
public
function
getFileName
(): string
75
{
76
return
$this->file_name;
77
}
78
79
public
function
getDisposition
(): string
80
{
81
return
$this->disposition
;
82
}
83
84
public
function
getUserId
():
int
85
{
86
return
$this->user_id
;
87
}
88
}
ILIAS\FileDelivery\Token\Signer\Payload\ShortFilePayload\getMimeType
getMimeType()
Definition:
ShortFilePayload.php:69
ILIAS\FileDelivery\Token\Signer\Payload\StructuredPayload
Definition:
StructuredPayload.php:26
ILIAS\FileDelivery\Token\Signer\Payload\ShortFilePayload
Definition:
ShortFilePayload.php:28
ILIAS\FileDelivery\Token\Signer\Payload\ShortFilePayload\getFileName
getFileName()
Definition:
ShortFilePayload.php:74
ILIAS\FileDelivery\Token\Signer\Payload\ShortFilePayload\$mime_type
$mime_type
Definition:
ShortFilePayload.php:30
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:142
ILIAS\FileDelivery\Token\Signer\Payload\ShortFilePayload\$user_id
$user_id
Definition:
ShortFilePayload.php:32
ILIAS\FileDelivery\Token\Signer\Payload
Definition:
BadPayload.php:21
ILIAS\FileDelivery\Token\Signer\Payload\ShortFilePayload\getDisposition
getDisposition()
Definition:
ShortFilePayload.php:79
ILIAS\FileDelivery\Token\Signer\Payload\ShortFilePayload\fromArray
static fromArray(array $raw_payload)
Definition:
ShortFilePayload.php:49
ILIAS\FileDelivery\Token\Signer\Payload\ShortFilePayload\getUri
getUri()
Definition:
ShortFilePayload.php:57
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ILIAS\FileDelivery\Setup\BaseDirObjective\get
static get()
Definition:
BaseDirObjective.php:74
ILIAS\FileDelivery\Token\Signer\Payload\ShortFilePayload\$disposition
$disposition
Definition:
ShortFilePayload.php:31
ILIAS\FileDelivery\Token\Signer\Payload\ShortFilePayload\__construct
__construct(private string $uri, private string $file_name)
Definition:
ShortFilePayload.php:33
ILIAS\FileDelivery\Token\Signer\Payload\ShortFilePayload\getUserId
getUserId()
Definition:
ShortFilePayload.php:84
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
BaseDirObjective
components
ILIAS
FileDelivery
src
Token
Signer
Payload
ShortFilePayload.php
Generated on Thu Apr 3 2025 23:02:56 for ILIAS by
1.8.13 (using
Doxyfile
)