docu update

This commit is contained in:
Ralf Becker 2013-05-10 17:21:14 +00:00
parent 2b2938d2dd
commit 4ae5eb452b

View File

@ -1,6 +1,6 @@
<?php
/**
* ajaxpreferences
* EGroupware - set presonal preferences via ajax
*
* @package preferences
* @copyright Lingewoud B.V.
@ -18,19 +18,19 @@ class ajaxpreferences
/**
* storeEGWPref
*
* @param mixed $repository egroupware preferences repository
* @param mixed $key key to preference
* @param mixed $appname appname
* @param mixed $key name of preference
* @param mixed $value new value
* @access public
* @return mixed returns null when no erro, else return error message.
*/
function storeEGWPref($repository,$key,$value)
function storeEGWPref($appname,$key,$value)
{
$response = new xajaxResponse();
$GLOBALS['egw']->preferences->read_repository();
$GLOBALS['egw']->preferences->change($repository,$key,$value);
$GLOBALS['egw']->preferences->add($appname,$key,$value);
$GLOBALS['egw']->preferences->save_repository(True);
//$response->addAlert(__METHOD__."('$repository','$key','$value')");
//$response->addAlert(__METHOD__."('$appname','$key','$value')");
return $response->getXML();
}
}