3 |
// $Id$ |
// $Id$ |
4 |
// --------------------------------------------------------------------------- |
// --------------------------------------------------------------------------- |
5 |
// $Log$ |
// $Log$ |
6 |
|
// Revision 1.5 2003/02/27 18:09:56 joko |
7 |
|
// mungled mechanism to shift in and pass on arguments |
8 |
|
// |
9 |
// Revision 1.4 2003/02/09 17:07:53 joko |
// Revision 1.4 2003/02/09 17:07:53 joko |
10 |
// + minor update related to new log level constants |
// + minor update related to new log level constants |
11 |
// + generic argument merger to show full constructor args |
// + generic argument merger to show full constructor args |
25 |
|
|
26 |
class DesignPattern_Bridge extends DesignPattern_Logger { |
class DesignPattern_Bridge extends DesignPattern_Logger { |
27 |
|
|
28 |
function DesignPattern_Bridge($classname, $attributes = null) { |
function DesignPattern_Bridge() { |
29 |
|
|
30 |
|
$arg_list = func_get_args(); |
31 |
|
$classname = array_shift($arg_list); |
32 |
|
|
33 |
|
// expand single argument |
34 |
|
if (count($arg_list) == 1) { |
35 |
|
$arg_list = $arg_list[0]; |
36 |
|
} |
37 |
|
$attributes = &$arg_list; |
38 |
|
|
39 |
|
//print Dumper($attributes); |
40 |
|
|
41 |
//print "init_bridge!<br>"; |
//print "init_bridge!<br>"; |
42 |
//return $this->_mkInstance($classname, $attributes); |
//return $this->_mkInstance($classname, $attributes); |
43 |
//$this->_init_logger("../core/var/log/logfile.txt", 1); |
//$this->_init_logger("../core/var/log/logfile.txt", 1); |