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
BasicFileInfoResult.php
Go to the documentation of this file.
1
<?php
2
3
namespace
ILIAS\FileUpload\Handler
;
4
5
use
ILIAS\UI\Component\Input\Field\UploadHandler
;
6
12
class
BasicFileInfoResult
implements
FileInfoResult
13
{
14
18
private
$mime_type
;
22
private
$file_identifier
;
26
private
$size
;
30
private
$name
;
34
private
$file_identification_key
;
35
36
46
public
function
__construct
(
string
$file_identification_key
,
string
$file_identifier
,
string
$name
,
int
$size
,
string
$mime_type
)
47
{
48
$this->file_identification_key =
$file_identification_key
;
49
$this->file_identifier =
$file_identifier
;
50
$this->name =
$name
;
51
$this->size =
$size
;
52
$this->mime_type =
$mime_type
;
53
}
54
55
56
public
function
getFileIdentifier
() : string
57
{
58
return
$this->file_identifier
;
59
}
60
61
62
public
function
getName
() : string
63
{
64
return
$this->name
;
65
}
66
67
68
public
function
getSize
() : int
69
{
70
return
$this->size
;
71
}
72
73
74
public
function
getMimeType
() : string
75
{
76
return
$this->mime_type
;
77
}
78
79
83
final
public
function
jsonSerialize
()
84
{
85
$str = $this->file_identification_key ??
UploadHandler::DEFAULT_FILE_ID_PARAMETER
;
86
87
return
[
88
'name'
=>
$this->name
,
89
'size'
=>
$this->size
,
90
'mime_type'
=>
$this->mime_type
,
91
$str =>
$this->file_identifier
,
92
];
93
}
94
}
ILIAS\FileUpload\Handler\BasicFileInfoResult\$name
$name
Definition:
BasicFileInfoResult.php:30
ILIAS\FileUpload\Handler\BasicFileInfoResult\$mime_type
$mime_type
Definition:
BasicFileInfoResult.php:18
ILIAS\FileUpload\Handler\BasicFileInfoResult\getMimeType
getMimeType()
Definition:
BasicFileInfoResult.php:74
ILIAS\UI\Component\Input\Field\UploadHandler\DEFAULT_FILE_ID_PARAMETER
const DEFAULT_FILE_ID_PARAMETER
Definition:
UploadHandler.php:14
ILIAS\FileUpload\Handler\BasicFileInfoResult\getFileIdentifier
getFileIdentifier()
Definition:
BasicFileInfoResult.php:56
UploadHandler
ILIAS\FileUpload\Handler\BasicFileInfoResult\__construct
__construct(string $file_identification_key, string $file_identifier, string $name, int $size, string $mime_type)
BasicFileInfoResult constructor.
Definition:
BasicFileInfoResult.php:46
ILIAS\FileUpload\Handler\BasicFileInfoResult\$file_identification_key
$file_identification_key
Definition:
BasicFileInfoResult.php:34
ILIAS\FileUpload\Handler\BasicFileInfoResult\getSize
getSize()
Definition:
BasicFileInfoResult.php:68
ILIAS\FileUpload\Handler\BasicFileInfoResult\$size
$size
Definition:
BasicFileInfoResult.php:26
ILIAS\FileUpload\Handler\BasicFileInfoResult\getName
getName()
Definition:
BasicFileInfoResult.php:62
ILIAS\FileUpload\Handler\FileInfoResult
Interface FileInfoResult.
Definition:
FileInfoResult.php:12
ILIAS\FileUpload\Handler
Definition:
AbstractCtrlAwareUploadHandler.php:3
ILIAS\FileUpload\Handler\BasicFileInfoResult\$file_identifier
$file_identifier
Definition:
BasicFileInfoResult.php:22
ILIAS\FileUpload\Handler\BasicFileInfoResult
Class BasicFileInfoResult.
Definition:
BasicFileInfoResult.php:12
ILIAS\FileUpload\Handler\BasicFileInfoResult\jsonSerialize
jsonSerialize()
Definition:
BasicFileInfoResult.php:83
src
FileUpload
Handler
BasicFileInfoResult.php
Generated on Sat Apr 5 2025 20:01:37 for ILIAS by
1.8.13 (using
Doxyfile
)