Election class. More...
Public Member Functions | |
| __construct () | |
| is_anonymous () | |
| Returns whether this is an anonymous election. | |
| is_manual () | |
| Returns whether this is a manual election. | |
| is_open () | |
| Returns whether this is an open election. | |
| clear_electoral_register () | |
| Clears the electoral register and everything related to it. | |
| electoral_register_calculated ($when) | |
| has_electoral_register () | |
| is_electoral_register_calculated () | |
| Returns whether the electoral register has been calculated. | |
| begin_registration () | |
| Marks the election as being in status "registering". | |
| finish () | |
| Marks the election as finished. | |
| is_editing () | |
| Return whether the election is being edited. | |
| is_finished () | |
| Return whether the election is finished. | |
| is_registering () | |
| Return whether the election is collecting votes. | |
| finished_editing () | |
| A very primitive check that the election has been somewhat edited and ready to go to the next status. | |
| lists () | |
| Returns a array of the list id's that this election uses. | |
Public Attributes | |
| $id | |
| $data | |
Election class.
| SD_Meeting_Tool_Election::__construct | ( | ) |
| SD_Meeting_Tool_Election::begin_registration | ( | ) |
Marks the election as being in status "registering".
| SD_Meeting_Tool_Election::clear_electoral_register | ( | ) |
Clears the electoral register and everything related to it.
| SD_Meeting_Tool_Election::electoral_register_calculated | ( | $when | ) |
Sets when the electoral register was last calculated.
| $when | Unix time when the register was calculated. |
| SD_Meeting_Tool_Election::finish | ( | ) |
Marks the election as finished.
| SD_Meeting_Tool_Election::finished_editing | ( | ) |
A very primitive check that the election has been somewhat edited and ready to go to the next status.
Basically only checks that the lists are set and that there are more than 0 options.
| SD_Meeting_Tool_Election::has_electoral_register | ( | ) |
Does this election have an electoral register?
| SD_Meeting_Tool_Election::is_anonymous | ( | ) |
Returns whether this is an anonymous election.
| SD_Meeting_Tool_Election::is_editing | ( | ) |
Return whether the election is being edited.
| SD_Meeting_Tool_Election::is_electoral_register_calculated | ( | ) |
Returns whether the electoral register has been calculated.
| SD_Meeting_Tool_Election::is_finished | ( | ) |
Return whether the election is finished.
| SD_Meeting_Tool_Election::is_manual | ( | ) |
Returns whether this is a manual election.
| SD_Meeting_Tool_Election::is_open | ( | ) |
Returns whether this is an open election.
| SD_Meeting_Tool_Election::is_registering | ( | ) |
Return whether the election is collecting votes.
| SD_Meeting_Tool_Election::lists | ( | ) |
Returns a array of the list id's that this election uses.
| SD_Meeting_Tool_Election::$data |
Serialized data.
Only this property will be saved to the DB.
Contains:
| SD_Meeting_Tool_Election::$id |
ID of election.
1.8.1.2