| 5 |
* class to seamlessly integrate into its render queue. |
* class to seamlessly integrate into its render queue. |
| 6 |
* |
* |
| 7 |
* @author Andreas Motl <andreas.motl@ilo.de> |
* @author Andreas Motl <andreas.motl@ilo.de> |
| 8 |
* @package phpHtmlLib |
* @package org.netfrag.glib |
| 9 |
* @module MVCPage |
* @name Site::WebBlock |
| 10 |
* |
* |
| 11 |
*/ |
*/ |
| 12 |
|
|
| 13 |
/** |
/** |
| 14 |
|
* <pre> |
| 15 |
|
* |
| 16 |
* $Id$ |
* $Id$ |
| 17 |
* |
* |
| 18 |
* $Log$ |
* $Log$ |
| 19 |
|
* Revision 1.4 2003/03/10 23:45:33 joko |
| 20 |
|
* + fixed metadata for phpDocumentor |
| 21 |
|
* |
| 22 |
|
* Revision 1.3 2003/03/10 01:05:07 joko |
| 23 |
|
* + additional metadata for Autodia |
| 24 |
|
* |
| 25 |
|
* Revision 1.2 2003/03/05 18:54:45 joko |
| 26 |
|
* updated docu - phpDocumentor is very strict about its 'blocks'... |
| 27 |
|
* |
| 28 |
* Revision 1.1 2003/03/05 12:18:47 joko |
* Revision 1.1 2003/03/05 12:18:47 joko |
| 29 |
* from GenericPage.php |
* from GenericPage.php |
| 30 |
* |
* |
| 31 |
* Revision 1.1 2003/03/03 22:11:59 joko |
* Revision 1.1 2003/03/03 22:11:59 joko |
| 32 |
* + initial commit |
* + initial commit |
| 33 |
* |
* |
| 34 |
* |
* <pre> |
| 35 |
*/ |
*/ |
| 36 |
|
|
| 37 |
|
|
| 38 |
/** |
/** |
| 39 |
|
* Make sure we have the required parent class |
| 40 |
|
*/ |
| 41 |
|
//class Site_WebPageMVC extends PageWidget { |
| 42 |
|
//loadModule('DesignPattern::MVC'); |
| 43 |
|
//class Site_GenericPage extends DesignPattern_MVC { |
| 44 |
|
//loadModule('DesignPattern::Proxy'); |
| 45 |
|
loadModule('DesignPattern::TransparentProxy'); |
| 46 |
|
|
| 47 |
|
|
| 48 |
|
/** |
| 49 |
* This class is used to build content |
* This class is used to build content |
| 50 |
* for an MVC controlled page. It instantiates |
* for an MVC controlled page. It instantiates |
| 51 |
* an concrete helper MVC object which does the |
* an concrete helper MVC object which does the |
| 61 |
* Page-implementations here in future... |
* Page-implementations here in future... |
| 62 |
* |
* |
| 63 |
* @author Andreas Motl <andreas.motl@ilo.de> |
* @author Andreas Motl <andreas.motl@ilo.de> |
| 64 |
* @package phpHtmlLib |
* @package org.netfrag.glib |
| 65 |
* @module MVCPage |
* @subpackage Site |
| 66 |
|
* @name Site::WebBlock |
| 67 |
|
* |
| 68 |
|
* @todo x phpHtmlLib::PageWidget-Adapter |
| 69 |
|
* @todo o php-include-file-Adapter |
| 70 |
* |
* |
| 71 |
*/ |
*/ |
|
|
|
|
// TODO: |
|
|
// x phpHtmlLib::PageWidget-Adapter |
|
|
// o php-include-file-Adapter |
|
|
|
|
|
/** |
|
|
* Make sure we have the required parent class |
|
|
*/ |
|
|
|
|
|
//class Site_WebPageMVC extends PageWidget { |
|
|
//loadModule('DesignPattern::MVC'); |
|
|
//class Site_GenericPage extends DesignPattern_MVC { |
|
|
|
|
|
//loadModule('DesignPattern::Proxy'); |
|
|
loadModule('DesignPattern::TransparentProxy'); |
|
|
|
|
| 72 |
//class Site_GenericPage extends DesignPattern_Proxy { |
//class Site_GenericPage extends DesignPattern_Proxy { |
| 73 |
class Site_WebBlock extends DesignPattern_TransparentProxy { |
class Site_WebBlock extends DesignPattern_TransparentProxy { |
| 74 |
|
|
| 107 |
// merge args to object attributes |
// merge args to object attributes |
| 108 |
// FIXME!!! |
// FIXME!!! |
| 109 |
//$this->merge_args($args); |
//$this->merge_args($args); |
| 110 |
|
|
| 111 |
|
/** |
| 112 |
|
* <!-- Autodia --> |
| 113 |
|
* can do: (this is metadata supplied for Autodia, don't delete!) |
| 114 |
|
* $proxy = new Site_Adapter_phpHtmlLib_PageWidget() |
| 115 |
|
* $proxy = new Site_Adapter_php_IncludeFile() |
| 116 |
|
* $proxy = new Site_Adapter_php_Class() |
| 117 |
|
* $proxy = new Site_Adapter_php_Object() |
| 118 |
|
* |
| 119 |
|
*/ |
| 120 |
|
|
| 121 |
// --- Proxy selector (an Adapter acts as a Proxy here to get transparent....) |
// --- Proxy selector (an Adapter acts as a Proxy here to get transparent....) |
| 122 |
|
|