1 | <?php |
||
13 | class RequestHelper { |
||
14 | |||
15 | /** @var IRequest */ |
||
16 | private $request; |
||
17 | |||
18 | 2 | public function __construct(IRequest $request) { |
|
21 | |||
22 | /** |
||
23 | * Get current upload size |
||
24 | * returns null for chunks and when there is no upload |
||
25 | * |
||
26 | * @param string $path |
||
27 | * @return int|null |
||
28 | */ |
||
29 | 3 | public function getUploadSize($path) { |
|
53 | |||
54 | /** |
||
55 | * |
||
56 | * @param string $string |
||
57 | * @return bool |
||
58 | */ |
||
59 | 3 | public function isScriptName($string) { |
|
63 | } |
||
64 |