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