-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPsrFilesInput.php
More file actions
62 lines (57 loc) · 1.59 KB
/
PsrFilesInput.php
File metadata and controls
62 lines (57 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php declare(strict_types=1);
/**
* Part of Windwalker project.
*
* @copyright Copyright (C) 2019 LYRASOFT.
* @license LGPL-2.0-or-later
*/
namespace Windwalker\IO;
use Psr\Http\Message\UploadedFileInterface;
/**
* Windwalker Input Files Class
*
* @since 2.0
*/
class PsrFilesInput extends Input
{
/**
* Prepare source.
*
* @param array $source Optional source data. If omitted, a copy of the server variable '_REQUEST' is used.
* @param boolean $reference If set to true, he source in first argument will be reference.
*
* @return void
*/
public function prepareSource(&$source = null, $reference = false)
{
$this->data = $source;
}
/**
* Gets a value from the input data.
*
* @param string $name Name of the value to get.
* @param mixed $default Default value to return if variable does not exist.
* @param string $filter Filter to apply to the value.
* @param string $separator Separator for path.
*
* @return UploadedFileInterface The filtered input value.
*
* @since 2.0
*/
public function get($name, $default = null, $filter = 'raw', $separator = '.')
{
return parent::get($name, $default, $filter, $separator);
}
/**
* Sets a value
*
* @param string $name Name of the value to set.
* @param mixed $value Value to assign to the input.
* @param string $separator Symbol to separate path.
*
* @since 2.0
*/
public function set($name, $value, $separator = '.')
{
}
}