/[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.15 by joko, Fri Apr 11 01:32:21 2003 UTC revision 1.18 by jonen, Thu May 13 19:17:55 2004 UTC
# Line 18  Line 18 
18   *    $Id$   *    $Id$
19   * -------------------------------------------------------------------------   * -------------------------------------------------------------------------
20   *    $Log$   *    $Log$
21     *    Revision 1.18  2004/05/13 19:17:55  jonen
22     *    + bugfix: utf8 conversion was missing at some backend-calls
23     *
24     *    Revision 1.17  2003/07/14 10:05:23  jonen
25     *    bugfix: added *needed* function 'getAttributes'
26     *
27     *    Revision 1.16  2003/07/02 13:51:38  jonen
28     *    removed debug dumper
29     *
30   *    Revision 1.15  2003/04/11 01:32:21  joko   *    Revision 1.15  2003/04/11 01:32:21  joko
31   *    renamed logging function   *    renamed logging function
32   *   *
# Line 393  class DesignPattern_RemoteProxy extends Line 402  class DesignPattern_RemoteProxy extends
402      $this->attributes = $data;      $this->attributes = $data;
403    }    }
404    
405      function getAttributes() {
406        return $this->attributes;
407      }
408    
409    function flushProxy() {    function flushProxy() {
410          connectdb();          connectdb();
411      $sql = "DELETE FROM f_proxy WHERE oid='$this->objectId'";      $sql = "DELETE FROM f_proxy WHERE oid='$this->objectId'";
# Line 496  class DesignPattern_RemoteProxy extends Line 509  class DesignPattern_RemoteProxy extends
509          }          }
510          php::log(get_class($this) . "->_loadRemote: getObjectByGuid", PEAR_LOG_DEBUG);          php::log(get_class($this) . "->_loadRemote: getObjectByGuid", PEAR_LOG_DEBUG);
511          $args = array( guid => $this->objectId, classname => $this->meta[classname] );          $args = array( guid => $this->objectId, classname => $this->meta[classname] );
512          $result = $this->backend->send('getObjectByGuid', $args );          $result = $this->backend->send('getObjectByGuid', $args, array( utf8 => 1)  );
513    
514        } elseif ($this->meta[oid]) {        } elseif ($this->meta[oid]) {
515          if (!$this->objectId) {          if (!$this->objectId) {
# Line 504  class DesignPattern_RemoteProxy extends Line 517  class DesignPattern_RemoteProxy extends
517            return;            return;
518          }          }
519          php::log(get_class($this) . "->_loadRemote: getObject", PEAR_LOG_DEBUG);          php::log(get_class($this) . "->_loadRemote: getObject", PEAR_LOG_DEBUG);
520          $result = $this->backend->send('getObject', $this->objectId);          $result = $this->backend->send('getObject', $this->objectId, array( utf8 => 1) );
521    
522        } elseif ($this->meta[key]) {        } elseif ($this->meta[key]) {
523          if (!$this->meta[command]) {          if (!$this->meta[command]) {
# Line 519  class DesignPattern_RemoteProxy extends Line 532  class DesignPattern_RemoteProxy extends
532          */          */
533          //php::log(get_class($this) . "->_loadRemote: $this->meta[command](" . join(' ', $this->meta[query]) . ")", PEAR_LOG_DEBUG);          //php::log(get_class($this) . "->_loadRemote: $this->meta[command](" . join(' ', $this->meta[query]) . ")", PEAR_LOG_DEBUG);
534          //print Dumper(array($this->meta[command], $this->meta[query]));          //print Dumper(array($this->meta[command], $this->meta[query]));
535          $result = $this->backend->send($this->meta[command], $this->meta[query]);          $result = $this->backend->send($this->meta[command], $this->meta[query], array( utf8 => 1) );
536                    
537        }        }
538    
# Line 624  function draw_error_box($status) { Line 637  function draw_error_box($status) {
637    
638  }  }
639    
 ?>  
640    ?>

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.18

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