Functions

cms/modules/quiz/quizview.php File Reference

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)

Function Documentation

checkQuizOpen ( quizId  ) 

Definition at line 52 of file quizview.php.

checkQuizSetup ( quizId  ) 

Checks whether a quiz has been set up properly with sufficient number of questions.

Parameters:
integer $quizId Quiz Id.
Returns:
boolean True indicating that the quiz is set up properly, false indicating otherwise.

Definition at line 37 of file quizview.php.

checkUserFirstAttempt ( quizId,
userId 
)

Definition at line 63 of file quizview.php.

getAttemptRow ( quizId,
sectionId,
userId 
)

Definition at line 96 of file quizview.php.

getFirstSectionId ( quizId  ) 

Definition at line 87 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.

Parameters:
integer $quizId Quiz Id.
integer $sectionId Section Id.
Returns:
array An array containing question types, and their corresponding counts.

Definition at line 19 of file quizview.php.

sectionBelongsToQuiz ( quizId,
sectionId 
)

Definition at line 70 of file quizview.php.

startSection ( quizId,
sectionId,
userId 
)

Definition at line 77 of file quizview.php.