|
1.16 (+6 -4 lines) |
11/23/2007 09:35 PM |
Duck duck |
First optimization step reducing the number of queries and simplify query types:
- use just one simple query in getPolls() as retrieving polls ID separated is not needed and choices are retrieved by getVotes()
- track choice count on vote instead of having a join query to get the choices count
- cannot find any usage of poll_results_to so remove it
- use div and CSS insted of requesting the server for the pixel.php colored image
- add a dedicated and cached get poll function (getPoll still is called when lisitng polls several times for every poll)
- make getVotes() statis as we get them in the poll list then again later when chekig individual poll actions in isEditabe()
- remove settings the group permission. poll_group was droped last year so the cast to set the group permission never occurs
- use scry_voted cookie even to reduce DB access in hasVoted()
Permissions
- Avoid permission check overhead for common poll show/read task by do not set the permission of every poll as default permission on poll creation time. Create the default permission only when you actually pass to the permission editing form. Check the default permissions in the Scry::hasPermission function for non existing permissions.
Demographics
- Added demographics.php config file to define demographics groups
- Added hook to detect user demographics group belonging
- Add a drop down to which display between demographics groups in poll view
Others changes:
- spited read support in sql driver
- template -> view
- php5 constants and function definitions
- replace deprecated is_a with interface of
- autoload |
|
1.15 (+9 -3 lines) |
11/19/2004 11:45 AM |
Chuck Hagenbuch chuck |
[cjh] Comments can be restricted to only authenticated users now
(Duck <duck@obala.net>) |
|
1.14 (+7 -1 lines) |
09/24/2004 11:42 AM |
mdjukic |
Add comments to polls.
Bug: Duck <duck@obala.net> |
|
1.13 (+14 -48 lines) |
06/07/2004 11:19 AM |
Jan Schneider jan |
Rest of SQL configuration migrated to \<configsql\>. |
|
1.12 (+7 -4 lines) |
01/22/2004 10:10 AM |
Jan Schneider jan |
Use tabbed configuration for all long configuration files and only for the long ones. |
|
1.11 (+2 -2 lines) |
01/19/2004 01:29 PM |
mdjukic |
could do with a little less cutnpaste |
|
1.10 (+9 -1 lines) |
01/19/2004 01:24 PM |
mdjukic |
add menu settings |
|
1.9 (+1 -2 lines) |
12/06/2003 09:05 PM |
Chuck Hagenbuch chuck |
- use the prefs date value, no need for a configuration item
- add a Scry::permissionsFilter() function |
|
1.8 (+2 -1 lines) |
11/20/2003 10:43 PM |
Chuck Hagenbuch chuck |
Make the maximum number of choices in a poll configurable. |
|
1.7 (+2 -2 lines) |
11/20/2003 10:36 PM |
Chuck Hagenbuch chuck |
default to at least cookie identifiers |
|
1.6 (+44 -29 lines) |
11/08/2003 09:34 AM |
mdjukic |
add switches, tabs |
|
1.5 (+5 -5 lines) |
07/07/2003 04:55 PM |
Chuck Hagenbuch chuck |
consistent capitalization. |
|
1.4 (+2 -2 lines) |
06/18/2003 03:11 PM |
Chuck Hagenbuch chuck |
password isn't required ("Marc G. Fournier" <scrappy@hub.org>) |
|
1.3 (+2 -1 lines) |
05/05/2003 01:49 PM |
mdjukic |
date format setting |
|
1.2 (+14 -1 lines) |
05/04/2003 09:29 PM |
mdjukic |
add config to select available identifiers |
|
1.1 |
01/20/2003 03:21 PM |
mdjukic |
the Scry config files |