/[cvs]/nfo/php/libs/org.netfrag.glib/DataSource/Generic.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.glib/DataSource/Generic.php

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

revision 1.21 by jonen, Sat May 10 18:14:50 2003 UTC revision 1.23 by jonen, Mon Jul 14 10:02:32 2003 UTC
# Line 14  Line 14 
14   * $Id$   * $Id$
15   *   *
16   * $Log$   * $Log$
17     * Revision 1.23  2003/07/14 10:02:32  jonen
18     * removed debug dumper
19     *
20     * Revision 1.22  2003/06/06 04:25:45  joko
21     * fix: query args get encapsulated once more
22     *
23   * Revision 1.21  2003/05/10 18:14:50  jonen   * Revision 1.21  2003/05/10 18:14:50  jonen
24   * + implements 'create' of item (query mapping part)   * + implements 'create' of item (query mapping part)
25   *   *
# Line 779  class DataSource_Generic extends DesignP Line 785  class DataSource_Generic extends DesignP
785              }              }
786                            
787              // filter???              // filter???
788              print "Filter: " . Dumper($this->_query[filter]) . "<br>";              //print "Filter: " . Dumper($this->_query[filter]) . "<br>";
789              if ($this->_query[filter]) {              if ($this->_query[filter]) {
790                $query_args[filter] = $this->_query[filter];                $query_args[filter] = $this->_query[filter];
791              }              }
792                            
793              // dispatch action              // dispatch action
794              print "Action: " . $this->_query[action] . "<br>";              //print "Action: " . $this->_query[action] . "<br>";
795              if ($this->_query[action] == 'write') {              if ($this->_query[action] == 'write') {
796               $query_args[action] = $this->_query[action];               $query_args[action] = $this->_query[action];
797               $query_args[data] = $this->_query[data];               $query_args[data] = $this->_query[data];
# Line 811  class DataSource_Generic extends DesignP Line 817  class DataSource_Generic extends DesignP
817            // remoteMethod            // remoteMethod
818            case 'method':            case 'method':
819              $command = $this->_query[method];              $command = $this->_query[method];
820              $args = $this->_query[args];              //$args = $this->_query[args];
821                // FIX
822                $args = array( $this->_query[args] );
823              break;              break;
824    
825          }          }
# Line 820  class DataSource_Generic extends DesignP Line 828  class DataSource_Generic extends DesignP
828          // FIXME: bad behaviour?          // FIXME: bad behaviour?
829          if (!is_array($args)) { $args = array( $args ); }          if (!is_array($args)) { $args = array( $args ); }
830                    
831            //print Dumper($args);
832            
833          /*          /*
834          $this->_query[rpc_command] = $command;          $this->_query[rpc_command] = $command;
835          $this->_query[rpc_args] = $command;          $this->_query[rpc_args] = $command;

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.23

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