1 |
<? |
<? |
2 |
/** |
/** |
3 |
* This file contains the abstract MVCPage class. |
* This file contains the DesignPattern::AdapterProxy namespace. |
|
* It inherits from phpHtmlLib's abstract PageWidget |
|
|
* class to seamlessly integrate into its render queue. |
|
4 |
* |
* |
5 |
* @author Andreas Motl <andreas.motl@ilo.de> |
* @author Andreas Motl <andreas.motl@ilo.de> |
6 |
* @package org.netfrag.glib |
* @package org.netfrag.glib |
8 |
* |
* |
9 |
*/ |
*/ |
10 |
|
|
11 |
|
|
12 |
/** |
/** |
13 |
|
* <b>Cvs-Log:</b> |
14 |
|
* |
15 |
|
* <pre> |
16 |
* $Id$ |
* $Id$ |
17 |
* |
* |
18 |
* $Log$ |
* $Log$ |
19 |
|
* Revision 1.10 2003/03/10 23:25:04 joko |
20 |
|
* + fixed metadata for phpDocumentor |
21 |
|
* |
22 |
|
* Revision 1.9 2003/03/10 22:31:56 joko |
23 |
|
* + fixed metadata for phpDocumentor |
24 |
|
* |
25 |
|
* Revision 1.8 2003/03/05 17:28:43 joko |
26 |
|
* updated docu (phpDocumentor testing....) |
27 |
|
* |
28 |
|
* Revision 1.7 2003/03/05 17:13:17 joko |
29 |
|
* updated docu (phpDocumentor testing....) |
30 |
|
* |
31 |
|
* Revision 1.6 2003/03/05 17:02:22 joko |
32 |
|
* updated docu (phpDocumentor testing....) |
33 |
|
* |
34 |
|
* Revision 1.5 2003/03/05 16:45:58 joko |
35 |
|
* updated docu (phpDocumentor testing....) |
36 |
|
* |
37 |
|
* Revision 1.4 2003/03/05 16:32:18 joko |
38 |
|
* updated docu (phpDocumentor testing....) |
39 |
|
* |
40 |
|
* Revision 1.3 2003/03/05 16:10:17 joko |
41 |
|
* updated docu (phpDocumentor testing....) |
42 |
|
* |
43 |
* Revision 1.2 2003/03/05 15:41:03 joko |
* Revision 1.2 2003/03/05 15:41:03 joko |
44 |
* updated docu (phpDocumentor testing....) |
* updated docu (phpDocumentor testing....) |
45 |
* |
* |
48 |
* |
* |
49 |
* Revision 1.1 2003/03/03 22:11:08 joko |
* Revision 1.1 2003/03/03 22:11:08 joko |
50 |
* + initial commit |
* + initial commit |
51 |
|
* </pre> |
52 |
* |
* |
53 |
* |
* |
54 |
*/ |
*/ |
55 |
|
// cvs-log |
56 |
|
|
57 |
|
|
58 |
|
/** |
59 |
|
* Make sure we have the required parent class |
60 |
|
*/ |
61 |
|
loadModule('DesignPattern::TransparentProxy'); |
62 |
|
|
63 |
|
|
64 |
/** |
/** |
65 |
* This class is used to build content |
* This tries to combine some DesignPatterns.... |
|
* for an MVC controlled page. It instantiates |
|
|
* an concrete helper MVC object which does the |
|
|
* dispatching stuff. (phpHtmlLib::controller::WebMVC, |
|
|
* inherited from the abstract DesignPattern::MVC) |
|
|
* |
|
|
* This class is established here to act as a wrapper |
|
|
* bringing MVC and phpHtmlLib together. |
|
|
* |
|
|
* By now we inherit from the PageWidget, but this has |
|
|
* to be broken using the ProxyPattern or s.th.l.th. |
|
|
* I guess we'll have to dispatch to arbitrary concrete |
|
|
* Page-implementations here in future... |
|
66 |
* |
* |
67 |
|
* It combines features from both the standard Proxy |
68 |
|
* and the TransparentProxy adding some Adapter features. |
69 |
|
* |
70 |
|
* @name DesignPattern::AdapterProxy |
71 |
|
* @subpackage DesignPattern |
72 |
|
* @package org.netfrag.glib |
73 |
|
* |
74 |
|
* @link http://www.gnu.org/licenses/lgpl.txt |
75 |
|
* @license GNU LGPL (GNU Lesser General Public License) |
76 |
* |
* |
|
* @author Andreas Motl <andreas.motl@ilo.de> |
|
77 |
* @link http://www.netfrag.org/~joko/ |
* @link http://www.netfrag.org/~joko/ |
78 |
* @copyright (c) 2003 - All Rights reserved. |
* @copyright (c) 2003 - All Rights reserved. |
79 |
* @license GNU LGPL (GNU Lesser General Public License) |
* @author Andreas Motl <andreas.motl@ilo.de> |
|
* @link http://www.gnu.org/licenses/lgpl.txt |
|
80 |
* |
* |
81 |
* @package org.netfrag.glib |
* @todo Learn TransparentProxy to do procedural calls ... <br> |
82 |
* @name DesignPattern::AdapterProxy |
* ... instead of instantiating a component and even less code could be in here<br> |
83 |
|
* benefit: the TransparentProxy would be become even more powerful |
84 |
|
* eeäähhh, to the master Proxy it goes......!!! This one calls the handler(s)! |
85 |
* |
* |
86 |
*/ |
*/ |
|
|
|
|
/** |
|
|
* Make sure we have the required parent class |
|
|
*/ |
|
|
|
|
|
//class Site_WebPageMVC extends PageWidget { |
|
|
//loadModule('DesignPattern::MVC'); |
|
|
|
|
|
//require_once($phphtmllib."/widgets/PageWidget.inc"); |
|
|
|
|
|
|
|
|
// TODO: Learn TransparentProxy to do procedural calls instead |
|
|
// of instantiating a component and even less code could be in here..... |
|
|
// benefit: the TransparentProxy would be become even more powerful |
|
|
// eeäähhh, to the master Proxy it goes......!!! This one calls the handler(s)! |
|
|
|
|
|
|
|
|
//class Site_Adapter_php_Class { |
|
|
//class Site_Adapter_php_IncludeFile extends GenericDataWidget { |
|
87 |
class DesignPattern_AdapterProxy extends DesignPattern_TransparentProxy { |
class DesignPattern_AdapterProxy extends DesignPattern_TransparentProxy { |
88 |
|
|
89 |
var $_adapter; |
var $_adapter; |