Public Member Functions | |
__construct ($quizId) | |
getPropertiesForm ($dataSource) | |
submitPropertiesForm () | |
getFrontPage ($userId) | |
getQuizPage ($userId) | |
submitQuizPage ($userId) | |
initQuiz ($userId) | |
deleteEntries ($userId) |
Definition at line 25 of file simplequiz.php.
__construct | ( | $ | quizId | ) |
Implements IQuiz.
Definition at line 29 of file simplequiz.php.
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.
Integer | $userId User ID. |
Implements IQuiz.
Definition at line 105 of file simplequiz.php.
initQuiz | ( | $ | userId | ) |
function initQuiz: Performs necessary operations before a user starts a quiz.
Integer | $userId User ID. |
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.
Integer | $userId User ID of the user taking the quiz. |
Implements IQuiz.
Definition at line 220 of file simplequiz.php.