/[drupal]/contributions/modules/votingapi/votingapi_actions.inc
ViewVC logotype

Log of /contributions/modules/votingapi/votingapi_actions.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.15.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 8 05:31:11 2007 UTC (2 years, 8 months ago) by eaton
Branch: DRUPAL-5
Changes since 1.15: +31 -79 lines
Diff to previous 1.15
First stab at the next round of updates, including votingapi_actions for 5.0.

Revision 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Oct 14 02:01:43 2006 UTC (3 years, 1 month ago) by eaton
Branch: MAIN
CVS Tags: DRUPAL-5--1-2, HEAD
Branch point for: DRUPAL-5
Changes since 1.14: +15 -359 lines
Diff to previous 1.14
Hooray for Drupal 5. Views integration is no longer inherent to the module; votingapi_views.module will be coming shortly.

Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 9 00:20:19 2006 UTC (3 years, 5 months ago) by eaton
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13
Badly formed $Id$ tags weren't getting expanded.

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 5 04:54:39 2006 UTC (3 years, 6 months ago) by eaton
Branch: MAIN
CVS Tags: DRUPAL-4-7--1-1
Branch point for: DRUPAL-4-7
Changes since 1.12: +72 -74 lines
Diff to previous 1.12
Internal function changes and assorted updates. A minor schema fix, and a VERY basic support for editing action sets via copy/paste.

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 5 01:54:01 2006 UTC (3 years, 6 months ago) by eaton
Branch: MAIN
Changes since 1.11: +98 -5 lines
Diff to previous 1.11
Added internal utility functions to do some sanity checking on action set arrays, and smartened up the insert/update/delete code.

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Thu May 4 22:52:05 2006 UTC (3 years, 6 months ago) by eaton
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10
Renamed the cache handling function, to make it clear that other modules can call it to flush the action cache. Also, added a votingapi_delete_votes() function to batch-delete individual vote objects.

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 3 03:03:35 2006 UTC (3 years, 6 months ago) by eaton
Branch: MAIN
Changes since 1.9: +39 -35 lines
Diff to previous 1.9
Improved consistency of internal action set representation. Also, the first working checkin of votingapi_actions.module. It can list, enable/disable, and export action sets. Only really does anything if you're using the CVS version of SimpleVote right now.

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 2 04:25:19 2006 UTC (3 years, 6 months ago) by eaton
Branch: MAIN
Changes since 1.8: +127 -60 lines
Diff to previous 1.8
The action loading and caching infrastructure has been made much more robust, and CRUD functions are in place for reading and writing user-created actions.

voting_actions.module has now been added to facilitate direct user manipulation of action criteria, etc. It's the part that's still heavily under development. In many installations, it'll be unecessary.

The votingapi_delete_vote() function no longer automatically recalculates. Modules using it should call recalculate manually after explicitly removing a vote.
Those needing a consistent, stable VotingAPI should probably still stick with the 4.7 branch. This version will be branched as soon as the issues are ironed out.

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Apr 29 17:36:27 2006 UTC (3 years, 7 months ago) by eaton
Branch: MAIN
Changes since 1.7: +4 -0 lines
Diff to previous 1.7
Fixed a silly bug that could throw user-visible errors if no action sets have been defined. Still need to work on the loading mechanism, but this should prevent php errors.

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Apr 29 17:19:26 2006 UTC (3 years, 7 months ago) by eaton
Branch: MAIN
Changes since 1.6: +224 -85 lines
Diff to previous 1.6
More work on streamlining the actions system, and the beginnings of a UI for managing module-supplied voting action sets.

Also, a new setting has been introduced -- vote result calculation can be deferred until cron-time. This can be useful on heavy-load sites where MANY votes are being cast and complex, db-intensive calculations are used to weight the results.

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Apr 24 02:32:35 2006 UTC (3 years, 7 months ago) by eaton
Branch: MAIN
Changes since 1.5: +101 -31 lines
Diff to previous 1.5
Major enhancements to the actions subsystem, the addition of an experimental widgets library, and the (beginnings) of major enhancements to views integration.

Using the latest CVS version of Views.module, it's now possible to display a particular vote result (say, the number of people who've voted) without using esoteric combinations of filters.

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Apr 22 17:00:25 2006 UTC (3 years, 7 months ago) by eaton
Branch: MAIN
Changes since 1.4: +0 -1 lines
Diff to previous 1.4
Took out a line of debugging code. Whoops.

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Apr 22 15:45:29 2006 UTC (3 years, 7 months ago) by eaton
Branch: MAIN
Changes since 1.3: +226 -85 lines
Diff to previous 1.3
Major development: there is now a working infrastructure for modules to expose their own 'voting actions' without requiring user customization. This is happy news. Further updates as events warrant.

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 21 19:58:44 2006 UTC (3 years, 7 months ago) by eaton
Branch: MAIN
Changes since 1.2: +54 -1 lines
Diff to previous 1.2
Still in-progress. Now supports initializing the voting actions cache by asking other modules what actions sets they implement.

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Mar 21 23:52:16 2006 UTC (3 years, 8 months ago) by eaton
Branch: MAIN
Changes since 1.1: +103 -1 lines
Diff to previous 1.1
Once again, very in-progress. Adding the first skeleton of a votingapi_action_handler. Each handler will be expected to implement three operations:

process -- accept a bundle of vote-result data and return a true or false.

fields -- accept a $comparison_value and return a collection of formapi elements used to edit them.

save -- accept a collection of form elements and return a string (or serialized collection of data) to be saved as a $comparison_value

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Mar 21 07:11:40 2006 UTC (3 years, 8 months ago) by eaton
Branch: MAIN
  In-progress version of the integrated voting actions code.

  This is a first pass, with nothing but the raw actions handling code. Still to do is a mechanism for other modules to add their own actions. After that, reworking voting_actions.module as a UI for user tweaking of the API functionality, rather than a standalone module.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2