mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
docu update
This commit is contained in:
parent
2b2938d2dd
commit
4ae5eb452b
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user