| 14 |
* $Id$ |
* $Id$ |
| 15 |
* |
* |
| 16 |
* $Log$ |
* $Log$ |
| 17 |
|
* Revision 1.26 2003/12/14 01:53:42 jonen |
| 18 |
|
* implemented 'SELECT' mode for selecting existing object-refereneces as child-nodes |
| 19 |
|
* |
| 20 |
|
* Revision 1.25 2003/11/17 18:01:03 jonen |
| 21 |
|
* bugfix: php cannot use perl-syntax!! ;-) |
| 22 |
|
* |
| 23 |
* Revision 1.23 2003/07/14 10:02:32 jonen |
* Revision 1.23 2003/07/14 10:02:32 jonen |
| 24 |
* removed debug dumper |
* removed debug dumper |
| 25 |
* |
* |
| 760 |
$query_args[nodename] = $this->_query[ident]; |
$query_args[nodename] = $this->_query[ident]; |
| 761 |
$query_args[parent][guid] = $this->_query[parent][guid]; |
$query_args[parent][guid] = $this->_query[parent][guid]; |
| 762 |
$query_args[parent][nodename] = $this->_query[parent][nodename]; |
$query_args[parent][nodename] = $this->_query[parent][nodename]; |
| 763 |
|
} elseif($this->_query[parent]) { |
| 764 |
|
$query_args[guid] = $this->_query[ident]; |
| 765 |
|
$query_args[nodename] = $this->_query[nodename]; |
| 766 |
|
$query_args[parent][guid] = $this->_query[parent][guid]; |
| 767 |
|
$query_args[parent][nodename] = $this->_query[parent][nodename]; |
| 768 |
} else { |
} else { |
| 769 |
$query_args[guid] = $this->_query[ident]; |
$query_args[guid] = $this->_query[ident]; |
| 770 |
$query_args[nodename] = $this->_query[nodename]; |
$query_args[nodename] = $this->_query[nodename]; |
| 771 |
|
// 2003-11-17 NEW: use expand flag for real obj expand at backend |
| 772 |
|
if ($this->_query[expand]) {$query_args[expand] = 1; } |
| 773 |
} |
} |
| 774 |
|
//print "generic_source->debug: args " . Dumper($query_args) . "<br>"; |
| 775 |
break; |
break; |
| 776 |
case 'list': |
case 'list': |
| 777 |
if (!$this->_query[nodename]) { |
if (!$this->_query[nodename]) { |
| 778 |
$msg = "_query[vartype] == 'objects' requires _query[nodename]"; |
$msg = "_query[vartype] == 'objects' requires _query[nodename]"; |
| 779 |
user_error($msg_prefix . $msg); |
user_error($msg_prefix . $msg); |
| 780 |
|
} elseif($this->_query[parent]) { |
| 781 |
|
//if($this->_query[nodename]) { $query_args[node_class] = $this->_query[nodename]; } |
| 782 |
|
//if($this->_query['hash_key']) { $query_args['hash_key'] = $this->_query['hash_key']; } |
| 783 |
|
//$query_args[nodename] = $this->_query[ident]; |
| 784 |
|
$query_args[parent][guid] = $this->_query[parent][guid]; |
| 785 |
|
$query_args[parent][nodename] = $this->_query[parent][nodename]; |
| 786 |
} |
} |
| 787 |
//array_push($query_args, $this->_query[nodename]); |
//array_push($query_args, $this->_query[nodename]); |
| 788 |
$query_args[nodename] = $this->_query[nodename]; |
$query_args[nodename] = $this->_query[nodename]; |
| 819 |
$query_args[action] = $this->_query[action]; |
$query_args[action] = $this->_query[action]; |
| 820 |
} elseif ($this->_query[action] == 'create') { |
} elseif ($this->_query[action] == 'create') { |
| 821 |
$query_args[action] = $this->_query[action]; |
$query_args[action] = $this->_query[action]; |
| 822 |
|
} elseif ($this->_query[action] == 'select') { |
| 823 |
|
$query_args[action] = $this->_query[action]; |
| 824 |
} |
} |
| 825 |
|
|
| 826 |
$args = array( |
$args = array( |