1 |
<?php |
<?php |
|
|
|
2 |
/** |
/** |
3 |
* This file contains the DesignPattern::Proxy class. |
* This file contains the DesignPattern::Proxy class |
4 |
* |
* |
5 |
* @author Andreas Motl <andreas.motl@ilo.de> |
* @author Andreas Motl <andreas.motl@ilo.de> |
6 |
* @module DesignPattern::Proxy |
* @package org.netfrag.glib |
7 |
|
* @name DesignPattern::Proxy |
8 |
* |
* |
9 |
*/ |
*/ |
10 |
|
|
11 |
/** |
/** |
12 |
|
* Cvs-Log: |
13 |
|
* |
14 |
* $Id$ |
* $Id$ |
15 |
* |
* |
16 |
* $Log$ |
* $Log$ |
17 |
|
* Revision 1.3 2003/03/05 16:10:17 joko |
18 |
|
* updated docu (phpDocumentor testing....) |
19 |
|
* |
20 |
* Revision 1.2 2003/03/05 12:12:42 joko |
* Revision 1.2 2003/03/05 12:12:42 joko |
21 |
* re-renamed methods and privates: _handler becomes _proxy again |
* re-renamed methods and privates: _handler becomes _proxy again |
22 |
* |
* |
28 |
|
|
29 |
|
|
30 |
/** |
/** |
31 |
* --- An attempt to implement some software design patterns... |
* An attempt to implement some software design patterns... |
32 |
* --- ProxyPattern |
* --- ProxyPattern |
33 |
* |
* |
34 |
* --- http://c2.com/cgi-bin/wiki?ProxyPattern |
* @link http://c2.com/cgi-bin/wiki?ProxyPattern |
35 |
* |
* |
36 |
* @author Andreas Motl <andreas.motl@ilo.de> |
* @author Andreas Motl <andreas.motl@ilo.de> |
37 |
|
* @link http://www.netfrag.org/~joko/ |
38 |
|
* |
39 |
* @copyright (c) 2003 - All Rights reserved. |
* @copyright (c) 2003 - All Rights reserved. |
40 |
* @license GNU LGPL (GNU Lesser General Public License) |
* @license GNU LGPL (GNU Lesser General Public License) |
41 |
* |
* @link http://www.gnu.org/licenses/lgpl.txt |
|
* @author-url http://www.netfrag.org/~joko/ |
|
|
* @license-url http://www.gnu.org/licenses/lgpl.txt |
|
42 |
* |
* |
43 |
* @package org.netfrag.glib |
* @package org.netfrag.glib |
44 |
* @module DesignPattern::Proxy |
* @name DesignPattern::Proxy |
45 |
* |
* |
46 |
*/ |
*/ |
47 |
|
|
48 |
/** |
/** |
49 |
* Todo: |
* @todo |
50 |
* |
* <pre> |
51 |
* x DesignPattern::DecoratorProxy (->decorate) |
* x DesignPattern::DecoratorProxy (->decorate) |
52 |
* x DesignPattern::TransparentProxy (->make_transparent) |
* x DesignPattern::TransparentProxy (->make_transparent) |
53 |
* o DesignPattern::MultiProxy (->both???) (diamond inheritance? possible in php?) |
* o DesignPattern::MultiProxy (->both???) (diamond inheritance? possible in php?) |
54 |
* o DesignPattern::GenericAdapterProxy??? |
* o DesignPattern::GenericAdapterProxy??? |
55 |
* o no 'locator/query' or 'type/component' |
* o no 'locator/query' or 'type/component' |
56 |
* o even more generic: just 'adapter_metadata' (-> global adapter registry?) |
* o even more generic: just 'adapter_metadata' (-> global adapter registry?) |
57 |
|
* </pre> |
|
|
|
|
* |
|
58 |
* |
* |
59 |
*/ |
*/ |
60 |
|
|