Revisions for framework/Prefs/Prefs/sql.php

Location: [ Horde ] / framework / Prefs / Prefs / sql.php View: Logs | Branches | Statistics
Search Revisions:
Show diffs between and
Show Differences shows diffs to the previous revision. If you select a revision by clicking its row, Show Differences will show the differences to the selected row.
Show Branch:
  Revision Date Author Log Message
1.91.10.23 FRAMEWORK_3 (+2 -2 lines) 01/02/2008 06:30 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_3, HORDE_3_3_RC1, HORDE_3_2_2, HORDE_3_2_1, HORDE_3_2, HORDE_3_2_RC4, HORDE_3_2_RC3, HORDE_3_2_RC2

1.128 (+2 -2 lines) 01/02/2008 06:12 AM Jan Schneider jan

Happy New Year

1.91.10.22 FRAMEWORK_3 (+167 -190 lines) 12/20/2007 08:49 AM Jan Schneider jan

Merge from HEAD.

1.127 (+3 -3 lines) 08/01/2007 12:10 AM Chuck Hagenbuch chuck

Jon has assigned his copyrights to The Horde Project.

Tags: BEFORE_MERGE_3_2, HORDE_3_2_RC1, HORDE_3_2_ALPHA

1.126 (+2 -2 lines) 06/27/2007 01:23 PM Jan Schneider jan

Bump year, looks like a missed a few last time.

1.125 (+2 -2 lines) 03/10/2007 12:20 AM Michael Rubinsky mrubinsk

Typo.

1.124 (+4 -2 lines) 03/10/2007 12:16 AM Michael Rubinsky mrubinsk

Existence check.  Fixes a possible fatal error when configuring for the first time and going from no pref backend to a sql backend.

1.91.10.21 FRAMEWORK_3 (+2 -2 lines) 01/02/2007 08:54 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_1_9, HORDE_3_1_8, HORDE_3_1_7, HORDE_3_1_6, HORDE_3_1_5, HORDE_3_1_4, HORDE_3_1_4_RC1

1.123 (+6 -1 lines) 12/27/2006 06:10 PM Chuck Hagenbuch chuck

Fix two shared preference bugs, both of which could cause Bug #4378:
- load the defaults for shared preferences into the horde scope, not the scope
of the app that marks them shared
- retrieve shared prefs when loading the horde scope even though we might not
have a conf for them then, and don't overwrite the retrieved value when we
_do_ load the conf later.

1.122 (+92 -147 lines) 11/22/2006 11:47 PM Chuck Hagenbuch chuck

