1 |
<? |
<? |
2 |
/** |
/** |
3 |
* This file contains the DesignPattern::AdapterProxy class |
* This file contains the DesignPattern::AdapterProxy namespace. |
|
* |
|
|
* It combines features from both the standard Proxy |
|
|
* and the TransparentProxy adding some Adapter features |
|
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 |
7 |
* @name DesignPattern::AdapterProxy |
* @name DesignPattern::AdapterProxy |
8 |
|
* @filesource |
9 |
* |
* |
10 |
*/ |
* <b>Cvs-Log:</b> |
11 |
|
* |
12 |
/** |
* <pre> |
13 |
* $Id$ |
* $Id$ |
14 |
* |
* |
15 |
* $Log$ |
* $Log$ |
16 |
|
* Revision 1.7 2003/03/05 17:13:17 joko |
17 |
|
* updated docu (phpDocumentor testing....) |
18 |
|
* |
19 |
|
* Revision 1.6 2003/03/05 17:02:22 joko |
20 |
|
* updated docu (phpDocumentor testing....) |
21 |
|
* |
22 |
|
* Revision 1.5 2003/03/05 16:45:58 joko |
23 |
|
* updated docu (phpDocumentor testing....) |
24 |
|
* |
25 |
|
* Revision 1.4 2003/03/05 16:32:18 joko |
26 |
|
* updated docu (phpDocumentor testing....) |
27 |
|
* |
28 |
* Revision 1.3 2003/03/05 16:10:17 joko |
* Revision 1.3 2003/03/05 16:10:17 joko |
29 |
* updated docu (phpDocumentor testing....) |
* updated docu (phpDocumentor testing....) |
30 |
* |
* |
36 |
* |
* |
37 |
* Revision 1.1 2003/03/03 22:11:08 joko |
* Revision 1.1 2003/03/03 22:11:08 joko |
38 |
* + initial commit |
* + initial commit |
39 |
|
* </pre> |
40 |
* |
* |
41 |
* |
* |
42 |
*/ |
*/ |
43 |
|
// cvs-log |
44 |
|
|
45 |
|
|
46 |
/** |
/** |
|
* This tries to implement some DesignPattern |
|
|
* |
|
|
* |
|
|
* @author Andreas Motl <andreas.motl@ilo.de> |
|
|
* @link http://www.netfrag.org/~joko/ |
|
|
* @copyright (c) 2003 - All Rights reserved. |
|
|
* @license GNU LGPL (GNU Lesser General Public License) |
|
|
* @link http://www.gnu.org/licenses/lgpl.txt |
|
|
* |
|
|
* @package org.netfrag.glib |
|
|
* @name DesignPattern::AdapterProxy |
|
|
* @filesource |
|
|
* |
|
|
*/ |
|
|
|
|
|
/** |
|
47 |
* Make sure we have the required parent class |
* Make sure we have the required parent class |
48 |
*/ |
*/ |
49 |
loadModule('DesignPattern::TransparentProxy'); |
loadModule('DesignPattern::TransparentProxy'); |
50 |
|
|
51 |
|
|
52 |
/** |
/** |
53 |
* @todo Learn TransparentProxy to do procedural calls instead |
* This tries to combine some DesignPatterns.... |
54 |
* of instantiating a component and even less code could be in here..... |
* |
55 |
|
* It combines features from both the standard Proxy |
56 |
|
* and the TransparentProxy adding some Adapter features. |
57 |
|
* |
58 |
|
* @name DesignPattern::AdapterProxy |
59 |
|
* @subpackage DesignPattern |
60 |
|
* @package org.netfrag.glib |
61 |
|
* <br> |
62 |
|
* @link http://www.gnu.org/licenses/lgpl.txt |
63 |
|
* @license GNU LGPL (GNU Lesser General Public License) |
64 |
|
* <br> |
65 |
|
* @link http://www.netfrag.org/~joko/ |
66 |
|
* @copyright (c) 2003 - All Rights reserved. |
67 |
|
* @author Andreas Motl <andreas.motl@ilo.de> |
68 |
|
* |
69 |
|
* @todo Learn TransparentProxy to do procedural calls ... <br> |
70 |
|
* ... instead of instantiating a component and even less code could be in here<br> |
71 |
* benefit: the TransparentProxy would be become even more powerful |
* benefit: the TransparentProxy would be become even more powerful |
72 |
* eeäähhh, to the master Proxy it goes......!!! This one calls the handler(s)! |
* eeäähhh, to the master Proxy it goes......!!! This one calls the handler(s)! |
73 |
* |
* |
74 |
*/ |
*/ |
|
|
|
|
|
|
75 |
class DesignPattern_AdapterProxy extends DesignPattern_TransparentProxy { |
class DesignPattern_AdapterProxy extends DesignPattern_TransparentProxy { |
76 |
|
|
77 |
var $_adapter; |
var $_adapter; |