1 |
<? |
<? |
2 |
/** |
/** |
3 |
* This file contains the abstract MVCPage class. |
* This file contains the DesignPattern::AdapterProxy class |
4 |
* It inherits from phpHtmlLib's abstract PageWidget |
* |
5 |
* class to seamlessly integrate into its render queue. |
* It combines features from both the standard Proxy |
6 |
|
* and the TransparentProxy adding some Adapter features |
7 |
* |
* |
8 |
* @author Andreas Motl <andreas.motl@ilo.de> |
* @author Andreas Motl <andreas.motl@ilo.de> |
9 |
* @package org.netfrag.glib |
* @package org.netfrag.glib |
15 |
* $Id$ |
* $Id$ |
16 |
* |
* |
17 |
* $Log$ |
* $Log$ |
18 |
|
* Revision 1.3 2003/03/05 16:10:17 joko |
19 |
|
* updated docu (phpDocumentor testing....) |
20 |
|
* |
21 |
* Revision 1.2 2003/03/05 15:41:03 joko |
* Revision 1.2 2003/03/05 15:41:03 joko |
22 |
* updated docu (phpDocumentor testing....) |
* updated docu (phpDocumentor testing....) |
23 |
* |
* |
32 |
|
|
33 |
|
|
34 |
/** |
/** |
35 |
* This class is used to build content |
* This tries to implement some DesignPattern |
|
* 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... |
|
36 |
* |
* |
37 |
* |
* |
38 |
* @author Andreas Motl <andreas.motl@ilo.de> |
* @author Andreas Motl <andreas.motl@ilo.de> |
43 |
* |
* |
44 |
* @package org.netfrag.glib |
* @package org.netfrag.glib |
45 |
* @name DesignPattern::AdapterProxy |
* @name DesignPattern::AdapterProxy |
46 |
|
* @filesource |
47 |
* |
* |
48 |
*/ |
*/ |
49 |
|
|
50 |
/** |
/** |
51 |
* Make sure we have the required parent class |
* Make sure we have the required parent class |
52 |
*/ |
*/ |
53 |
|
loadModule('DesignPattern::TransparentProxy'); |
|
//class Site_WebPageMVC extends PageWidget { |
|
|
//loadModule('DesignPattern::MVC'); |
|
|
|
|
|
//require_once($phphtmllib."/widgets/PageWidget.inc"); |
|
54 |
|
|
55 |
|
|
56 |
// TODO: Learn TransparentProxy to do procedural calls instead |
/** |
57 |
// of instantiating a component and even less code could be in here..... |
* @todo Learn TransparentProxy to do procedural calls instead |
58 |
// benefit: the TransparentProxy would be become even more powerful |
* of instantiating a component and even less code could be in here..... |
59 |
// eeäähhh, to the master Proxy it goes......!!! This one calls the handler(s)! |
* benefit: the TransparentProxy would be become even more powerful |
60 |
|
* eeäähhh, to the master Proxy it goes......!!! This one calls the handler(s)! |
61 |
|
* |
62 |
|
*/ |
63 |
|
|
64 |
|
|
|
//class Site_Adapter_php_Class { |
|
|
//class Site_Adapter_php_IncludeFile extends GenericDataWidget { |
|
65 |
class DesignPattern_AdapterProxy extends DesignPattern_TransparentProxy { |
class DesignPattern_AdapterProxy extends DesignPattern_TransparentProxy { |
66 |
|
|
67 |
var $_adapter; |
var $_adapter; |