summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e102c0c)
raw | patch | inline | side by side (parent: e102c0c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 May 2011 09:33:56 +0000 (09:33 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 May 2011 09:33:56 +0000 (09:33 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20801 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_remoteObject.inc | patch | blob | history |
index 224081a4525edcb8f35aa677504b5ae25e7a360f..c3e241f08c667abda62c36a74827d28834b714d5 100644 (file)
private $object_id;
private $ref_id;
private $values;
+ private $success;
+ private $lastError;
private $cache = array();
// Forward to the call to the backend.
if(in_array($name, $this->methods)){
+ $this->lastError = "";
+ $this->success = TRUE;
$fArgs = array();
$fArgs[] = $this->ref_id;
$fArgs[] = $name;
$res = call_user_func_array(array($this->rpcHandle,"dispatchObjectMethod"), $fArgs);
if(!$this->rpcHandle->success()){
- trigger_error($this->rpcHandle->get_error());
+ $this->success = FALSE;
+ $this->lastError = $this->rpcHandle->get_error();
+ trigger_error($this->lastError);
}
return($res);
}
+ function success()
+ {
+ return($this->success);
+ }
+
+
/*!\brief A catch all method for setter calls.
*
* @param String The name of the property to set.