Revisions for scry/lib/base.php

Location: [ Horde ] / scry / lib / base.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.42 (+2 -2 lines) 09/02/2008 01:25 PM Chuck Hagenbuch chuck

Horde_Loader -> Horde_Autoloader

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

Happy New Year

1.40 (+9 -13 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.39 (+2 -2 lines) 01/02/2007 07:48 AM Jan Schneider jan

Happy New Year

1.38 (+3 -3 lines) 01/01/2007 07:41 PM Jan Schneider jan

Assign copyright to The Horde Project for those copyright holders that already agreed to it.

1.37 (+2 -2 lines) 01/01/2006 04:11 PM Jan Schneider jan

Happy new year\!

1.36 (+2 -2 lines) 10/13/2005 12:28 AM Matt Selsky selsky

ws

1.35 (+1 -2 lines) 04/20/2005 12:02 AM Matt Selsky selsky

Remove @version.

1.34 (+3 -3 lines) 01/03/2005 09:35 AM Jan Schneider jan

Happy New Year

1.33 (+2 -8 lines) 11/03/2004 03:59 PM Chuck Hagenbuch chuck

Use new menus.

1.32 (+3 -3 lines) 10/18/2004 08:46 PM Chuck Hagenbuch chuck

Registry::getParam() -> Registry::get().

1.31 (+3 -3 lines) 08/30/2004 07:29 AM Jan Schneider jan

Make $scry a global object.

1.30 (+3 -7 lines) 08/30/2004 05:17 AM mdjukic

- Don't include entire lib/base.php if not needed, eg. in Blocks no need for Menu/Help etc.
- Add ability to select to display always the latest Poll, based on idea from   Adrian Silaghi <adi@tvr.ro>

1.29 (+8 -8 lines) 04/07/2004 10:43 AM Chuck Hagenbuch chuck

No more HORDE_LIBS.

1.28 (+2 -6 lines) 02/13/2004 11:02 PM Chuck Hagenbuch chuck

Remove includes of Browser.php that are no longer needed.

1.27 (+3 -3 lines) 02/13/2004 08:36 PM Chuck Hagenbuch chuck

Config:: and Help:: moved to framework packages.

1.26 (+3 -3 lines) 02/12/2004 03:50 PM Chuck Hagenbuch chuck

Browser:: is now a framework package.

1.25 (+3 -3 lines) 02/11/2004 05:17 PM Chuck Hagenbuch chuck

move Menu.php to a framework package.

1.24 (+8 -5 lines) 01/24/2004 03:04 PM Chuck Hagenbuch chuck

[cjh] Various $no_auth and $self_contained_auth flags have been standardized
into an AUTH_HANDLER constant, which if defined signals the application
that it should not check permissions upon calling $registry->pushApp(),
as the calling script will handle that itself, or is a system-level cron
job/script/etc.
[cjh] Add an option to $registry->pushApp() to specify whether or not to check
application permissions.

1.23 (+2 -7 lines) 01/24/2004 12:15 AM Chuck Hagenbuch chuck

[cjh] The 'allow_guests' setting, and $registry->allowGuests(), have been
removed in favor of Horde_Perms application permissions.

1.22 (+3 -3 lines) 01/15/2004 05:59 PM Jan Schneider jan

Move Horde_Group to framework.

1.21 (+4 -4 lines) 01/13/2004 01:46 PM mdjukic

updated paths for Horde_Form

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

Happy new year everyone.

1.19 (+3 -4 lines) 12/18/2003 11:17 PM mdjukic

rely on the main perms object set up in the registry

1.18 (+3 -3 lines) 12/13/2003 02:10 PM Michael M Slusarz slusarz

Move Horde_Template to framework

1.17 (+3 -3 lines) 09/26/2003 02:45 AM mdjukic

comment tweak

1.16 (+6 -6 lines) 09/24/2003 04:43 PM Chuck Hagenbuch chuck

prevent errors with transparent authentication.

1.15 (+35 -33 lines) 09/20/2003 04:10 PM Chuck Hagenbuch chuck

Use horde/lib/core.php in all applications. For now, I've commented
out the HORDE_LIBS-based includes in core.php and we're still using
the old HORDE_BASE . '/lib/' includes everywhere. But the HORDE_LIBS
constant is now available everywhere and core.php is included to
properly set up the base framework.

I also hit a bunch of other base.php things while I was at it:

- always check the results of $registry->pushApp() and display an
error if it fails.

- removed old cache_ssl code which is handled by
Browser::downloadHeaders() now.

- make sure all base.php files check authentication (you may need to
specify allow_guests = true on some applications that were open
beforehand).

- move the auth check up as soon as possible so as not to do
unnecessary work.

- remove libraries and code that aren't used.

- try and organize files consistently.

- probably a few other minor things.

Please test out everything as you can and report problems or syntax
errors; I'm sure I missed a thing or two.

1.14 (+3 -3 lines) 09/01/2003 07:19 PM Jan Schneider jan

Simplify driver instantiation even more.

1.13 (+3 -3 lines) 08/23/2003 03:52 PM Jan Schneider jan

Consider Horde's driver settings.

1.12 (+5 -4 lines) 07/21/2003 10:43 PM mdjukic

use the new menu code in horde/lib/Menu.php

1.11 (+2 -3 lines) 07/10/2003 04:40 PM Chuck Hagenbuch chuck

- remove global $scry_template variable (helps avoid lots of scope problems)
- clean up blocks a bit
- shorten the polls summary display
- display better title in the poll block; still need to fix inlining and voting here.

1.10 (+2 -5 lines) 05/05/2003 01:49 PM mdjukic

don't use Date_Calc

1.9 (+6 -7 lines) 05/04/2003 08:27 PM mdjukic

use GLOBALS

1.8 (+5 -4 lines) 04/20/2003 04:51 PM Chuck Hagenbuch chuck

[cjh] Add a new API call, Auth::isAuthenticated($realm = null), for
determining whether or not a user is logged in to the current
realm (by default null). Auth::getAuth() is still used to get
the current user, but now you don't need to know the auth realm
to get the current user - just to check authentication.

This commit replaces Auth::getAuth() with Auth::isAuthenticated()
where appropriate. Hopefully I didn't miss anywhere or cause any
problems; let me know if you find anything.

1.7 (+2 -3 lines) 03/03/2003 02:10 PM Chuck Hagenbuch chuck

Nuke a lot of constants.php files.

Specific Reason: constants should be defined in the application's base
class file UNLESS constants are needed in one of the configuration
files (the case for all those remaining). Only then should you break
things out to a seperate file (and even then, we may want to just
include the app's library file).

General Reason: Including files is *very* expensive. Short files are
pointless if we can avoid them; it's much cheaper to have slightly
longer files than multiple short ones (especially when we're going to
include all the short files anyways).

1.6 (+3 -3 lines) 02/21/2003 08:22 PM Chuck Hagenbuch chuck

Fix viral typo.

1.5 (+3 -3 lines) 02/05/2003 04:57 PM mdjukic

nit-picking

1.4 (+3 -2 lines) 02/01/2003 07:31 PM mdjukic

we are always using templates so might as well set things up in one place

1.3 (+3 -4 lines) 02/01/2003 12:12 AM Chuck Hagenbuch chuck

dates are not required now; also allow multiple answers to a question.

NOTE: db changes!

1.2 (+4 -4 lines) 01/29/2003 12:23 PM mdjukic

use better naming scheme for the backend

1.1 01/20/2003 03:18 PM mdjukic

the libraries for the Scry app