5 |
* |
* |
6 |
* @author Andreas Motl <andreas.motl@ilo.de> |
* @author Andreas Motl <andreas.motl@ilo.de> |
7 |
* @package org.netfrag.glib |
* @package org.netfrag.glib |
8 |
* @module Application::Request::HttpController |
* @name Application::Request::HttpController |
9 |
* |
* |
10 |
*/ |
*/ |
11 |
|
|
12 |
/** |
/** |
13 |
|
* <b>Cvs-Log:</b> |
14 |
|
* |
15 |
|
* <pre> |
16 |
* $Id$ |
* $Id$ |
17 |
* |
* |
18 |
* $Log$ |
* $Log$ |
19 |
|
* Revision 1.6 2003/04/06 04:27:45 joko |
20 |
|
* shortcut for LinkBuilder |
21 |
|
* |
22 |
|
* Revision 1.5 2003/04/06 01:39:32 jonen |
23 |
|
* + now, ask LinkBuilder for GET vars if linkbuilder-ID exists at GET var(s) |
24 |
|
* |
25 |
|
* Revision 1.4 2003/03/11 01:22:22 joko |
26 |
|
* + fixed metadata for phpDocumentor |
27 |
|
* |
28 |
|
* Revision 1.3 2003/03/05 18:54:42 joko |
29 |
|
* updated docu - phpDocumentor is very strict about its 'blocks'... |
30 |
|
* |
31 |
* Revision 1.2 2003/03/03 21:13:59 joko |
* Revision 1.2 2003/03/03 21:13:59 joko |
32 |
* + request translation |
* + request translation |
33 |
* mungled namespaces |
* mungled namespaces |
35 |
* |
* |
36 |
* Revision 1.1 2003/03/01 21:11:18 joko |
* Revision 1.1 2003/03/01 21:11:18 joko |
37 |
* + initial commit |
* + initial commit |
38 |
* |
* </pre> |
39 |
* |
* |
40 |
*/ |
*/ |
41 |
|
|
42 |
|
|
43 |
/** |
/** |
44 |
* --- |
* This requires the Application::Request::BaseController base class |
45 |
|
* |
46 |
|
*/ |
47 |
|
loadModule('Application::Request::BaseController'); |
48 |
|
|
49 |
|
/** |
50 |
|
* --- Application::Request::HttpController |
51 |
* |
* |
52 |
|
* Responsible for GET and POST argument handling. |
53 |
|
* Does an array_join_merge for now. |
54 |
* |
* |
55 |
* @author Andreas Motl <andreas.motl@ilo.de> |
* @author Andreas Motl <andreas.motl@ilo.de> |
56 |
* @copyright (c) 2003 - All Rights reserved. |
* @copyright (c) 2003 - All Rights reserved. |
57 |
* @license GNU LGPL (GNU Lesser General Public License) |
* @license GNU LGPL (GNU Lesser General Public License) |
58 |
* |
* |
59 |
* @author-url http://www.netfrag.org/~joko/ |
* @link http://www.netfrag.org/~joko/ |
60 |
* @license-url http://www.gnu.org/licenses/lgpl.txt |
* @link http://www.gnu.org/licenses/lgpl.txt |
61 |
* |
* |
62 |
* @package org.netfrag.glib |
* @package org.netfrag.glib |
63 |
* @module Application::Request::HttpController |
* @subpackage Application |
64 |
* |
* @name Application::Request::HttpController |
|
*/ |
|
|
|
|
|
/** |
|
|
* Todo: |
|
|
* |
|
|
* o xyz |
|
|
* o bla, bli, blub |
|
|
* |
|
65 |
* |
* |
66 |
*/ |
*/ |
|
|
|
|
|
|
|
loadModule('Application::Request::BaseController'); |
|
67 |
class Application_Request_HttpController extends Application_Request_BaseController { |
class Application_Request_HttpController extends Application_Request_BaseController { |
68 |
|
|
69 |
/** |
/** |
80 |
} |
} |
81 |
|
|
82 |
function get_request() { |
function get_request() { |
83 |
return php::array_join_merge($_GET, $_POST); |
// FIXME!? |
84 |
|
if ($lbid = $_GET[lbid]) { |
85 |
|
// talk to LinkBuilder... |
86 |
|
require_once('utils/links.php'); |
87 |
|
return link::restore($lbid); |
88 |
|
} else { |
89 |
|
return php::array_join_merge($_GET, $_POST); |
90 |
|
} |
91 |
} |
} |
92 |
|
|
93 |
function get_request_translated() { |
function get_request_translated() { |