Database tables and API classes

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

The Polls module uses the following database 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 - these classes provide functionality for managing answers
•PollInfo, PollInfoProvider - these classes provide functionality for managing polls

 

The following topics show examples of how these classes can be used:

 

•Creating a new poll
•Updating an existing poll
•Add a new answer
•Change the number of votes
•Add authorised roles
•Deleting a poll
•Deleting a poll answer

 

The API programming and Kentico CMS internals section of this guide contains more API related information, so please refer to it if required.

 

For detailed API documentation, such as a list of all methods from the classes above, please refer to Kentico CMS API Reference that is a part of your Kentico CMS installation and can be accessed through the programs folder in Windows Start menu.

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?polls_database_tables_and_api_classes.htm