Go to the source code of this file.
Functions | |
if(!defined('__PRAGYAN_CMS')) | getQuestionTypeCounts ($quizId, $sectionId) |
checkQuizSetup ($quizId) | |
checkQuizOpen ($quizId) | |
checkUserFirstAttempt ($quizId, $userId) | |
sectionBelongsToQuiz ($quizId, $sectionId) | |
startSection ($quizId, $sectionId, $userId) | |
getFirstSectionId ($quizId) | |
getAttemptRow ($quizId, $sectionId, $userId) |
checkQuizOpen | ( | $ | quizId | ) |
function checkQuizOpen: returns if the quiz is open or not
Definition at line 56 of file quizview.php.
checkQuizSetup | ( | $ | quizId | ) |
Checks whether a quiz has been set up properly with sufficient number of questions.
integer | $quizId Quiz Id. |
Definition at line 37 of file quizview.php.
checkUserFirstAttempt | ( | $ | quizId, | |
$ | userId | |||
) |
function checkUserFirstAttempt: returns if the user is attempting the quiz for first time
Definition at line 71 of file quizview.php.
getAttemptRow | ( | $ | quizId, | |
$ | sectionId, | |||
$ | userId | |||
) |
function getAttemptRow: returns userattempts row for given quiz, section, user
Definition at line 120 of file quizview.php.
getFirstSectionId | ( | $ | quizId | ) |
function getFirstSectionId: returns Lowest sectionid in the given quizid
Definition at line 107 of file quizview.php.
if (!defined('__PRAGYAN_CMS')) getQuestionTypeCounts | ( | $ | quizId, | |
$ | sectionId | |||
) |
Retrieves the number of questions of each type that have been added to a section.
integer | $quizId Quiz Id. | |
integer | $sectionId Section Id. |
Definition at line 19 of file quizview.php.
sectionBelongsToQuiz | ( | $ | quizId, | |
$ | sectionId | |||
) |
function sectionBelongsToQuiz: returns if the given quiz has a section with given sectionId
Definition at line 82 of file quizview.php.
startSection | ( | $ | quizId, | |
$ | sectionId, | |||
$ | userId | |||
) |
function startSection: Marks the section attempted by the user
Definition at line 93 of file quizview.php.