1 | <?php |
||
20 | class Flow |
||
21 | extends \Aimeos\MW\View\Helper\Request\Standard |
||
22 | implements \Aimeos\MW\View\Helper\Request\Iface |
||
23 | { |
||
24 | private $request; |
||
25 | private $files; |
||
26 | |||
27 | |||
28 | /** |
||
29 | * Initializes the request view helper. |
||
30 | * |
||
31 | * @param \\Aimeos\MW\View\Iface $view View instance with registered view helpers |
||
32 | * @param \TYPO3\Flow\Http\Request $request Flow request object |
||
33 | * @param array $files Uploaded files from $_FILES |
||
34 | */ |
||
35 | public function __construct( \Aimeos\MW\View\Iface $view, \TYPO3\Flow\Http\Request $request, array $files ) |
||
42 | |||
43 | |||
44 | /** |
||
45 | * Returns the request view helper. |
||
46 | * |
||
47 | * @return \Aimeos\MW\View\Helper\Iface Request view helper |
||
48 | */ |
||
49 | public function transform() |
||
53 | |||
54 | |||
55 | /** |
||
56 | * Returns the request body. |
||
57 | * |
||
58 | * @return string Request body |
||
59 | */ |
||
60 | public function getBody() |
||
64 | |||
65 | |||
66 | /** |
||
67 | * Returns the client IP address. |
||
68 | * |
||
69 | * @return string Client IP address |
||
70 | */ |
||
71 | public function getClientAddress() |
||
75 | |||
76 | |||
77 | /** |
||
78 | * Returns the current page or route name |
||
79 | * |
||
80 | * @return string|null Current page or route name |
||
81 | */ |
||
82 | public function getTarget() |
||
86 | |||
87 | |||
88 | /** |
||
89 | * Retrieve normalized file upload data. |
||
90 | * |
||
91 | * This method returns upload metadata in a normalized tree, with each leaf |
||
92 | * an instance of Psr\Http\Message\UploadedFileInterface. |
||
93 | * |
||
94 | * These values MAY be prepared from $_FILES or the message body during |
||
95 | * instantiation, or MAY be injected via withUploadedFiles(). |
||
96 | * |
||
97 | * @return array An array tree of UploadedFileInterface instances; an empty |
||
98 | * array MUST be returned if no data is present. |
||
99 | */ |
||
100 | public function getUploadedFiles() |
||
104 | } |
||
105 |