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  ) 

function deleteEntries: Deletes all entries for a particular user.

Implements IQuiz.

Definition at line 376 of file simplequiz.php.

getFrontPage ( userId  ) 

function getFrontPage: if random access is set, front page displays list of available sections and lets user select section

Implements IQuiz.

Definition at line 64 of file simplequiz.php.

getPropertiesForm ( dataSource  ) 

function getPropertiesForm: will be called from quiz edit, here no quiz specific properties

Implements IQuiz.

Definition at line 38 of file simplequiz.php.

getQuizPage ( userId  ) 

function getQuizPage: 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 105 of file simplequiz.php.

initQuiz ( userId  ) 

function initQuiz: 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 340 of file simplequiz.php.

submitPropertiesForm (  ) 

Implements IQuiz.

Definition at line 42 of file simplequiz.php.

submitQuizPage ( userId  ) 

function submitQuizPage: 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 220 of file simplequiz.php.


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