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
UploadResult.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\FileUpload\DTO
;
20
21
use
ILIAS\FileUpload\Collection\ImmutableStringMap
;
22
use
ILIAS\FileUpload\ScalarTypeCheckAware
;
23
36
final
class
UploadResult
37
{
38
use
ScalarTypeCheckAware
;
39
private
string
$name
;
40
private
int
$size
;
41
private
string
$mimeType
;
42
private
string
$path
;
43
44
58
public
function
__construct
(
string
$name,
int
$size,
string
$mimeType,
private
ImmutableStringMap
$metaData,
private
ProcessingStatus
$status,
string
$path)
59
{
60
$this->stringTypeCheck($name,
"name"
);
61
$this->stringTypeCheck($mimeType,
"mimeType"
);
62
$this->stringTypeCheck($path,
"path"
);
63
$this->intTypeCheck($size,
"size"
);
64
65
$this->name =
$name
;
66
$this->size =
$size
;
67
$this->mimeType =
$mimeType
;
68
$this->path =
$path
;
69
}
70
71
75
public
function
getName
(): string
76
{
77
return
$this->name
;
78
}
79
80
84
public
function
getSize
():
int
85
{
86
return
$this->size
;
87
}
88
89
93
public
function
getMimeType
(): string
94
{
95
return
$this->mimeType
;
96
}
97
98
102
public
function
getMetaData
():
ImmutableStringMap
103
{
104
return
$this->metaData;
105
}
106
107
111
public
function
getStatus
():
ProcessingStatus
112
{
113
return
$this->status;
114
}
115
116
117
public
function
isOK
(): bool
118
{
119
return
$this->status->getCode() ===
ProcessingStatus::OK
;
120
}
121
122
126
public
function
getPath
(): string
127
{
128
return
$this->path
;
129
}
130
}
ILIAS\FileUpload\DTO\UploadResult\$size
int $size
Definition:
UploadResult.php:40
ILIAS\FileUpload\DTO\ProcessingStatus
Class ProcessingStatus.
Definition:
ProcessingStatus.php:34
ILIAS\FileUpload\DTO\UploadResult\getSize
getSize()
Definition:
UploadResult.php:84
ILIAS\FileUpload\DTO\UploadResult\$name
string $name
Definition:
UploadResult.php:39
ILIAS\Export\ImportHandler\Parser\NodeInfo\Collection\ImmutableStringMap
Class ImmutableStringMap.
Definition:
ImmutableStringMap.php:34
ILIAS\FileUpload\DTO\UploadResult\getMetaData
getMetaData()
Definition:
UploadResult.php:102
ImmutableStringMap
ILIAS\FileUpload\DTO\UploadResult\$path
string $path
Definition:
UploadResult.php:42
ScalarTypeCheckAware
ILIAS\FileUpload\DTO\UploadResult\getName
getName()
Definition:
UploadResult.php:75
ILIAS\FileUpload\DTO\UploadResult\$mimeType
string $mimeType
Definition:
UploadResult.php:41
ILIAS\FileUpload\DTO\UploadResult\isOK
isOK()
Definition:
UploadResult.php:117
ILIAS\FileUpload\DTO\UploadResult
Class UploadResult.
Definition:
UploadResult.php:36
ILIAS\FileUpload\DTO\UploadResult\getPath
getPath()
Definition:
UploadResult.php:126
ScalarTypeCheckAware
ILIAS\FileUpload\DTO\UploadResult\__construct
__construct(string $name, int $size, string $mimeType, private ImmutableStringMap $metaData, private ProcessingStatus $status, string $path)
UploadResult constructor.
Definition:
UploadResult.php:58
ILIAS\FileUpload\DTO\UploadResult\getStatus
getStatus()
Definition:
UploadResult.php:111
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\FileUpload\DTO\UploadResult\getMimeType
getMimeType()
Definition:
UploadResult.php:93
ILIAS\FileUpload\DTO
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Metadata.php:19
ILIAS\FileUpload\DTO\ProcessingStatus\OK
const OK
Definition:
ProcessingStatus.php:40
components
ILIAS
FileUpload
src
DTO
UploadResult.php
Generated on Thu Apr 3 2025 23:02:57 for ILIAS by
1.8.13 (using
Doxyfile
)