Hi Nathan,
unfortunately all core apps (calendar, addressbook, etc) use phpgwapi
instead of their own appname. That’s an old historic decision long
before EGroupware, but I believe not worth changing.
To store/change a config value there are two possibilities currently:
a) using new static call: config::save_value($name,$value,$app);
b) instanciating config class for a given app:
$config = new config($app);
$config->read_repository(); // <-- important!
$config->save_value($name,$value);
$config->save_repository();
As apps using $app=‘phpgwapi’, usually not load the values via config
class directly ($conf = config::read(‘phpgwapi’); $conf[$name]), but use
$GLOBALS[‘egw_info’][‘server’][$name], you have to call
$GLOBALS[‘egw’]->invalidate_session_cache();, if you use a) (b) does it
automatic for $app == ‘phpgwapi’.
Ralf
Nathan Gray schrieb:
I’m looking for information about how to set a new config value for calendar.
I don’t understand why the config section of admin has been hardcoded
to set calendar config settings to phpgwapi.
What is the correct way to add a config value for calendar?
Nathan
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller,
Gudrun Müller, Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers