/[cvs]/nfo/php/libs/org.netfrag.glib/DesignPattern/Bridge.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.glib/DesignPattern/Bridge.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by joko, Sun Feb 9 17:07:53 2003 UTC revision 1.5 by joko, Thu Feb 27 18:09:56 2003 UTC
# Line 3  Line 3 
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
# Line 22  Line 25 
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);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed