summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 90b68a2)
raw | patch | inline | side by side (parent: 90b68a2)
author | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 9 Sep 2010 13:53:00 +0000 (13:53 +0000) | ||
committer | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 9 Sep 2010 13:53:00 +0000 (13:53 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19589 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/personal/groupware/class_groupware.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/personal/groupware/class_groupware.inc b/gosa-plugins/groupware/personal/groupware/class_groupware.inc
index a6611657dee7cafc76bad70d09c71d989dc1db4d..876374fa4155ffac2699ce293dd0b23dd248a242 100644 (file)
*/
function rpcExec($function)
{
- echo "Calling function:".$function."<br>";
$params = func_get_args();
unset($params[0]);
+ echo "Calling function:".$function." Params".var_dump($params)."<br>";
$rpc = $this->config->getRpcHandle();
$res = call_user_func_array(array($rpc,$function),array_values($params));
$features = array();
$featureReq = array(
"primaryMail" => array(
- 'acctGetPrimaryMail'),
+ 'acctGetPrimaryMailAddress'),
"quotaUsage" => array(
'acctGetQuota'),
"quotaSize" => array(
private static $gwFeatures = array(
- "primaryAddress" => array( "get"=>"acctGetUser",
- "save"=>"acctSetUser",
- "delete"=>"acctDelUser")
+ "primaryMail" => array( "get"=>"gwAcctGetPrimaryMailAddress",
+ "save"=>"gwAcctSetPrimaryMailAddress")
);
* check if feture available
* get and return the result.
*/
-
- if($this->gwFeatureAvailable($feature)){
- $result = $this->availableMethods = $this->groupwarePluginRef->rpcExec('gwGetCapabilities');
+ $function = groupware_dao::$gwFeatures[$feature]["get"];
+ if(true){
+ $valueArray = array_merge(array($function), $valueArray);
+ $result = call_user_func_array(array($this->groupwarePluginRef, 'rpcExec'), $valueArray);
return $result;
}
+ else{
+ echo "Feature not available.";
+ }
+ //Throw an error?
return false;
}
public function del($feature, $valueArray){
public function getComprehensiverUser($uid){
//$hi = $this->groupwarePluginRef->rpcExec('gwGetCapabilities');
if($this->groupwarePluginRef->isFeatureEnabled("primaryMail")){
- $pMail = $this->groupwarePluginRef->rpcExec("gwAcctGetPrimaryMailAddress",$uid);
+ $pMail = $this->get("primaryMail", array($uid));
+
+ //= $this->groupwarePluginRef->rpcExec("gwAcctGetPrimaryMailAddress",$uid);
echo "pMail for $uid<pre>";
print_r($pMail);
echo "</pre>";