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

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

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

revision 1.1 by joko, Mon Mar 3 22:06:46 2003 UTC revision 1.2 by joko, Wed Mar 5 12:14:02 2003 UTC
# Line 5  Line 5 
5   *    $Id$   *    $Id$
6   * -------------------------------------------------------------------------   * -------------------------------------------------------------------------
7   *    $Log$   *    $Log$
8     *    Revision 1.2  2003/03/05 12:14:02  joko
9     *    renamed method
10     *    constructor argument expansion
11     *
12   *    Revision 1.1  2003/03/03 22:06:46  joko   *    Revision 1.1  2003/03/03 22:06:46  joko
13   *    refactored from Data::Driver::Proxy   *    refactored from Data::Driver::Proxy
14   *   *
# Line 185  class DesignPattern_RemoteProxy extends Line 189  class DesignPattern_RemoteProxy extends
189      logp(get_class($this) . "->new()", PEAR_LOG_INFO);      logp(get_class($this) . "->new()", PEAR_LOG_INFO);
190      global $proxy;      global $proxy;
191    
192        // 2003-03-05 - modified constructor
193        // expand objectId
194        if (is_array($objectId)) {
195          $options = $objectId[1];
196          $objectId = $objectId[0];
197        }
198    
199      // trace      // trace
200        //print Dumper($objectId, $options);        //print Dumper($objectId, $options);
201    
# Line 193  class DesignPattern_RemoteProxy extends Line 204  class DesignPattern_RemoteProxy extends
204        $this->_init_caching();        $this->_init_caching();
205        $this->_init_load();        $this->_init_load();
206    
207        //print Dumper($this);
208    
209    }    }
210    
211    function _init_meta_options( $objectId="", $options = array() ) {    function _init_meta_options( $objectId="", $options = array() ) {
# Line 217  class DesignPattern_RemoteProxy extends Line 230  class DesignPattern_RemoteProxy extends
230    
231      if ($this->meta[remote]) {      if ($this->meta[remote]) {
232        //$this->backend = mkObject('Data::Driver::RPC::Remote', $this->meta[rpcinfo]);        //$this->backend = mkObject('Data::Driver::RPC::Remote', $this->meta[rpcinfo]);
233        $this->backend = mkObject('DataSource::Proxy::XMLRPC', $this->meta[rpcinfo]);        $this->backend = php::mkComponent('DataSource::Proxy::XMLRPC', $this->meta[rpcinfo]);
234      }      }
235    }    }
236    
# Line 275  class DesignPattern_RemoteProxy extends Line 288  class DesignPattern_RemoteProxy extends
288    }      }  
289    */    */
290    
291    function getAttributes() {    function getResult() {
292      if (!$this->meta[decoded]) {      if (!$this->meta[decoded]) {
293        $this->_decode();        $this->_decode();
294        $this->_saveState();        $this->_saveState();

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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