Commit Graph

38 Commits

Author SHA1 Message Date
Ralf Becker
3e538116c9 add some check if cached config does not meet basic requirements, recreate it then 2012-10-01 09:23:51 +00:00
Ralf Becker
588950ae29 fixed PHP Strict Standards: config::save_value must be declared static to be used static (no longer allowing non-static usage!) 2012-07-14 08:53:44 +00:00
Ralf Becker
0a5e2426d1 fixed wrong timing in serialization of array, when storing arrays as config values, probably also fixing last issue of community bug #3059 2011-10-20 11:41:20 +00:00
Ralf Becker
6ff4534aa6 disable custom field tab, if no custom fields for specific queue/type2 2011-10-14 13:54:02 +00:00
Ralf Becker
5cf9f585c2 fixed not working storing of config for an app, which not yet has a config 2011-10-13 06:19:14 +00:00
Ralf Becker
2ed73047df fixed serveral issues around cached config:
- changing config in setup did not update or unset the cache --> instance was NOT using it
- new installs failed, because cache was not configured
- cache command to not configured cache gave fatal error, now they throw a (catchable) exception
2011-09-13 09:25:25 +00:00
Ralf Becker
be6fd87783 - sending EGroupware configuration (non-sensible stuff) to browser and make it available via egw.config(_name, _app="phpgwapi")
- sending link-registry in the same file
- used javascript file uses etag to ensure there's no need to load it on each request
2011-08-26 16:27:57 +00:00
Ralf Becker
389486793d - config is now cached on instance level
- arrays in $GLOBALS[egw_info][server] are now automatically serialized and unserialized
- new static method to check if user is export-limit excepted
--> saves to query it on each request (for non-phpgwapi, which was already cached in the session)
2011-08-26 13:50:20 +00:00
Ralf Becker
e5552d1b45 fixed not working non-static use after Jörgs commit ($app was NOT set anymore) 2010-06-16 11:02:24 +00:00
Jörg Lehrke
10b93660ef Fix config::save_value static call issue 2010-06-16 08:34:15 +00:00
Klaus Leithoff
a49344abf1 port Christian Binders patch to handle config values as well (e.g.:customfields): little helper for prefs if unserialize failed - this can happen if the pref comes from an installation with another charset than the current system charset 2009-11-02 10:55:30 +00:00
Ralf Becker
ba5d176520 "fix for bug #1796: Various config values not stored
now only unset or empty strings are not stored, but 0 is"
2008-10-27 15:11:15 +00:00
Nathan Gray
540901e9c7 Fix config to correctly remove empty values 2008-04-11 13:38:37 +00:00
Ralf Becker
12cdb8820d remove empty or null values from the config-table 2008-03-13 19:28:44 +00:00
Ralf Becker
e03425c90b fixed an error with the initialisation of the static $db var (under LDAP and php4-restore sessions) and or by using the global db object without cloning it 2008-03-06 11:43:45 +00:00
Ralf Becker
7da0cd0dd0 fixed static use of config::save_value() 2008-02-29 07:36:29 +00:00
Nathan Gray
cc210e9dae config->save_value() was overwriting the cached array values with a single value 2008-02-22 16:42:20 +00:00
Ralf Becker
2722e59477 reworked the config class to:
- have a static method config::read($app) to read the config of an app, no need to instanciate it
- added some caching to not read the config more then once per request
- moved the get_customfields and get_content_type methods here from admin.customfields
- private custom fields only visible for certain users/groups (in addressbook only for the moment)
2008-01-19 05:25:37 +00:00
Ralf Becker
374749cdde fixed not working save_value() method, if read_repository was not called 2006-08-17 14:32:25 +00:00
Ralf Becker
d8932b3ad3 calling invalidate_session_cache only if it exists (setup does not have/need it) 2005-11-24 20:08:09 +00:00
Ralf Becker
709ef070c9 fix for bug, that empty arrays are returned as serialized empty array and not an empty array 2005-11-08 08:12:30 +00:00
Ralf Becker
c85d34c0fe changed the following table-names:
- phpgw_accounts --> egw_accounts
- phpgw_acl --> egw_acl
- phpgw_log(_msg) --> egw_log(_msg)
- phpgw_config --> egw_config
- phpgw_applications --> egw_applications
This requires code-changes in many apps. Quite often I was able to replace the db access, with calls to the appropreate classes.
2005-11-02 11:45:52 +00:00
Ralf Becker
b82ac2c4d6 added function to invalidate the session-cache if:
- global config (egw_info[server]) changes
- user prefs change
- acl of the current user changes
2005-07-22 09:05:01 +00:00
Ralf Becker
d757e35973 reworked so-layer for MaxDB and new db-functions 2004-08-03 22:52:55 +00:00
reinerj
48f840d7de move from old projct to new one 2004-05-05 12:06:13 +00:00
Ralf Becker
bd187fca49 return the config-array in read_repository, like other classes read_repository functions does (eg. preferences) 2004-04-04 10:02:25 +00:00
Ralf Becker
14ee63f8f5 fix to allow the apps to unset values in config_data, to get them deleted, also use stored value to determine if value has changed and not need read it again 2003-11-08 22:30:06 +00:00
Ralf Becker
737461af74 changed config-class to only write config-values if they are changed or new. This should give a better performance and prefents cases where the complete config got lost, because of a concurrent access. 2003-11-03 14:25:50 +00:00
Ralf Becker
519e874afb use db from phpgw_setup if the phpgw one is not availible 2003-10-07 22:02:30 +00:00
Ralf Becker
b8557e49d9 make the phpgw Version-0_9_16-branch HEAD 2003-08-28 14:31:11 +00:00
Miles Lott
c7f4184b69 Fix for addressbook custom fields 2002-04-13 03:34:23 +00:00
Miles Lott
db074c4dd7 GLOBALS; remove uneeded class vars in common (I hope) 2001-11-23 19:19:04 +00:00
Miles Lott
19b1fcb265 Delete the config by name prior to insertion, just in case it was listed under
another appname previously
2001-07-01 12:12:39 +00:00
Miles Lott
5304ec67f1 Lock app_sessions table in config class, and show preferences config in setup3 2001-06-23 04:37:31 +00:00
skeeter
960a50b148 Admin can enable disable caching on the fly now. 2001-06-23 01:01:39 +00:00
Miles Lott
c73aeb5c62 Make sure there is new data before deleting the old data 2001-06-13 15:44:56 +00:00
Miles Lott
131fb588ca Change config_appname to config_app 2001-05-21 17:18:39 +00:00
jengo
eacb8a099e Added new config class 2001-05-02 08:02:32 +00:00