oct-election-procs.tcl

Procs for election

Location:
packages/oct-election/tcl/oct-election-procs.tcl

Procedures in this file

Detailed information

oct-election::valid_voter_p (private)

 oct-election::valid_voter_p [ -election_id election_id ] \
    [ -user_id user_id ]
Switches:
-election_id (optional)
-user_id (optional)
Author:
Joel Aufrecht

Partial Call Graph (max 5 caller/called nodes):
%3 oct-election::valid_voters oct-election::valid_voters (public) oct-election::valid_voter_p oct-election::valid_voter_p oct-election::valid_voters->oct-election::valid_voter_p packages/oct-election/www/election.tcl packages/oct-election/ www/election.tcl packages/oct-election/www/election.tcl->oct-election::valid_voter_p packages/oct-election/www/vote-process.tcl packages/oct-election/ www/vote-process.tcl packages/oct-election/www/vote-process.tcl->oct-election::valid_voter_p packages/oct-election/www/vote.tcl packages/oct-election/ www/vote.tcl packages/oct-election/www/vote.tcl->oct-election::valid_voter_p acs_user::get_element acs_user::get_element (public) oct-election::valid_voter_p->acs_user::get_element db_1row db_1row (public) oct-election::valid_voter_p->db_1row db_string db_string (public) oct-election::valid_voter_p->db_string export_vars export_vars (public) oct-election::valid_voter_p->export_vars lc_time_fmt lc_time_fmt (public) oct-election::valid_voter_p->lc_time_fmt

Testcases:
No testcase defined.

oct-election::valid_voters (public)

 oct-election::valid_voters [ -status status ] -election_id election_id

Return a list of valid voters

Switches:
-status (optional, defaults to "not_voted")
Could be "voted" or "non_voted", reflecting the voters who have voted for the elections already and the ones who did not vote yet.
-election_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 ad_script_abort ad_script_abort (public) db_foreach db_foreach (public) db_list db_list (public) oct-election::valid_voter_p oct-election::valid_voter_p (private) oct-election::valid_voters oct-election::valid_voters oct-election::valid_voters->ad_script_abort oct-election::valid_voters->db_foreach oct-election::valid_voters->db_list oct-election::valid_voters->oct-election::valid_voter_p

Testcases:
No testcase defined.
[ show source ]