Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
 
 
 
 
js
 
 
 
 
 
 
 
 
 
 

README.md

SimplePoll

A simple poll creator. You only have to describe the poll fields in an XML field and SimplePoll will do the rest for you.

ADVERTISMENT

This project is under development and it is not already working as it should do.

Instalation

You only need Composer installed in your system and write

composer.phar update

Basics

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:

$poll->renderPoll('poll.html');

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.

Available fields

At the moment we have only 4 types of questions:

  • Rating questions
  • Option select questions
  • Option select questions (allowing multiple selections)
  • Text questions

TODO

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

About

A simple poll creator. You only have to describe the poll fields in an XML field and SimplePoll will do the rest for you.

Resources

License

Releases

No releases published

Packages

No packages published