wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
class.TerminateController.php
Go to the documentation of this file.
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2014 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of any of the following licenses
7  * at your choice:
8  *
9  * - GNU Lesser General Public License (LGPL)
10  * http://www.gnu.org/licenses/lgpl.html
11  * - Eclipse Public License (EPL)
12  * http://www.eclipse.org/org/documents/epl-v10.php
13  *
14  * See the license.txt file distributed with this work for
15  * additional information.
16  *
17  * $Id: class.TerminateController.php 1462 2014-02-04 23:52:27Z iherwig $
18  */
19 require_once(BASE."wcmf/lib/presentation/class.Controller.php");
20 
21 /**
22  * @class TerminateController
23  * @ingroup Controller
24  * @brief TerminateController stops the action processing by returning
25  * false in executeKernel.
26  *
27  * The controller passes all input parameters to the output.
28  *
29  * <b>Input actions:</b>
30  * - unspecified: Terminate action processing
31  *
32  * <b>Output actions:</b>
33  * - none
34  *
35  * @author ingo herwig <ingo@wemove.com>
36  */
38 {
39  /**
40  * @see Controller::hasView()
41  */
42  function hasView()
43  {
44  return false;
45  }
46  /**
47  * @return False (Stop action processing chain).
48  * @see Controller::executeKernel()
49  */
50  function executeKernel()
51  {
52  $this->_response->setData($this->_request->getData());
53  return false;
54  }
55 }
56 ?>
Controller is the base class of all controllers. If a Controller has a view it is expected to reside ...
TerminateController stops the action processing by returning false in executeKernel.