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