| 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 |
* |
* |
| 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]; |
| 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 |
} |
} |
| 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; |