8 |
* @author Andreas Motl <andreas.motl@ilo.de> |
* @author Andreas Motl <andreas.motl@ilo.de> |
9 |
* @package org.netfrag.glib |
* @package org.netfrag.glib |
10 |
* @name DesignPattern::AdapterProxy |
* @name DesignPattern::AdapterProxy |
11 |
|
* @filesource |
12 |
* |
* |
13 |
*/ |
* |
14 |
|
* |
15 |
/** |
* <b>Cvs-Log:</b> |
16 |
|
* |
17 |
|
* <pre> |
18 |
* $Id$ |
* $Id$ |
19 |
* |
* |
20 |
* $Log$ |
* $Log$ |
21 |
|
* Revision 1.4 2003/03/05 16:32:18 joko |
22 |
|
* updated docu (phpDocumentor testing....) |
23 |
|
* |
24 |
* Revision 1.3 2003/03/05 16:10:17 joko |
* Revision 1.3 2003/03/05 16:10:17 joko |
25 |
* updated docu (phpDocumentor testing....) |
* updated docu (phpDocumentor testing....) |
26 |
* |
* |
32 |
* |
* |
33 |
* Revision 1.1 2003/03/03 22:11:08 joko |
* Revision 1.1 2003/03/03 22:11:08 joko |
34 |
* + initial commit |
* + initial commit |
35 |
|
* </pre> |
36 |
* |
* |
37 |
* |
* |
38 |
*/ |
*/ |
39 |
|
|
40 |
|
|
41 |
/** |
/** |
42 |
|
* Make sure we have the required parent class |
43 |
|
*/ |
44 |
|
loadModule('DesignPattern::TransparentProxy'); |
45 |
|
|
46 |
|
|
47 |
|
/** |
48 |
* This tries to implement some DesignPattern |
* This tries to implement some DesignPattern |
49 |
* |
* |
50 |
* |
* |
56 |
* |
* |
57 |
* @package org.netfrag.glib |
* @package org.netfrag.glib |
58 |
* @name DesignPattern::AdapterProxy |
* @name DesignPattern::AdapterProxy |
|
* @filesource |
|
59 |
* |
* |
|
*/ |
|
|
|
|
|
/** |
|
|
* Make sure we have the required parent class |
|
|
*/ |
|
|
loadModule('DesignPattern::TransparentProxy'); |
|
|
|
|
|
|
|
|
/** |
|
60 |
* @todo Learn TransparentProxy to do procedural calls instead |
* @todo Learn TransparentProxy to do procedural calls instead |
61 |
* of instantiating a component and even less code could be in here..... |
* of instantiating a component and even less code could be in here..... |
62 |
* benefit: the TransparentProxy would be become even more powerful |
* benefit: the TransparentProxy would be become even more powerful |
63 |
* 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)! |
64 |
* |
* |
65 |
*/ |
*/ |
|
|
|
|
|
|
66 |
class DesignPattern_AdapterProxy extends DesignPattern_TransparentProxy { |
class DesignPattern_AdapterProxy extends DesignPattern_TransparentProxy { |
67 |
|
|
68 |
var $_adapter; |
var $_adapter; |