Database tables and API classes

The Polls module uses the following tables:

 

Polls_Poll - polls
Polls_PollAnswer - answers for polls (1:N)
Polls_PollRoles - roles authorized to vote (M:N)
Polls_PollSite - sites where the poll can be used (M:N)

 

The polls API is provided by the CMS.Polls namespace classes:

 

PollAnswerInfo, PollAnswerInfoProvider - manage answers
PollInfo, PollInfoProvider - manage polls

 

The following chapters show how to use these classes.