\PollVoteAdmin
Administrators Votes/Polls class
Synopsis
class PollVoteAdmin
{
- // members
- protected string $myLogin = '';
- // methods
- public void __construct()
- protected void setLogin()
- protected bool checkBaseAvail()
- protected string loadPollForVoiting()
- protected type getPollData()
- protected string loadPollOptoins()
- public string renderVotingForm()
- public void createAdminVoteOnDB()
Members
protected
- $myLogin
—
string
Contains current user login
Methods
protected
- checkBaseAvail() — Must prevent update troubles and make billing usable between 0.8.5 and 0.8.6 releases
- getPollData() — Load poll data
- loadPollForVoiting() — gets poll that user not voted yet
- loadPollOptoins() — gets poll options
- setLogin() — Sets current user login
public
- __construct()
- createAdminVoteOnDB() — Add user's vote to the database
- renderVotingForm() — Renders Poll voiting form