A simple poll creator. You only have to describe the poll fields in an XML field and SimplePoll will do the rest for you.
This project is under development and it is not already working as it should do.
You only need Composer installed in your system and write
This project allow you to create a poll very easily. You only have to describe wich fields your poll will have in an XML document and run:
$poll = new SimplePoll(); $poll->loadPoll('testData/poll.xml');
With these lines, SimplePoll has read the document which describes the poll questions and it is ready for render the poll with the next line:
This line indicates to SimplePoll where the poll template is. I am using Twig and Twitter Bootstrap as templating system and front-end-framework, so is very easy configure your own and beautiful poll template.
At the moment we have only 4 types of questions:
- Rating questions
- Option select questions
- Option select questions (allowing multiple selections)
- Text questions
I have planned three stages for this project: data recollect, data storage and data viewing
Now, we are the first part of the data recollect stage. In this stage we should have a system who allows to:
- Define pools in an XML format (done)
- Present the defined pools to the user (done)
- Allow the user to fill the poll (we are here)
In the data storage stage we should have a system who allows to:
- Validate the info retrieved by a pool
- Store it in a DB
And in the data viewing stage we should be able to:
- Recollect the poll data from the database
- Present a complete report to the poll creator