Functions

cms/modules/quiz/quizcorrect.php File Reference

Go to the source code of this file.

Functions

if(!defined('__PRAGYAN_CMS')) isQuizEvaluated ($quizId)
 evaluateQuiz ($quizId)
 updateSectionMarks ($quizId)
 getWeights ($quizId)
 getQuizUserListHtml ($quizId)
 getQuizCorrectForm ($quizId, $userId)

Function Documentation

evaluateQuiz ( quizId  ) 

For every user who has taken a quiz, updates marks allotted for all questions the user has submitted (except subjective questions) in quiz_answersubmissions

Returns:
Boolean True indicating success, and false indicating errors.

Definition at line 24 of file quizcorrect.php.

getQuizCorrectForm ( quizId,
userId 
)

fuction getQuizCorrectForm: returns form where user answers submissions will be displayed, marks can be alloted for subjective answers

Definition at line 311 of file quizcorrect.php.

getQuizUserListHtml ( quizId  ) 

function getQuizUserListHtml: Generates the User list with their total, section specific marks

Definition at line 95 of file quizcorrect.php.

getWeights ( quizId  ) 

function getWeights: returns all weights which has not be assigned marks, in weightmarks

Definition at line 83 of file quizcorrect.php.

if (!defined('__PRAGYAN_CMS')) isQuizEvaluated ( quizId  ) 

Definition at line 13 of file quizcorrect.php.

updateSectionMarks ( quizId  ) 

updates total scores in quiz_userattempts.

Returns:
Boolean True indicating success, and false indicating errors.

Definition at line 62 of file quizcorrect.php.