Revisions for scry/lib/api.php

Location: [ Horde ] / scry / lib / api.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.38 (+10 -1 lines) 02/02/2008 02:29 PM Duck duck

phpDOC

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

Happy New Year

1.36 (+4 -1 lines) 12/22/2007 07:01 AM Duck duck

Support RSS comments callback link

1.35 (+22 -11 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.34 (+2 -2 lines) 01/02/2007 07:48 AM Jan Schneider jan

Happy New Year

1.33 (+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.32 (+17 -2 lines) 11/17/2006 01:00 AM Ben Klang bklang

Allow setting of per-poll permissions.

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

Happy new year\!

1.30 (+12 -1 lines) 12/21/2005 12:45 PM Chuck Hagenbuch chuck

Add hasComments callback.

1.29 (+3 -3 lines) 06/01/2005 11:26 AM Jan Schneider jan

Fix api signatures.

1.28 (+18 -6 lines) 05/22/2005 04:21 PM Chuck Hagenbuch chuck

Add Scry Admin permission.

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

Remove @version.

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

Happy New Year

1.25 (+27 -2 lines) 09/24/2004 11:42 AM mdjukic

Add comments to polls.

Bug: Duck <duck@obala.net>

1.24 (+2 -40 lines) 05/31/2004 02:22 PM Jan Schneider jan

Block APIs are now exposed globally by the Horde API.
Some blocks probably have yet to be fixed because we don't include
lib/base.php anymore.

1.23 (+2 -19 lines) 05/29/2004 05:12 PM Jan Schneider jan

Blocks are no longer defined by the applications' api.php files or
registry.php. Instead we scan all application/lib/Block directories for blocks
once per session now.

1.22 (+5 -5 lines) 05/24/2004 12:18 PM John Morrissey jwm

use new stringArray type instead of 'array.' The argument types look sane,
but some of the return types aren't quite right yet, mostly the block API
calls, which return Horde_Block objects.

1.21 (+11 -7 lines) 03/16/2004 02:37 PM Chuck Hagenbuch chuck

Style.

1.20 (+3 -3 lines) 02/05/2004 10:04 AM mdjukic

fix missing params error when non are required

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

Happy new year everyone.

1.18 (+3 -3 lines) 11/21/2003 05:37 PM Chuck Hagenbuch chuck

Add more poll state filters, and add tabs across the top of the poll list for switching
between open, all, closed, and disabled (only for admins) polls.

1.17 (+3 -3 lines) 10/30/2003 06:38 PM Jan Schneider jan

PHP 5 fixes.

1.16 (+29 -31 lines) 10/28/2003 08:46 PM Chuck Hagenbuch chuck

Another chunk of Blocks work:

- move all parameter listing into block getParams() methods
- remove unused parameters from the _blocks() arrays
- make sure that all apps that have getParams() blocks have
a defineBlock() method.

Still need to move parameters for the Horde (applet) blocks, and
clean up registry.php.

1.15 (+22 -60 lines) 10/28/2003 01:23 PM Chuck Hagenbuch chuck

- Block::isEditable() isn't used and isn't needed
- Make classnames consistent in all applications
- Make block instantiation consistent in most applications.

1.14 (+3 -3 lines) 10/24/2003 03:17 PM Chuck Hagenbuch chuck

package name

1.13 (+3 -3 lines) 10/24/2003 03:04 PM Chuck Hagenbuch chuck

default to an empty array for $params, don't throw an error if it's not passed.

1.12 (+3 -3 lines) 09/18/2003 12:34 PM Jan Schneider jan

Class name changes. Missed that module completely.

1.11 (+3 -3 lines) 09/18/2003 11:22 AM mdjukic

shorten this

1.10 (+6 -15 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.9 (+7 -7 lines) 05/06/2003 02:09 AM mdjukic

too many typos

1.8 (+9 -13 lines) 05/06/2003 02:03 AM mdjukic

get rid of old functions

1.7 (+4 -4 lines) 02/20/2003 08:31 PM Jan Schneider jan

Fix signatures.

1.6 (+2 -3 lines) 02/01/2003 07:33 PM mdjukic

not needed, this is now set up in the base.php file

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

use better naming scheme for the backend

1.4 (+62 -13 lines) 01/28/2003 05:37 AM mdjukic

add voting in blocks

1.3 (+8 -3 lines) 01/23/2003 01:33 PM Chuck Hagenbuch chuck

- check for all required templates
- better error checking
- style
- harder to create a fatal error (that gives the user an ugly PHP
message or no feedback) now.

1.2 (+21 -2 lines) 01/22/2003 12:50 AM mdjukic

adding a new api call

1.1 01/21/2003 10:04 PM mdjukic

start the api part, create a summary view to be used in Horde home