1 <?php
2 /* --------------------------------------------------------------
3 HttpViewControllerInterface.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 HttpViewControllerInterface
15 *
16 * @category System
17 * @package Http
18 * @subpackage Interfaces
19 */
20 interface HttpViewControllerInterface
21 {
22 /**
23 * Processes a http response object which is get by invoking an action method.
24 * The action method is determined by the current http context.
25 *
26 * @param HttpContextInterface $httpContext Http context object which hold the request variables.
27 */
28 public function proceed(HttpContextInterface $httpContext);
29
30
31 /**
32 * Default action method.
33 * Every controller child class requires at least the default action method, which is invoked when
34 * the ::_getQueryParameterData('do') value is not separated by a trailing slash.
35 *
36 * Every action method have to return an instance which implements the http controller response interface.
37 *
38 * @return HttpControllerResponseInterface
39 */
40 public function actionDefault();
41 }