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 |
* |
* |
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'"; |
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) { |
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]) { |
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 |
|
|
637 |
|
|
638 |
} |
} |
639 |
|
|
|
?> |
|
640 |
|
?> |