| 14 |
* $Id$ |
* $Id$ |
| 15 |
* |
* |
| 16 |
* $Log$ |
* $Log$ |
| 17 |
|
* Revision 1.29 2005/08/11 14:05:42 jonen |
| 18 |
|
* + added arguments to query |
| 19 |
|
* |
| 20 |
|
* Revision 1.28 2004/10/07 14:11:28 jonen |
| 21 |
|
* + added HACK related to DataList-filters which are mapped to backend now (page-control!) |
| 22 |
|
* |
| 23 |
* Revision 1.27 2004/06/15 12:50:48 joko |
* Revision 1.27 2004/06/15 12:50:48 joko |
| 24 |
* disabled caching in "datasource_handler_call" |
* disabled caching in "datasource_handler_call" |
| 25 |
* |
* |
| 447 |
*/ |
*/ |
| 448 |
|
|
| 449 |
//$this->set_locator( $locator ); |
//$this->set_locator( $locator ); |
| 450 |
|
//print "query: " . Dumper($query) . "<br>"; |
| 451 |
$this->set_query( $query ); |
$this->set_query( $query ); |
| 452 |
|
|
| 453 |
|
|
| 797 |
//array_push($query_args, $this->_query[nodename]); |
//array_push($query_args, $this->_query[nodename]); |
| 798 |
$query_args[nodename] = $this->_query[nodename]; |
$query_args[nodename] = $this->_query[nodename]; |
| 799 |
if($this->_query[list_meta]) { $query_args[list_meta] = $this->_query[list_meta]; } |
if($this->_query[list_meta]) { $query_args[list_meta] = $this->_query[list_meta]; } |
| 800 |
|
if(is_array($this->_query[owner])) { $query_args[owner] = $this->_query[owner]; } |
| 801 |
break; |
break; |
| 802 |
case 'tree': |
case 'tree': |
| 803 |
/* |
/* |
| 923 |
|
|
| 924 |
// TODO: ... = $this->poll_handler_result and $this->get_handler_result |
// TODO: ... = $this->poll_handler_result and $this->get_handler_result |
| 925 |
$proxy = $this->get_proxy(); |
$proxy = $this->get_proxy(); |
| 926 |
$this->_result = $proxy->getResult(); |
//HACK 2004-10-07: page-filter done by backend now, |
| 927 |
|
// before offset values filled with empty arrays |
| 928 |
|
//$this->_result = $proxy->getResult(); |
| 929 |
|
$result = $proxy->getResult(); |
| 930 |
|
if($result['total_rows']) { |
| 931 |
|
// debug |
| 932 |
|
//print "result: " . Dumper($result); |
| 933 |
|
$this->_result_count = $result['total_rows']; |
| 934 |
|
if($result[offset]) { |
| 935 |
|
$result_new = array(); |
| 936 |
|
for($i=0;$i<$result[offset];$i++) { |
| 937 |
|
array_push($result_new, array()); |
| 938 |
|
} |
| 939 |
|
foreach($result['payload'] as $key => $value) { |
| 940 |
|
array_push($result_new, $value); |
| 941 |
|
} |
| 942 |
|
$this->_result = $result_new; |
| 943 |
|
} else { |
| 944 |
|
$this->_result = $result['payload']; |
| 945 |
|
} |
| 946 |
|
} else { |
| 947 |
|
$this->_result = $result; |
| 948 |
|
$this->_result_count = sizeof($this->_result); |
| 949 |
|
} |
| 950 |
|
//print "result: " . Dumper($this->_result); |
| 951 |
//print "result: " . Dumper($this->_result); exit; |
//print "result: " . Dumper($this->_result); exit; |
| 952 |
|
|
|
$this->_result_count = sizeof($this->_result); |
|
| 953 |
|
|
| 954 |
// trace |
// trace |
| 955 |
//if (constants::get('VERBOSE') && $this->_debug[notice]) { |
//if (constants::get('VERBOSE') && $this->_debug[notice]) { |