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 phpHtmlLib |
* @package org.netfrag.glib |
7 |
* @module MVCPage |
* @filesource |
8 |
* |
* |
9 |
*/ |
* <b>Cvs-Log:</b> |
10 |
|
* |
11 |
/** |
* <pre> |
12 |
* $Id$ |
* $Id$ |
13 |
* |
* |
14 |
* $Log$ |
* $Log$ |
15 |
|
* Revision 1.5 2003/03/05 16:45:58 joko |
16 |
|
* updated docu (phpDocumentor testing....) |
17 |
|
* |
18 |
|
* Revision 1.4 2003/03/05 16:32:18 joko |
19 |
|
* updated docu (phpDocumentor testing....) |
20 |
|
* |
21 |
|
* Revision 1.3 2003/03/05 16:10:17 joko |
22 |
|
* updated docu (phpDocumentor testing....) |
23 |
|
* |
24 |
|
* Revision 1.2 2003/03/05 15:41:03 joko |
25 |
|
* updated docu (phpDocumentor testing....) |
26 |
|
* |
27 |
* Revision 1.1 2003/03/05 12:07:10 joko |
* Revision 1.1 2003/03/05 12:07:10 joko |
28 |
* + initial commit |
* + initial commit |
29 |
* |
* |
30 |
* Revision 1.1 2003/03/03 22:11:08 joko |
* Revision 1.1 2003/03/03 22:11:08 joko |
31 |
* + initial commit |
* + initial commit |
32 |
|
* </pre> |
33 |
* |
* |
34 |
* |
* |
35 |
*/ |
*/ |
36 |
|
|
37 |
|
|
38 |
/** |
/** |
39 |
* This class is used to build content |
* Make sure we have the required parent class |
40 |
* for an MVC controlled page. It instantiates |
*/ |
41 |
* an concrete helper MVC object which does the |
loadModule('DesignPattern::TransparentProxy'); |
42 |
* dispatching stuff. (phpHtmlLib::controller::WebMVC, |
|
43 |
* inherited from the abstract DesignPattern::MVC) |
|
44 |
* |
/** |
45 |
* This class is established here to act as a wrapper |
* This tries to combine some DesignPatterns.... |
46 |
* bringing MVC and phpHtmlLib together. |
* |
47 |
* |
* It combines features from both the standard Proxy |
48 |
* By now we inherit from the PageWidget, but this has |
* and the TransparentProxy adding some Adapter features. |
|
* 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... |
|
49 |
* |
* |
50 |
* @author Andreas Motl <andreas.motl@ilo.de> |
* @author Andreas Motl <andreas.motl@ilo.de> |
51 |
* @package phpHtmlLib |
* @copyright (c) 2003 - All Rights reserved. |
52 |
* @module MVCPage |
* @link http://www.netfrag.org/~joko/ |
53 |
|
* |
54 |
|
* @license GNU LGPL (GNU Lesser General Public License) |
55 |
|
* @link http://www.gnu.org/licenses/lgpl.txt |
56 |
|
* |
57 |
|
* @package org.netfrag.glib |
58 |
|
* @name DesignPattern::AdapterProxy |
59 |
|
* |
60 |
|
* @todo |
61 |
|
* <p>Learn TransparentProxy to do procedural calls instead |
62 |
|
* of instantiating a component and even less code could be in here..... |
63 |
|
* benefit: the TransparentProxy would be become even more powerful |
64 |
|
* eeäähhh, to the master Proxy it goes......!!! This one calls the handler(s)! |
65 |
|
* </p> |
66 |
* |
* |
67 |
*/ |
*/ |
|
|
|
|
/** |
|
|
* 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 { |
|
68 |
class DesignPattern_AdapterProxy extends DesignPattern_TransparentProxy { |
class DesignPattern_AdapterProxy extends DesignPattern_TransparentProxy { |
69 |
|
|
70 |
var $_adapter; |
var $_adapter; |