1 <?php
2 /* --------------------------------------------------------------
3 HttpContextReaderInterface.inc.php 2015-07-22 gm
4 Gambio GmbH
5 http://www.gambio.de
6 Copyright (c) 2015 Gambio GmbH
7 Released under the GNU General Public License (Version 2)
8 [http://www.gnu.org/licenses/gpl-2.0.html]
9 --------------------------------------------------------------
10 */
11
12
13 /**
14 * Interface HttpContextReaderInterface
15 *
16 * @category System
17 * @package Http
18 * @subpackage Interfaces
19 */
20 interface HttpContextReaderInterface
21 {
22 /**
23 * Returns the controller name for current http request context.
24 *
25 * @param HttpContextInterface $httpContext Object which holds information about the current http context.
26 *
27 * @return string Name of controller for the current http context.
28 */
29 public function getControllerName(HttpContextInterface $httpContext);
30
31
32 /**
33 * Returns the name of the action method for the current http context.
34 *
35 * @param \HttpContextInterface $httpContext Object which holds information about the current http context.
36 *
37 * @return string Name of action method for the current http context.
38 */
39 public function getActionName(HttpContextInterface $httpContext);
40
41
42 /**
43 * Returns an array which represents the global $_GET variable of the current http context.
44 *
45 * @param HttpContextInterface $httpContext Object which holds information about the current http context.
46 *
47 * @return array Array which hold information equal to the global $_GET variable in an object oriented layer.
48 */
49 public function getQueryParameters(HttpContextInterface $httpContext);
50
51
52 /**
53 * Returns an array which represents the global $_POST variable of the current http context.
54 *
55 * @param HttpContextInterface $httpContext Object which holds information about the current http context.
56 *
57 * @return array Array which hold information equal to the global $_POST variable in an object oriented layer.
58 */
59 public function getPostData(HttpContextInterface $httpContext);
60 }