ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Metadata.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
ILIAS\FileUpload\DTO
;
4
5
use
ILIAS\FileUpload\Collection\EntryLockingStringMap
;
6
use
ILIAS\FileUpload\Collection\StringMap
;
7
use
ILIAS\FileUpload\ScalarTypeCheckAware
;
8
21
final
class
Metadata
22
{
23
use
ScalarTypeCheckAware
;
27
private
$filename
;
31
private
$uploadSize
;
35
private
$mimeType
;
39
private
$additionalMetaData
;
40
41
53
public
function
__construct
(
$filename
,
$size
,
$mimeType
)
54
{
55
$this->stringTypeCheck(
$filename
,
"filename"
);
56
$this->intTypeCheck(
$size
,
"size"
);
57
$this->stringTypeCheck(
$mimeType
,
"mimeType"
);
58
59
$this->filename =
$filename
;
60
$this->uploadSize =
$size
;
61
$this->mimeType =
$mimeType
;
62
$this->
additionalMetaData
=
new
EntryLockingStringMap
();
63
}
64
65
73
public
function
getFilename
()
74
{
75
return
$this->filename
;
76
}
77
78
87
public
function
setFilename
(
$filename
)
88
{
89
$this->stringTypeCheck(
$filename
,
"filename"
);
90
91
$this->filename =
$filename
;
92
93
return
$this;
94
}
95
96
105
public
function
getUploadSize
()
106
{
107
return
$this->uploadSize
;
108
}
109
110
118
public
function
getMimeType
()
119
{
120
return
$this->mimeType
;
121
}
122
123
132
public
function
setMimeType
(
$mimeType
)
133
{
134
$this->stringTypeCheck(
$mimeType
,
"mimeType"
);
135
136
$this->mimeType =
$mimeType
;
137
138
return
$this;
139
}
140
141
149
public
function
additionalMetaData
()
150
{
151
return
$this->additionalMetaData
;
152
}
153
}
$size
$size
Definition:
RandomTest.php:84
ILIAS\FileUpload\DTO\Metadata\$filename
$filename
Definition:
Metadata.php:27
ILIAS\FileUpload\DTO\Metadata\__construct
__construct($filename, $size, $mimeType)
Metadata constructor.
Definition:
Metadata.php:53
ILIAS\FileUpload\Collection\EntryLockingStringMap
Class EntryLockingStringMap.
Definition:
EntryLockingStringMap.php:21
ILIAS\FileUpload\DTO\Metadata\getMimeType
getMimeType()
Client supplied mime type of the uploaded.
Definition:
Metadata.php:118
ILIAS\FileUpload\DTO\Metadata\additionalMetaData
additionalMetaData()
Provides a string map implementation which allows the processors to store additional values...
Definition:
Metadata.php:149
ILIAS\FileUpload\DTO\Metadata\getFilename
getFilename()
The filename supplied by the browser.
Definition:
Metadata.php:73
ScalarTypeCheckAware
ILIAS\FileUpload\DTO\Metadata\getUploadSize
getUploadSize()
This is always the original file size which was determined by the http service.
Definition:
Metadata.php:105
ILIAS\FileUpload\DTO\Metadata
Class Metadata.
Definition:
Metadata.php:21
StringMap
ILIAS\FileUpload\DTO\Metadata\$mimeType
$mimeType
Definition:
Metadata.php:35
ScalarTypeCheckAware
ILIAS\FileUpload\DTO\Metadata\$uploadSize
$uploadSize
Definition:
Metadata.php:31
EntryLockingStringMap
php
ILIAS\FileUpload\DTO\Metadata\$additionalMetaData
$additionalMetaData
Definition:
Metadata.php:39
ILIAS\FileUpload\DTO\Metadata\setFilename
setFilename($filename)
Overwrite the current filename.
Definition:
Metadata.php:87
ILIAS\FileUpload\DTO\Metadata\setMimeType
setMimeType($mimeType)
Overwrite the current mime type of the file.
Definition:
Metadata.php:132
ILIAS\FileUpload\DTO
Definition:
Metadata.php:3
src
FileUpload
DTO
Metadata.php
Generated on Thu Jan 16 2025 19:01:55 for ILIAS by
1.8.13 (using
Doxyfile
)