forked from extern/egroupware
docu update
This commit is contained in:
parent
2b2938d2dd
commit
4ae5eb452b
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user