Skip to content

Commit

Permalink
#8 & #9
Browse files Browse the repository at this point in the history
 - Documentation
 - Following bundle best practices
  • Loading branch information
egulias committed Mar 18, 2012
1 parent 2496423 commit 4d7482e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
16 changes: 15 additions & 1 deletion Resources/doc/index.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
**Documentation Index for the EguliasQuizBundle**
Getting Started With EguliasQuizBundle
=====================================

## Installation

Here [Setting up the bundle](installation.md)

## Bundle usage

EguliasQuizBundle give's your site the bility to quickly implement questionaries.

Here you'll learn [how to use it](usage.md)



35 changes: 34 additions & 1 deletion Resources/doc/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,39 @@
The QuizBundle comes with a set of predefined urls to point to basic controllers so you can start using the bundle
out of the box.

## Controllers

All the controllers mostly implements one of the two available services (see services section for mor information).

- QuizManagerController.php
- QuestionController.php (in course of beeing refactored)
- QuizController.php
- AnswerController.php

If you want to personalize any of the controllers you can just pick the services and create your owns.

## Services

Two services are available with the bundle
Two services are available with the bundle (a third is planned for managing questions):

- egulias.quiz.manager
- egulias.take.quiz

1. egulias.quiz.manager

Implements a series of methods to allow the cration and modification of quizes. These are:

* getQuizForm
* saveQuizForm
* editQuizForm
* updateQuizForm

2. egulias.take.quiz

This service allows the user to take a given quiz. It implements two methods for this:

* takeQuiz
Returning the quiz form

* responseQuiz
Responsible for saving the user answers from the quiz id

0 comments on commit 4d7482e

Please sign in to comment.