[cjh] Rewrite the Prefs code to keep the same Prefs object through multiple
scope changes, instead of re-loading the Horde prefs, or prefs for
a scope that had already been loaded. Fixes bugs when making changes
to preferences and then switching scopes again (Bug #2838).

This is a big change to the prefs system, and while I've tested all of
it as best as I can, and the SQL driver I'm pretty confident in, this
needs testing before we even think about merging it. It would all be
BC, though.

Please let me know (or update the bug) if this works or doesn't work
for you, especially people using lots of hooks and other more edge
cases, and also let me know if you think it should be merged or not.

1.121 (+17 -17 lines) 09/11/2006 04:37 PM Matt Selsky selsky

CS - use line continuations instead of .=

1.120 (+2 -2 lines) 06/08/2006 01:45 PM Chuck Hagenbuch chuck

log more error information.

1.119 (+2 -2 lines) 05/18/2006 09:18 AM Chuck Hagenbuch chuck

standard reference style

1.118 (+2 -1 lines) 05/10/2006 10:05 AM Jan Schneider jan

One more query to log.

1.117 (+8 -15 lines) 05/10/2006 10:04 AM Jan Schneider jan

Condense redundant code, log query.

1.91.10.20 FRAMEWORK_3 (+7 -2 lines) 04/10/2006 11:58 AM Chuck Hagenbuch chuck

MFH: Horde_String not used in all prefs backends.

Tags: HORDE_3_1_3, HORDE_3_1_2

1.116 (+7 -2 lines) 04/10/2006 11:56 AM Chuck Hagenbuch chuck

Horde_String is not required by all prefs backends.

1.115 (+5 -3 lines) 02/28/2006 02:01 AM Michael M Slusarz slusarz

phpdoc cleanups
cache cleanups.  cacheUpdate() is now only called with the preferences that
need to be updated, instead of always updating the entire prefs array. On
my server, this reduced the number of assignments in cacheUpdate() from 2173
to 379. i think there is still some more tweaking that can be done in here.

1.91.10.19 FRAMEWORK_3 (+1 -6 lines) 02/28/2006 12:59 AM Michael M Slusarz slusarz

Bug: 3372
MFH: Prefs.php - 1.161-1.163; imsp.php - 1.12; ldap.php - 1.105;
sql.php - 1.114

Tags: HORDE_3_1_1, HORDE_3_1

1.114 (+1 -6 lines) 02/28/2006 12:45 AM Michael M Slusarz slusarz

Don't think we need the '_filled' entries since we can simply check for the
presence of the 'scopename' in the prefs_cache array.

1.113 (+5 -22 lines) 02/09/2006 11:19 PM Chuck Hagenbuch chuck

Warn user if loading prefs fails.

1.91.10.18 FRAMEWORK_3 (+2 -2 lines) 01/18/2006 02:53 PM Ben Chavet ben

MFH 1.112

Tags: HORDE_3_1_RC3, HORDE_3_1_RC2

1.91.10.17 FRAMEWORK_3 (+9 -2 lines) 01/18/2006 02:39 PM Ben Chavet ben

MFH

1.112 (+2 -2 lines) 01/18/2006 01:03 PM Matt Selsky selsky

Typo.

1.111 (+19 -3 lines) 01/18/2006 12:48 PM Ben Chavet ben

use DB_PORTABILITY_RTRIM for mssql connections

1.91.10.16 FRAMEWORK_3 (+2 -2 lines) 01/01/2006 04:28 PM Jan Schneider jan

Happy new year

Tags: HORDE_3_1_RC1

1.110 (+2 -2 lines) 01/01/2006 04:10 PM Jan Schneider jan

Happy new year\!

1.109 (+29 -9 lines) 12/26/2005 02:10 PM Chuck Hagenbuch chuck

- Don't call Horde::fatal() in prefs drivers
- Remove call to Horde::serviceDegraded()
- Go back to only connecting to the backend if we actually need to - most
page loads should never hit the prefs backend due to the session cache.

1.108 (+29 -27 lines) 12/23/2005 12:37 PM Chuck Hagenbuch chuck

Updates for SQL split servers
- use the seperate server parameters, they were being ignored before
- add split support to the History API
- default to the write server, not the read server
- create the _write_db connection in the SQL sessionhandler

1.91.10.15 FRAMEWORK_3 (+10 -2 lines) 12/01/2005 05:30 PM Chuck Hagenbuch chuck

MFH 1.107

1.107 (+10 -2 lines) 12/01/2005 05:30 PM Chuck Hagenbuch chuck

Work around bug in some php versions with shutdown functions.
Bug: #3016

1.106 (+20 -13 lines) 11/25/2005 05:12 PM mdjukic

add documentation about the read/write params required

1.105 (+30 -7 lines) 11/25/2005 02:39 PM mdjukic

split read/writes, Token_sql was missing var and disconnect

1.91.10.14 FRAMEWORK_3 (+18 -3 lines) 11/10/2005 07:44 AM mdjukic

remove the failover stuff from framework_3

1.91.10.13 FRAMEWORK_3 (+3 -18 lines) 11/09/2005 07:33 PM mdjukic

MFH: failover and some typo fixing

1.104 (+3 -18 lines) 11/09/2005 07:26 PM mdjukic

Add failover support to Prefs too.
Fix what seems some typos in imsp ($this->_params).

1.91.10.12 FRAMEWORK_3 (+1 -1 lines) 10/18/2005 07:01 AM Jan Schneider jan

Merged from HEAD.

1.91.10.11 FRAMEWORK_3 (+1 -11 lines) 07/03/2005 01:05 AM Matt Selsky selsky

MFH: Remove "@access public" and fix wrapping.

Tags: HORDE_3_0_12, HORDE_3_0_11, HORDE_3_0_10, HORDE_3_0_9, HORDE_3_0_8, HORDE_3_0_7, HORDE_3_0_6, HORDE_3_0_6_RC1, HORDE_3_0_5, HORDE_3_0_5_RC2, HORDE_3_0_5_RC1

1.103 (+1 -11 lines) 07/03/2005 12:36 AM Matt Selsky selsky

Remove "@access public" and fix wrapping.

Tags: BEFORE_MERGE_3_1

1.91.10.10 FRAMEWORK_3 (+4 -4 lines) 06/08/2005 12:33 AM Matt Selsky selsky

MFH: Remove object keywords from phpdoc.

1.102 (+4 -4 lines) 06/08/2005 12:22 AM Matt Selsky selsky

Remove object keywords from phpdoc.

1.91.10.9 FRAMEWORK_3 (+5 -1 lines) 06/01/2005 07:28 AM Jan Schneider jan

MFH: 1.101

1.101 (+5 -1 lines) 06/01/2005 06:49 AM Jan Schneider jan

Don't convert booleans.

1.91.10.8 FRAMEWORK_3 (+12 -2 lines) 05/12/2005 10:52 AM Jan Schneider jan

MFH 1.100

1.100 (+12 -2 lines) 05/12/2005 10:41 AM Jan Schneider jan

Cache converted values.

1.91.10.7 FRAMEWORK_3 (+10 -13 lines) 05/09/2005 11:03 PM Matt Selsky selsky

MFH: "optional" not needed in phpdoc.

1.99 (+10 -13 lines) 05/09/2005 11:01 PM Matt Selsky selsky

"optional" not needed in phpdoc.

1.91.10.6 FRAMEWORK_3 (+16 -33 lines) 04/21/2005 02:17 PM Matt Selsky selsky

MFH.

1.91.10.5 FRAMEWORK_3 (+17 -20 lines) 04/21/2005 12:11 PM Matt Selsky selsky

MFH.

1.98 (+17 -20 lines) 04/21/2005 06:00 AM Matt Selsky selsky

Clean up required/optional parameters in phpdoc.

1.97 (+16 -33 lines) 04/07/2005 12:00 PM Jan Schneider jan

This patch removes slow array_push() calls where possible and uses the query()
function instead of seperate prepare()/execute() calls.
Bug: 1706
Submitted by: selsky (at) columbia (dot) edu

1.91.10.4 FRAMEWORK_3 (+6 -3 lines) 04/04/2005 08:51 AM Jan Schneider jan

MFH: Don't require 'database'

1.96 (+5 -2 lines) 04/04/2005 08:42 AM Jan Schneider jan

Don't require 'database'.

1.91.10.3 FRAMEWORK_3 (+24 -32 lines) 04/01/2005 07:06 PM Chuck Hagenbuch chuck

MFH: make these drivers work with SQLite

1.95 (+12 -25 lines) 04/01/2005 07:01 PM Chuck Hagenbuch chuck

more docs/comment tweaking

1.94 (+17 -12 lines) 04/01/2005 06:54 PM Chuck Hagenbuch chuck

Tweak required parameters so that these drivers work with SQLite.

1.91.10.2 FRAMEWORK_3 (+49 -18 lines) 04/01/2005 01:10 PM Chuck Hagenbuch chuck

MFH: bind variable usage in sql drivers (selsky@columbia.edu, Bugs
#1651, #1652, #1653).

1.93 (+49 -18 lines) 03/31/2005 11:57 PM Chuck Hagenbuch chuck

[cjh] Use bind variables in the Prefs and Token SQL drivers
(selsky@columbia.edu, Bugs #1652, #1653).

1.92 (+1 -1 lines) 01/03/2005 08:09 AM Jan Schneider jan

Happy New Year

1.91.10.1 FRAMEWORK_3 (+3 -3 lines) 01/03/2005 07:19 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_0_4, HORDE_3_0_4_RC2, HORDE_3_0_4_RC1, HORDE_3_0_3, HORDE_3_0_3_RC1, HORDE_3_0_2, HORDE_3_0_1

1.91 (+3 -4 lines) 10/08/2004 11:45 AM Chuck Hagenbuch chuck

Use new DB 1.6 portability settings instead of old "optimize" "portability".

Tags: FRAMEWORK_3, HORDE_3_0, HORDE_3_0_RC3

1.90 (+32 -28 lines) 08/24/2004 06:25 AM Jan Schneider jan

Don't convert charset of prefs when storing them into the backend but keep
them already converted in the prefs cache.
This is necessary for example for serialized data like identities. When we
retrieved such prefs with another charset than we used to store them, the
conversion happened on the serialized string, breaking the unserialization
because the string lengths were not correct anymore.
Code that needs to store serialized data can now do the conversion itself,
serialize the data and then store it while telling the prefs backend to *not*
convert it automatically.

1.89 (+15 -16 lines) 08/11/2004 11:21 PM Chuck Hagenbuch chuck

comment wrapping

1.88 (+8 -7 lines) 08/10/2004 09:41 PM Chuck Hagenbuch chuck

Use prepare/execute for pref values for better support of large fields
on some database backends.

Bug: 443
Submitted by: selsky@columbia.edu

1.87 (+25 -2 lines) 06/14/2004 05:35 PM Jan Schneider jan

Add clear() method. Someone has to implement that for the LDAP driver.

1.86 (+3 -3 lines) 05/24/2004 05:55 PM mdjukic

line up

1.85 (+5 -5 lines) 03/30/2004 04:17 PM Chuck Hagenbuch chuck

Fix some charset conversion weirdness ("W. Tasin" <tasin@fhm.edu>).

Tags: HORDE_3_0_ALPHA

1.84 (+6 -2 lines) 03/12/2004 11:10 AM Chuck Hagenbuch chuck

Make sure to pass DB a password, even if it's empty.

1.83 (+2 -120 lines) 02/21/2004 12:40 PM Chuck Hagenbuch chuck

[cjh] Prefs::getPref() has been deprecated and is no longer present.

1.82 (+3 -4 lines) 01/07/2004 12:25 PM Jan Schneider jan

Make sure the default preferences are always loaded, even if not using any
preference backend.

1.81 (+3 -3 lines) 01/05/2004 11:42 AM mdjukic

revert

1.80 (+3 -3 lines) 01/05/2004 12:45 AM mdjukic

this allows an pref value which is locked subsequently in the prefs.php config file to override also the value stored by the user in the backend previously, any problems with doing this?

1.79 (+3 -3 lines) 01/01/2004 10:16 AM Jan Schneider jan

Happy new year everyone.

1.78 (+3 -3 lines) 12/04/2003 09:09 AM Chuck Hagenbuch chuck

fix log level for this query (Daniel Eckl <daniel.eckl@gmx.de> ).

1.77 (+3 -3 lines) 10/21/2003 09:04 AM Chuck Hagenbuch chuck

package name

1.76 (+3 -3 lines) 10/04/2003 04:25 PM Chuck Hagenbuch chuck

this is only shared if the scope is 'horde'

1.75 (+6 -2 lines) 10/03/2003 02:53 PM Chuck Hagenbuch chuck

Here's another crack at the preferences problem. The logic for retrieve() seems to
be working correctly, so now we call setDefaults() only if we're going to actually
hit the backend in retrieve(), and don't call setDefaults() explicitly anywhere else.

This may mean a few things need to change for guest preferences, but we'll sort
that out.

1.74 (+3 -3 lines) 10/02/2003 12:12 PM Jan Schneider jan

Missed that one.

1.73 (+4 -4 lines) 10/02/2003 12:10 PM Jan Schneider jan

No gettext in logs please.

1.72 (+32 -10 lines) 09/22/2003 08:39 AM Jan Schneider jan

Add _convertFromDriver() and _convertToDriver() utility methods for charset
conversions.

1.71 (+22 -11 lines) 09/20/2003 10:33 PM Chuck Hagenbuch chuck

Try to sort out the prefs caching logic.

1.70 (+9 -20 lines) 09/09/2003 10:58 AM Chuck Hagenbuch chuck

More simplification of preferences code. listAll() isn't needed anymore.

1.69 (+13 -22 lines) 09/08/2003 05:44 PM Chuck Hagenbuch chuck

Clean up preferences a bit:
- setDefaults() is now a private method (_setDefaults()), and only called by
the Prefs constructor.
- Everything we need gets stored in the session prefs cache. Therefore, we
only need to read in the prefs.php files once per session.
- clean up retrieve() a bit; we *never* pass it a list of explicit preferences, so
simplify by always loading all prefs per current scope.

1.68 (+5 -14 lines) 08/23/2003 04:21 PM Jan Schneider jan

Use Horde::assertDriverConfig().

1.67 (+25 -15 lines) 07/10/2003 06:06 PM Michael M Slusarz slusarz

More doc improvements

1.66 (+5 -5 lines) 06/19/2003 02:47 PM Chuck Hagenbuch chuck

LOG_* constants -> PEAR_LOG_*

1.65 (+3 -3 lines) 06/11/2003 10:50 PM Chuck Hagenbuch chuck

Don't mark newly loaded preferences as dirty.

Submitted by: Jeff Seifert <seifert@everybody.org>

1.64 (+4 -3 lines) 06/10/2003 03:05 PM Chuck Hagenbuch chuck

Honor db persistent connections parameter in all drivers.

1.63 (+3 -3 lines) 06/03/2003 09:03 PM Marcus I. Ryan marcus

bloody typos...

1.27.2.19 RELENG_2 (+4 -4 lines) 06/03/2003 09:01 PM Marcus I. Ryan marcus

MFH 1.62

Bug: 1224

Tags: HORDE_2_2_4_RC2, HORDE_2_2_4_RC1, HORDE_2_2_4

1.62 (+6 -6 lines) 06/03/2003 08:43 PM Marcus I. Ryan marcus

Cast pref_value to string so it doesn't quote a boolean as a boolean and
make Postgresql (and presumably others) complain.

Bug: 1224

1.27.2.18 RELENG_2 (+17 -13 lines) 05/30/2003 05:35 PM Michael M Slusarz slusarz

MFH 1.60

1.61 (+9 -9 lines) 05/30/2003 05:31 PM Michael M Slusarz slusarz

typos.

1.60 (+10 -10 lines) 05/30/2003 05:22 PM Michael M Slusarz slusarz

Scope was not being set correctly in setPref().
When non-horde scope passed in, make sure that we update _that_ scope
and not a variable with the same name under the horde scope.
documentation.

1.27.2.17 RELENG_2 (+3 -4 lines) 05/09/2003 10:49 AM Chuck Hagenbuch chuck

minor cleanups.

1.59 (+11 -10 lines) 03/05/2003 11:56 AM Chuck Hagenbuch chuck

style, is_a().

1.58 (+12 -20 lines) 02/07/2003 04:32 PM Michael M Slusarz slusarz

Eliminate some array_key_exists() calls.
style.

1.57 (+14 -2 lines) 01/27/2003 07:01 PM Jan Schneider jan

Add getCharset() to return the backend's charset.

1.56 (+8 -4 lines) 01/26/2003 01:33 PM Chuck Hagenbuch chuck

Check for required 'charset' parameter.

1.55 (+14 -10 lines) 01/19/2003 11:43 AM Jan Schneider jan

Convert charset.

1.54 (+5 -3 lines) 01/03/2003 10:20 AM Jan Schneider jan

Add and fix @since tags.

1.27.2.16 RELENG_2 (+1 -1 lines) 01/03/2003 07:48 AM Jan Schneider jan

Bump year.

Tags: HORDE_2_2_3, HORDE_2_2_2, HORDE_2_2_1, HORDE_2_2_1_RC1, HORDE_2_2, HORDE_2_2_RC2, HORDE_2_2_RC1

Only showing the 100 latest revisions. Show all revisions? (may take a while).