]>
Commit | Line | Data |
---|---|---|
2d0bf4f3 GJ |
1 | <!DOCTYPE html> |
2 | <html lang="en"> | |
3 | <head> | |
4 | <meta charset="utf-8"> | |
5 | <title>Documentation</title> | |
6 | ||
7 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
8 | <base href="../"> | |
9 | <link rel="icon" href="images/favicon.ico"/> | |
10 | <link rel="stylesheet" href="css/normalize.css"> | |
11 | <link rel="stylesheet" href="css/base.css"> | |
12 | <link rel="preconnect" href="https://fonts.gstatic.com"> | |
13 | <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet"> | |
14 | <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet"> | |
15 | <link rel="stylesheet" href="css/template.css"> | |
16 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" /> | |
17 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css"> | |
18 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css"> | |
19 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css"> | |
20 | <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script> | |
21 | <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script> | |
22 | <script src="js/search.js"></script> | |
23 | <script defer src="js/searchIndex.js"></script> | |
24 | </head> | |
25 | <body id="top"> | |
26 | <header class="phpdocumentor-header phpdocumentor-section"> | |
27 | <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1> | |
28 | <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" /> | |
29 | <label class="phpdocumentor-header__menu-icon" for="menu-button"> | |
30 | <i class="fas fa-bars"></i> | |
31 | </label> | |
32 | <section data-search-form class="phpdocumentor-search"> | |
33 | <label> | |
34 | <span class="visually-hidden">Search for</span> | |
35 | <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
36 | <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/> | |
37 | <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/> | |
38 | </svg> | |
39 | <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled /> | |
40 | </label> | |
41 | </section> | |
42 | ||
43 | <nav class="phpdocumentor-topnav"> | |
44 | <ul class="phpdocumentor-topnav__menu"> | |
45 | </ul> | |
46 | </nav> | |
47 | </header> | |
48 | ||
49 | <main class="phpdocumentor"> | |
50 | <div class="phpdocumentor-section"> | |
51 | <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" /> | |
52 | <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button"> | |
53 | Menu | |
54 | </label> | |
55 | <aside class="phpdocumentor-column -four phpdocumentor-sidebar"> | |
56 | <section class="phpdocumentor-sidebar__category"> | |
57 | <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2> | |
58 | <h4 class="phpdocumentor-sidebar__root-namespace"> | |
59 | <a href="namespaces/core.html" class="">Core</a> | |
60 | </h4> | |
61 | ||
62 | </section> | |
63 | <section class="phpdocumentor-sidebar__category"> | |
64 | <h2 class="phpdocumentor-sidebar__category-header">Packages</h2> | |
65 | <h4 class="phpdocumentor-sidebar__root-namespace"> | |
66 | <a href="packages/Application.html" class="">Application</a> | |
67 | </h4> | |
68 | ||
69 | </section> | |
70 | ||
71 | <section class="phpdocumentor-sidebar__category"> | |
72 | <h2 class="phpdocumentor-sidebar__category-header">Reports</h2> | |
73 | <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3> | |
74 | <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3> | |
75 | <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3> | |
76 | </section> | |
77 | ||
78 | <section class="phpdocumentor-sidebar__category"> | |
79 | <h2 class="phpdocumentor-sidebar__category-header">Indices</h2> | |
80 | <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3> | |
81 | </section> | |
82 | </aside> | |
83 | ||
84 | <div class="phpdocumentor-column -eight phpdocumentor-content"> | |
85 | <ul class="phpdocumentor-breadcrumbs"> | |
86 | </ul> | |
87 | ||
88 | <article class="phpdocumentor-element -class"> | |
89 | <h2 class="phpdocumentor-content__title"> | |
90 | Upload | |
91 | ||
92 | ||
93 | <div class="phpdocumentor-element__package"> | |
94 | in package | |
95 | <ul class="phpdocumentor-breadcrumbs"> | |
96 | <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li> | |
97 | </ul> | |
98 | </div> | |
99 | ||
100 | ||
101 | </h2> | |
102 | ||
103 | <aside class="phpdocumentor-element-found-in"> | |
104 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
105 | : | |
106 | <span class="phpdocumentor-element-found-in__line">27</span> | |
107 | ||
108 | </aside> | |
109 | ||
110 | ||
111 | <section class="phpdocumentor-description"></section> | |
112 | ||
113 | ||
114 | ||
115 | ||
116 | ||
117 | ||
118 | ||
119 | ||
120 | <h3 id="toc"> | |
121 | Table of Contents | |
122 | <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a> | |
123 | </h3> | |
124 | ||
125 | <dl class="phpdocumentor-table-of-contents"> | |
126 | <dt class="phpdocumentor-table-of-contents__entry -property -public"> | |
127 | <a href="classes/Upload.html#property_FILE_EXTENSION">$FILE_EXTENSION</a> | |
128 | <span> | |
129 | : string </span> | |
130 | </dt> | |
131 | <dd></dd> | |
132 | ||
133 | <dt class="phpdocumentor-table-of-contents__entry -property -public"> | |
134 | <a href="classes/Upload.html#property_FILE_MIME">$FILE_MIME</a> | |
135 | <span> | |
136 | : string </span> | |
137 | </dt> | |
138 | <dd></dd> | |
139 | ||
140 | <dt class="phpdocumentor-table-of-contents__entry -property -public"> | |
141 | <a href="classes/Upload.html#property_FILE_NAME">$FILE_NAME</a> | |
142 | <span> | |
143 | : string </span> | |
144 | </dt> | |
145 | <dd></dd> | |
146 | ||
147 | <dt class="phpdocumentor-table-of-contents__entry -property -public"> | |
148 | <a href="classes/Upload.html#property_FILE_SIZE">$FILE_SIZE</a> | |
149 | <span> | |
150 | : string </span> | |
151 | </dt> | |
152 | <dd></dd> | |
153 | ||
154 | <dt class="phpdocumentor-table-of-contents__entry -property -public"> | |
155 | <a href="classes/Upload.html#property_IP">$IP</a> | |
156 | <span> | |
157 | : string </span> | |
158 | </dt> | |
159 | <dd></dd> | |
160 | ||
161 | <dt class="phpdocumentor-table-of-contents__entry -property -public"> | |
162 | <a href="classes/Upload.html#property_NEW_NAME">$NEW_NAME</a> | |
163 | <span> | |
164 | : string </span> | |
165 | </dt> | |
166 | <dd></dd> | |
167 | ||
168 | <dt class="phpdocumentor-table-of-contents__entry -property -public"> | |
169 | <a href="classes/Upload.html#property_NEW_NAME_FULL">$NEW_NAME_FULL</a> | |
170 | <span> | |
171 | : string </span> | |
172 | </dt> | |
173 | <dd></dd> | |
174 | ||
175 | <dt class="phpdocumentor-table-of-contents__entry -property -public"> | |
176 | <a href="classes/Upload.html#property_SHA1">$SHA1</a> | |
177 | <span> | |
178 | : string </span> | |
179 | </dt> | |
180 | <dd></dd> | |
181 | ||
182 | <dt class="phpdocumentor-table-of-contents__entry -property -public"> | |
183 | <a href="classes/Upload.html#property_TEMP_FILE">$TEMP_FILE</a> | |
184 | <span> | |
185 | : string </span> | |
186 | </dt> | |
187 | <dd></dd> | |
188 | ||
189 | <dt class="phpdocumentor-table-of-contents__entry -method -public"> | |
190 | <a href="classes/Upload.html#method_checkExtensionBlacklist">checkExtensionBlacklist()</a> | |
191 | <span> | |
192 | : mixed </span> | |
193 | </dt> | |
194 | <dd>Check if file extension is blacklisted | |
195 | if it does throw an exception.</dd> | |
196 | ||
197 | <dt class="phpdocumentor-table-of-contents__entry -method -public"> | |
198 | <a href="classes/Upload.html#method_checkMimeBlacklist">checkMimeBlacklist()</a> | |
199 | <span> | |
200 | : mixed </span> | |
201 | </dt> | |
202 | <dd></dd> | |
203 | ||
204 | <dt class="phpdocumentor-table-of-contents__entry -method -public"> | |
205 | <a href="classes/Upload.html#method_diverseArray">diverseArray()</a> | |
206 | <span> | |
207 | : array<string|int, mixed> </span> | |
208 | </dt> | |
209 | <dd></dd> | |
210 | ||
211 | <dt class="phpdocumentor-table-of-contents__entry -method -public"> | |
212 | <a href="classes/Upload.html#method_fileInfo">fileInfo()</a> | |
213 | <span> | |
214 | : mixed </span> | |
215 | </dt> | |
216 | <dd></dd> | |
217 | ||
218 | <dt class="phpdocumentor-table-of-contents__entry -method -public"> | |
219 | <a href="classes/Upload.html#method_generateName">generateName()</a> | |
220 | <span> | |
221 | : string </span> | |
222 | </dt> | |
223 | <dd></dd> | |
224 | ||
225 | <dt class="phpdocumentor-table-of-contents__entry -method -public"> | |
226 | <a href="classes/Upload.html#method_reFiles">reFiles()</a> | |
227 | <span> | |
228 | : array<string|int, mixed> </span> | |
229 | </dt> | |
230 | <dd></dd> | |
231 | ||
232 | <dt class="phpdocumentor-table-of-contents__entry -method -public"> | |
233 | <a href="classes/Upload.html#method_uploadFile">uploadFile()</a> | |
234 | <span> | |
235 | : array<string|int, mixed> </span> | |
236 | </dt> | |
237 | <dd></dd> | |
238 | ||
239 | </dl> | |
240 | ||
241 | ||
242 | ||
243 | ||
244 | ||
245 | ||
246 | <section class="phpdocumentor-properties"> | |
247 | <h3 class="phpdocumentor-elements__header" id="properties"> | |
248 | Properties | |
249 | <a href="classes/Upload.html#properties" class="headerlink"><i class="fas fa-link"></i></a> | |
250 | </h3> | |
251 | <article | |
252 | class=" | |
253 | phpdocumentor-element | |
254 | -property | |
255 | -public | |
256 | -static " | |
257 | > | |
258 | <h4 class="phpdocumentor-element__name" id="property_FILE_EXTENSION"> | |
259 | $FILE_EXTENSION | |
260 | <a href="classes/Upload.html#property_FILE_EXTENSION" class="headerlink"><i class="fas fa-link"></i></a> | |
261 | <span class="phpdocumentor-element__modifiers"> | |
262 | </span> | |
263 | </h4> | |
264 | <aside class="phpdocumentor-element-found-in"> | |
265 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
266 | : | |
267 | <span class="phpdocumentor-element-found-in__line">31</span> | |
268 | ||
269 | </aside> | |
270 | ||
271 | ||
272 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
273 | <span class="phpdocumentor-signature__visibility">public</span> | |
274 | <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">string</span> | |
275 | <span class="phpdocumentor-signature__name">$FILE_EXTENSION</span> | |
276 | </code> | |
277 | ||
278 | <section class="phpdocumentor-description"></section> | |
279 | ||
280 | <section class="phpdocumentor-description"></section> | |
281 | ||
282 | ||
283 | ||
284 | </article> | |
285 | <article | |
286 | class=" | |
287 | phpdocumentor-element | |
288 | -property | |
289 | -public | |
290 | -static " | |
291 | > | |
292 | <h4 class="phpdocumentor-element__name" id="property_FILE_MIME"> | |
293 | $FILE_MIME | |
294 | <a href="classes/Upload.html#property_FILE_MIME" class="headerlink"><i class="fas fa-link"></i></a> | |
295 | <span class="phpdocumentor-element__modifiers"> | |
296 | </span> | |
297 | </h4> | |
298 | <aside class="phpdocumentor-element-found-in"> | |
299 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
300 | : | |
301 | <span class="phpdocumentor-element-found-in__line">32</span> | |
302 | ||
303 | </aside> | |
304 | ||
305 | ||
306 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
307 | <span class="phpdocumentor-signature__visibility">public</span> | |
308 | <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">string</span> | |
309 | <span class="phpdocumentor-signature__name">$FILE_MIME</span> | |
310 | </code> | |
311 | ||
312 | <section class="phpdocumentor-description"></section> | |
313 | ||
314 | <section class="phpdocumentor-description"></section> | |
315 | ||
316 | ||
317 | ||
318 | </article> | |
319 | <article | |
320 | class=" | |
321 | phpdocumentor-element | |
322 | -property | |
323 | -public | |
324 | -static " | |
325 | > | |
326 | <h4 class="phpdocumentor-element__name" id="property_FILE_NAME"> | |
327 | $FILE_NAME | |
328 | <a href="classes/Upload.html#property_FILE_NAME" class="headerlink"><i class="fas fa-link"></i></a> | |
329 | <span class="phpdocumentor-element__modifiers"> | |
330 | </span> | |
331 | </h4> | |
332 | <aside class="phpdocumentor-element-found-in"> | |
333 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
334 | : | |
335 | <span class="phpdocumentor-element-found-in__line">30</span> | |
336 | ||
337 | </aside> | |
338 | ||
339 | ||
340 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
341 | <span class="phpdocumentor-signature__visibility">public</span> | |
342 | <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">string</span> | |
343 | <span class="phpdocumentor-signature__name">$FILE_NAME</span> | |
344 | </code> | |
345 | ||
346 | <section class="phpdocumentor-description"></section> | |
347 | ||
348 | <section class="phpdocumentor-description"></section> | |
349 | ||
350 | ||
351 | ||
352 | </article> | |
353 | <article | |
354 | class=" | |
355 | phpdocumentor-element | |
356 | -property | |
357 | -public | |
358 | -static " | |
359 | > | |
360 | <h4 class="phpdocumentor-element__name" id="property_FILE_SIZE"> | |
361 | $FILE_SIZE | |
362 | <a href="classes/Upload.html#property_FILE_SIZE" class="headerlink"><i class="fas fa-link"></i></a> | |
363 | <span class="phpdocumentor-element__modifiers"> | |
364 | </span> | |
365 | </h4> | |
366 | <aside class="phpdocumentor-element-found-in"> | |
367 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
368 | : | |
369 | <span class="phpdocumentor-element-found-in__line">38</span> | |
370 | ||
371 | </aside> | |
372 | ||
373 | ||
374 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
375 | <span class="phpdocumentor-signature__visibility">public</span> | |
376 | <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">string</span> | |
377 | <span class="phpdocumentor-signature__name">$FILE_SIZE</span> | |
378 | </code> | |
379 | ||
380 | <section class="phpdocumentor-description"></section> | |
381 | ||
382 | <section class="phpdocumentor-description"></section> | |
383 | ||
384 | ||
385 | ||
386 | </article> | |
387 | <article | |
388 | class=" | |
389 | phpdocumentor-element | |
390 | -property | |
391 | -public | |
392 | -static " | |
393 | > | |
394 | <h4 class="phpdocumentor-element__name" id="property_IP"> | |
395 | $IP | |
396 | <a href="classes/Upload.html#property_IP" class="headerlink"><i class="fas fa-link"></i></a> | |
397 | <span class="phpdocumentor-element__modifiers"> | |
398 | </span> | |
399 | </h4> | |
400 | <aside class="phpdocumentor-element-found-in"> | |
401 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
402 | : | |
403 | <span class="phpdocumentor-element-found-in__line">36</span> | |
404 | ||
405 | </aside> | |
406 | ||
407 | ||
408 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
409 | <span class="phpdocumentor-signature__visibility">public</span> | |
410 | <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">string</span> | |
411 | <span class="phpdocumentor-signature__name">$IP</span> | |
412 | </code> | |
413 | ||
414 | <section class="phpdocumentor-description"></section> | |
415 | ||
416 | <section class="phpdocumentor-description"></section> | |
417 | ||
418 | ||
419 | ||
420 | </article> | |
421 | <article | |
422 | class=" | |
423 | phpdocumentor-element | |
424 | -property | |
425 | -public | |
426 | -static " | |
427 | > | |
428 | <h4 class="phpdocumentor-element__name" id="property_NEW_NAME"> | |
429 | $NEW_NAME | |
430 | <a href="classes/Upload.html#property_NEW_NAME" class="headerlink"><i class="fas fa-link"></i></a> | |
431 | <span class="phpdocumentor-element__modifiers"> | |
432 | </span> | |
433 | </h4> | |
434 | <aside class="phpdocumentor-element-found-in"> | |
435 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
436 | : | |
437 | <span class="phpdocumentor-element-found-in__line">34</span> | |
438 | ||
439 | </aside> | |
440 | ||
441 | ||
442 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
443 | <span class="phpdocumentor-signature__visibility">public</span> | |
444 | <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">string</span> | |
445 | <span class="phpdocumentor-signature__name">$NEW_NAME</span> | |
446 | </code> | |
447 | ||
448 | <section class="phpdocumentor-description"></section> | |
449 | ||
450 | <section class="phpdocumentor-description"></section> | |
451 | ||
452 | ||
453 | ||
454 | </article> | |
455 | <article | |
456 | class=" | |
457 | phpdocumentor-element | |
458 | -property | |
459 | -public | |
460 | -static " | |
461 | > | |
462 | <h4 class="phpdocumentor-element__name" id="property_NEW_NAME_FULL"> | |
463 | $NEW_NAME_FULL | |
464 | <a href="classes/Upload.html#property_NEW_NAME_FULL" class="headerlink"><i class="fas fa-link"></i></a> | |
465 | <span class="phpdocumentor-element__modifiers"> | |
466 | </span> | |
467 | </h4> | |
468 | <aside class="phpdocumentor-element-found-in"> | |
469 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
470 | : | |
471 | <span class="phpdocumentor-element-found-in__line">35</span> | |
472 | ||
473 | </aside> | |
474 | ||
475 | ||
476 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
477 | <span class="phpdocumentor-signature__visibility">public</span> | |
478 | <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">string</span> | |
479 | <span class="phpdocumentor-signature__name">$NEW_NAME_FULL</span> | |
480 | </code> | |
481 | ||
482 | <section class="phpdocumentor-description"></section> | |
483 | ||
484 | <section class="phpdocumentor-description"></section> | |
485 | ||
486 | ||
487 | ||
488 | </article> | |
489 | <article | |
490 | class=" | |
491 | phpdocumentor-element | |
492 | -property | |
493 | -public | |
494 | -static " | |
495 | > | |
496 | <h4 class="phpdocumentor-element__name" id="property_SHA1"> | |
497 | $SHA1 | |
498 | <a href="classes/Upload.html#property_SHA1" class="headerlink"><i class="fas fa-link"></i></a> | |
499 | <span class="phpdocumentor-element__modifiers"> | |
500 | </span> | |
501 | </h4> | |
502 | <aside class="phpdocumentor-element-found-in"> | |
503 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
504 | : | |
505 | <span class="phpdocumentor-element-found-in__line">33</span> | |
506 | ||
507 | </aside> | |
508 | ||
509 | ||
510 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
511 | <span class="phpdocumentor-signature__visibility">public</span> | |
512 | <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">string</span> | |
513 | <span class="phpdocumentor-signature__name">$SHA1</span> | |
514 | </code> | |
515 | ||
516 | <section class="phpdocumentor-description"></section> | |
517 | ||
518 | <section class="phpdocumentor-description"></section> | |
519 | ||
520 | ||
521 | ||
522 | </article> | |
523 | <article | |
524 | class=" | |
525 | phpdocumentor-element | |
526 | -property | |
527 | -public | |
528 | -static " | |
529 | > | |
530 | <h4 class="phpdocumentor-element__name" id="property_TEMP_FILE"> | |
531 | $TEMP_FILE | |
532 | <a href="classes/Upload.html#property_TEMP_FILE" class="headerlink"><i class="fas fa-link"></i></a> | |
533 | <span class="phpdocumentor-element__modifiers"> | |
534 | </span> | |
535 | </h4> | |
536 | <aside class="phpdocumentor-element-found-in"> | |
537 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
538 | : | |
539 | <span class="phpdocumentor-element-found-in__line">39</span> | |
540 | ||
541 | </aside> | |
542 | ||
543 | ||
544 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
545 | <span class="phpdocumentor-signature__visibility">public</span> | |
546 | <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__type">string</span> | |
547 | <span class="phpdocumentor-signature__name">$TEMP_FILE</span> | |
548 | </code> | |
549 | ||
550 | <section class="phpdocumentor-description"></section> | |
551 | ||
552 | <section class="phpdocumentor-description"></section> | |
553 | ||
554 | ||
555 | ||
556 | </article> | |
557 | </section> | |
558 | ||
559 | <section class="phpdocumentor-methods"> | |
560 | <h3 class="phpdocumentor-elements__header" id="methods"> | |
561 | Methods | |
562 | <a href="classes/Upload.html#methods" class="headerlink"><i class="fas fa-link"></i></a> | |
563 | </h3> | |
564 | <article | |
565 | class="phpdocumentor-element | |
566 | -method | |
567 | -public | |
568 | " | |
569 | > | |
570 | <h4 class="phpdocumentor-element__name" id="method_checkExtensionBlacklist"> | |
571 | checkExtensionBlacklist() | |
572 | <a href="classes/Upload.html#method_checkExtensionBlacklist" class="headerlink"><i class="fas fa-link"></i></a> | |
573 | </h4> | |
574 | <aside class="phpdocumentor-element-found-in"> | |
575 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
576 | : | |
577 | <span class="phpdocumentor-element-found-in__line">160</span> | |
578 | ||
579 | </aside> | |
580 | ||
581 | <p class="phpdocumentor-summary">Check if file extension is blacklisted | |
582 | if it does throw an exception.</p> | |
583 | ||
584 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
585 | <span class="phpdocumentor-signature__visibility">public</span> | |
586 | <span class="phpdocumentor-signature__name">checkExtensionBlacklist</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code> | |
587 | ||
588 | ||
589 | ||
590 | ||
591 | <h5 class="phpdocumentor-tag-list__heading" id="tags"> | |
592 | Tags | |
593 | <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a> | |
594 | </h5> | |
595 | <dl class="phpdocumentor-tag-list"> | |
596 | <dt class="phpdocumentor-tag-list__entry"> | |
597 | <span class="phpdocumentor-tag__name">throws</span> | |
598 | </dt> | |
599 | <dd class="phpdocumentor-tag-list__definition"> | |
600 | <span class="phpdocumentor-tag-link"><abbr title="\Exception">Exception</abbr></span> | |
601 | ||
602 | ||
603 | </dd> | |
604 | </dl> | |
605 | ||
606 | <h5 class="phpdocumentor-return-value__heading">Return values</h5> | |
607 | <span class="phpdocumentor-signature__response_type">mixed</span> | |
608 | — | |
609 | ||
610 | ||
611 | </article> | |
612 | <article | |
613 | class="phpdocumentor-element | |
614 | -method | |
615 | -public | |
616 | " | |
617 | > | |
618 | <h4 class="phpdocumentor-element__name" id="method_checkMimeBlacklist"> | |
619 | checkMimeBlacklist() | |
620 | <a href="classes/Upload.html#method_checkMimeBlacklist" class="headerlink"><i class="fas fa-link"></i></a> | |
621 | </h4> | |
622 | <aside class="phpdocumentor-element-found-in"> | |
623 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
624 | : | |
625 | <span class="phpdocumentor-element-found-in__line">147</span> | |
626 | ||
627 | </aside> | |
628 | ||
629 | ||
630 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
631 | <span class="phpdocumentor-signature__visibility">public</span> | |
632 | <span class="phpdocumentor-signature__name">checkMimeBlacklist</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code> | |
633 | ||
634 | ||
635 | ||
636 | ||
637 | <h5 class="phpdocumentor-tag-list__heading" id="tags"> | |
638 | Tags | |
639 | <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a> | |
640 | </h5> | |
641 | <dl class="phpdocumentor-tag-list"> | |
642 | <dt class="phpdocumentor-tag-list__entry"> | |
643 | <span class="phpdocumentor-tag__name">throws</span> | |
644 | </dt> | |
645 | <dd class="phpdocumentor-tag-list__definition"> | |
646 | <span class="phpdocumentor-tag-link"><abbr title="\Exception">Exception</abbr></span> | |
647 | ||
648 | ||
649 | </dd> | |
650 | </dl> | |
651 | ||
652 | <h5 class="phpdocumentor-return-value__heading">Return values</h5> | |
653 | <span class="phpdocumentor-signature__response_type">mixed</span> | |
654 | — | |
655 | ||
656 | ||
657 | </article> | |
658 | <article | |
659 | class="phpdocumentor-element | |
660 | -method | |
661 | -public | |
662 | " | |
663 | > | |
664 | <h4 class="phpdocumentor-element__name" id="method_diverseArray"> | |
665 | diverseArray() | |
666 | <a href="classes/Upload.html#method_diverseArray" class="headerlink"><i class="fas fa-link"></i></a> | |
667 | </h4> | |
668 | <aside class="phpdocumentor-element-found-in"> | |
669 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
670 | : | |
671 | <span class="phpdocumentor-element-found-in__line">57</span> | |
672 | ||
673 | </aside> | |
674 | ||
675 | ||
676 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
677 | <span class="phpdocumentor-signature__visibility">public</span> | |
678 | <span class="phpdocumentor-signature__name">diverseArray</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed </span><span class="phpdocumentor-signature__argument__name">$files</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array<string|int, mixed></span></code> | |
679 | ||
680 | <section class="phpdocumentor-description"></section> | |
681 | ||
682 | <h5 class="phpdocumentor-argument-list__heading">Parameters</h5> | |
683 | <dl class="phpdocumentor-argument-list"> | |
684 | <dt class="phpdocumentor-argument-list__entry"> | |
685 | <span class="phpdocumentor-signature__argument__name">$files</span> | |
686 | : <span class="phpdocumentor-signature__argument__return-type">mixed</span> | |
687 | </dt> | |
688 | <dd class="phpdocumentor-argument-list__definition"> | |
689 | <section class="phpdocumentor-description"></section> | |
690 | ||
691 | </dd> | |
692 | </dl> | |
693 | ||
694 | ||
695 | ||
696 | <h5 class="phpdocumentor-return-value__heading">Return values</h5> | |
697 | <span class="phpdocumentor-signature__response_type">array<string|int, mixed></span> | |
698 | — | |
699 | ||
700 | ||
701 | </article> | |
702 | <article | |
703 | class="phpdocumentor-element | |
704 | -method | |
705 | -public | |
706 | " | |
707 | > | |
708 | <h4 class="phpdocumentor-element__name" id="method_fileInfo"> | |
709 | fileInfo() | |
710 | <a href="classes/Upload.html#method_fileInfo" class="headerlink"><i class="fas fa-link"></i></a> | |
711 | </h4> | |
712 | <aside class="phpdocumentor-element-found-in"> | |
713 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
714 | : | |
715 | <span class="phpdocumentor-element-found-in__line">127</span> | |
716 | ||
717 | </aside> | |
718 | ||
719 | ||
720 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
721 | <span class="phpdocumentor-signature__visibility">public</span> | |
722 | <span class="phpdocumentor-signature__name">fileInfo</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code> | |
723 | ||
724 | <section class="phpdocumentor-description"></section> | |
725 | ||
726 | ||
727 | ||
728 | ||
729 | <h5 class="phpdocumentor-return-value__heading">Return values</h5> | |
730 | <span class="phpdocumentor-signature__response_type">mixed</span> | |
731 | — | |
732 | ||
733 | ||
734 | </article> | |
735 | <article | |
736 | class="phpdocumentor-element | |
737 | -method | |
738 | -public | |
739 | " | |
740 | > | |
741 | <h4 class="phpdocumentor-element__name" id="method_generateName"> | |
742 | generateName() | |
743 | <a href="classes/Upload.html#method_generateName" class="headerlink"><i class="fas fa-link"></i></a> | |
744 | </h4> | |
745 | <aside class="phpdocumentor-element-found-in"> | |
746 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
747 | : | |
748 | <span class="phpdocumentor-element-found-in__line">170</span> | |
749 | ||
750 | </aside> | |
751 | ||
752 | ||
753 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
754 | <span class="phpdocumentor-signature__visibility">public</span> | |
755 | <span class="phpdocumentor-signature__name">generateName</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code> | |
756 | ||
757 | ||
758 | ||
759 | ||
760 | <h5 class="phpdocumentor-tag-list__heading" id="tags"> | |
761 | Tags | |
762 | <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a> | |
763 | </h5> | |
764 | <dl class="phpdocumentor-tag-list"> | |
765 | <dt class="phpdocumentor-tag-list__entry"> | |
766 | <span class="phpdocumentor-tag__name">throws</span> | |
767 | </dt> | |
768 | <dd class="phpdocumentor-tag-list__definition"> | |
769 | <span class="phpdocumentor-tag-link"><abbr title="\Exception">Exception</abbr></span> | |
770 | ||
771 | ||
772 | </dd> | |
773 | </dl> | |
774 | ||
775 | <h5 class="phpdocumentor-return-value__heading">Return values</h5> | |
776 | <span class="phpdocumentor-signature__response_type">string</span> | |
777 | — | |
778 | ||
779 | ||
780 | </article> | |
781 | <article | |
782 | class="phpdocumentor-element | |
783 | -method | |
784 | -public | |
785 | " | |
786 | > | |
787 | <h4 class="phpdocumentor-element__name" id="method_reFiles"> | |
788 | reFiles() | |
789 | <a href="classes/Upload.html#method_reFiles" class="headerlink"><i class="fas fa-link"></i></a> | |
790 | </h4> | |
791 | <aside class="phpdocumentor-element-found-in"> | |
792 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
793 | : | |
794 | <span class="phpdocumentor-element-found-in__line">42</span> | |
795 | ||
796 | </aside> | |
797 | ||
798 | ||
799 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
800 | <span class="phpdocumentor-signature__visibility">public</span> | |
801 | <span class="phpdocumentor-signature__name">reFiles</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed </span><span class="phpdocumentor-signature__argument__name">$files</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array<string|int, mixed></span></code> | |
802 | ||
803 | <section class="phpdocumentor-description"></section> | |
804 | ||
805 | <h5 class="phpdocumentor-argument-list__heading">Parameters</h5> | |
806 | <dl class="phpdocumentor-argument-list"> | |
807 | <dt class="phpdocumentor-argument-list__entry"> | |
808 | <span class="phpdocumentor-signature__argument__name">$files</span> | |
809 | : <span class="phpdocumentor-signature__argument__return-type">mixed</span> | |
810 | </dt> | |
811 | <dd class="phpdocumentor-argument-list__definition"> | |
812 | <section class="phpdocumentor-description"></section> | |
813 | ||
814 | </dd> | |
815 | </dl> | |
816 | ||
817 | ||
818 | ||
819 | <h5 class="phpdocumentor-return-value__heading">Return values</h5> | |
820 | <span class="phpdocumentor-signature__response_type">array<string|int, mixed></span> | |
821 | — | |
822 | ||
823 | ||
824 | </article> | |
825 | <article | |
826 | class="phpdocumentor-element | |
827 | -method | |
828 | -public | |
829 | " | |
830 | > | |
831 | <h4 class="phpdocumentor-element__name" id="method_uploadFile"> | |
832 | uploadFile() | |
833 | <a href="classes/Upload.html#method_uploadFile" class="headerlink"><i class="fas fa-link"></i></a> | |
834 | </h4> | |
835 | <aside class="phpdocumentor-element-found-in"> | |
836 | <abbr class="phpdocumentor-element-found-in__file" title="dist/includes/Upload.class.php"><a href="files/dist-includes-upload-class.html"><abbr title="dist/includes/Upload.class.php">Upload.class.php</abbr></a></abbr> | |
837 | : | |
838 | <span class="phpdocumentor-element-found-in__line">72</span> | |
839 | ||
840 | </aside> | |
841 | ||
842 | ||
843 | <code class="phpdocumentor-code phpdocumentor-signature "> | |
844 | <span class="phpdocumentor-signature__visibility">public</span> | |
845 | <span class="phpdocumentor-signature__name">uploadFile</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array<string|int, mixed></span></code> | |
846 | ||
847 | ||
848 | ||
849 | ||
850 | <h5 class="phpdocumentor-tag-list__heading" id="tags"> | |
851 | Tags | |
852 | <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a> | |
853 | </h5> | |
854 | <dl class="phpdocumentor-tag-list"> | |
855 | <dt class="phpdocumentor-tag-list__entry"> | |
856 | <span class="phpdocumentor-tag__name">throws</span> | |
857 | </dt> | |
858 | <dd class="phpdocumentor-tag-list__definition"> | |
859 | <span class="phpdocumentor-tag-link"><abbr title="\Exception">Exception</abbr></span> | |
860 | ||
861 | ||
862 | </dd> | |
863 | </dl> | |
864 | ||
865 | <h5 class="phpdocumentor-return-value__heading">Return values</h5> | |
866 | <span class="phpdocumentor-signature__response_type">array<string|int, mixed></span> | |
867 | — | |
868 | ||
869 | ||
870 | </article> | |
871 | </section> | |
872 | ||
873 | ||
874 | <script type="text/javascript"> | |
875 | function loadExternalCodeSnippets(line) { | |
876 | Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => { | |
877 | var src = pre.getAttribute('data-src').replace( /\\/g, '/'); | |
878 | var extension = (src.match(/\.(\w+)$/) || [, ''])[1]; | |
879 | var language = 'php'; | |
880 | ||
881 | var code = document.createElement('code'); | |
882 | code.className = 'language-' + language; | |
883 | ||
884 | pre.textContent = ''; | |
885 | ||
886 | pre.setAttribute('data-line', line) | |
887 | code.textContent = 'Loading…'; | |
888 | ||
889 | pre.appendChild(code); | |
890 | ||
891 | var xhr = new XMLHttpRequest(); | |
892 | ||
893 | xhr.open('GET', src, true); | |
894 | ||
895 | xhr.onreadystatechange = function () { | |
896 | if (xhr.readyState == 4) { | |
897 | ||
898 | if (xhr.status < 400 && xhr.responseText) { | |
899 | code.textContent = xhr.responseText; | |
900 | ||
901 | Prism.highlightElement(code); | |
902 | } | |
903 | else if (xhr.status >= 400) { | |
904 | code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText; | |
905 | } | |
906 | else { | |
907 | code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost'; | |
908 | } | |
909 | } | |
910 | }; | |
911 | ||
912 | xhr.send(null); | |
913 | }); | |
914 | } | |
915 | ||
916 | var modals = document.querySelectorAll("[data-modal]"); | |
917 | ||
918 | modals.forEach(function (trigger) { | |
919 | trigger.addEventListener("click", function (event) { | |
920 | //event.preventDefault(); | |
921 | const modal = document.getElementById(trigger.dataset.modal); | |
922 | modal.classList.add("phpdocumentor-modal__open"); | |
923 | loadExternalCodeSnippets(trigger.dataset.line) | |
924 | const exits = modal.querySelectorAll("[data-exit-button]"); | |
925 | exits.forEach(function (exit) { | |
926 | exit.addEventListener("click", function (event) { | |
927 | event.preventDefault(); | |
928 | modal.classList.remove("phpdocumentor-modal__open"); | |
929 | }); | |
930 | }); | |
931 | }); | |
932 | }); | |
933 | </script> | |
934 | ||
935 | </article> | |
936 | <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden"> | |
937 | <section class="phpdocumentor-search-results__dialog"> | |
938 | <header class="phpdocumentor-search-results__header"> | |
939 | <h2 class="phpdocumentor-search-results__title">Search results</h2> | |
940 | <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button> | |
941 | </header> | |
942 | <section class="phpdocumentor-search-results__body"> | |
943 | <ul class="phpdocumentor-search-results__entries"></ul> | |
944 | </section> | |
945 | </section> | |
946 | </section> | |
947 | </div> | |
948 | </div> | |
949 | <a href="classes/Upload.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a> | |
950 | ||
951 | </main> | |
952 | ||
953 | <script> | |
954 | cssVars({}); | |
955 | </script> | |
956 | <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script> | |
957 | <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script> | |
958 | <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script> | |
959 | <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script> | |
960 | </body> | |
961 | </html> |