Public Member Functions

SimpleQuiz Class Reference

Inheritance diagram for SimpleQuiz:
IQuiz

Public Member Functions

 __construct ($quizId)
 getPropertiesForm ($dataSource)
 submitPropertiesForm ()
 getFrontPage ($userId)
 getQuizPage ($userId)
 submitQuizPage ($userId)
 initQuiz ($userId)
 deleteEntries ($userId)

Detailed Description

Definition at line 25 of file simplequiz.php.


Constructor & Destructor Documentation

__construct ( quizId  ) 

Implements IQuiz.

Definition at line 29 of file simplequiz.php.


Member Function Documentation

deleteEntries ( userId  ) 

Deletes all entries for a particular user.

Implements IQuiz.

Definition at line 358 of file simplequiz.php.

getFrontPage ( userId  ) 

Implements IQuiz.

Definition at line 51 of file simplequiz.php.

getPropertiesForm ( dataSource  ) 

Implements IQuiz.

Definition at line 34 of file simplequiz.php.

getQuizPage ( userId  ) 

Retrieves the next page for the user. Use this function from outside the class.

Parameters:
Integer $userId User ID.
Returns:
String HTML for the next page.

Implements IQuiz.

Definition at line 91 of file simplequiz.php.

initQuiz ( userId  ) 

Performs necessary operations before a user starts a quiz.

Parameters:
Integer $userId User ID.
Returns:
Boolean True indicating success, false indicating errors.

Implements IQuiz.

Definition at line 323 of file simplequiz.php.

submitPropertiesForm (  ) 

Implements IQuiz.

Definition at line 38 of file simplequiz.php.

submitQuizPage ( userId  ) 

Submits a page worth of questions.

Parameters:
Integer $userId User ID of the user taking the quiz.
Returns:
Boolean True indicating successful submission, and false indicating errors.

Implements IQuiz.

Definition at line 205 of file simplequiz.php.


The documentation for this class was generated from the following file: