1 |
<?php |
2 |
|
3 |
/** |
4 |
* This file contains the DesignPattern::TransparentProxy class. |
5 |
* |
6 |
* @author Andreas Motl <andreas.motl@ilo.de> |
7 |
* @module DesignPattern::TransparentProxy |
8 |
* |
9 |
*/ |
10 |
|
11 |
/** |
12 |
* $Id: TransparentProxy.php,v 1.1 2003/03/03 22:06:06 joko Exp $ |
13 |
* |
14 |
* $Log: TransparentProxy.php,v $ |
15 |
* Revision 1.1 2003/03/03 22:06:06 joko |
16 |
* enhancement to former |
17 |
* |
18 |
* |
19 |
*/ |
20 |
|
21 |
|
22 |
/** |
23 |
* --- An attempt to implement some software design patterns... |
24 |
* --- TransparentProxy |
25 |
* |
26 |
* --- http://c2.com/cgi-bin/wiki?ProxyPattern |
27 |
* |
28 |
* @author Andreas Motl <andreas.motl@ilo.de> |
29 |
* @copyright (c) 2003 - All Rights reserved. |
30 |
* @license GNU LGPL (GNU Lesser General Public License) |
31 |
* |
32 |
* @author-url http://www.netfrag.org/~joko/ |
33 |
* @license-url http://www.gnu.org/licenses/lgpl.txt |
34 |
* |
35 |
* @package org.netfrag.glib |
36 |
* @module DesignPattern::TransparentProxy |
37 |
* |
38 |
*/ |
39 |
|
40 |
|
41 |
/** |
42 |
* Load required modules: |
43 |
* |
44 |
*/ |
45 |
loadModule('DesignPattern::Proxy'); |
46 |
|
47 |
class DesignPattern_TransparentProxy extends DesignPattern_Proxy { |
48 |
|
49 |
/* |
50 |
function create_handler() { |
51 |
$proxy = php::mkComponent( $this->get_component_name(), $this->get_component_options() ); |
52 |
$this->set_handler( $proxy ); |
53 |
$this->make_transparent(); |
54 |
} |
55 |
*/ |
56 |
|
57 |
function make_transparent() { |
58 |
//print "Trans<br/>"; |
59 |
$this = $this->get_proxy(); |
60 |
} |
61 |
|
62 |
} |
63 |
|
64 |
?> |