Go to the source code of this file.
Functions | |
if(!defined('__PRAGYAN_CMS')) | getQuizTypes () |
getQuestionTypes () | |
returns types of questions | |
getQuizTypeBox ($quizType) | |
getQuestionTypeBox ($questionType) | |
getTableRow ($tableName, $condition) | |
getQuizRow ($quizId) | |
getSectionRow ($quizId, $sectionId) | |
getQuestionRow ($quizId, $sectionId, $questionId) | |
getQuizEditFormFieldMap () | |
getSectionEditFormFieldMap () | |
getQuestionEditFormFieldMap () | |
addItems ($insertQuery, $count) | |
addSections ($quizId, $count) | |
addQuestions ($quizId, $sectionId, $count) | |
deleteItem ($tableNames, $conditions, &$affectedRows) | |
deleteSection ($quizId, $sectionId) | |
deleteQuestion ($quizId, $sectionId, $questionId) | |
deleteQuestionOptions ($quizId, $sectionId, $questionId) | |
moveItem ($itemId, $itemRank, $tableName, $idFieldName, $rankFieldName, $conditions, $direction) | |
moveSection ($quizId, $sectionId, $direction) | |
moveQuestion ($quizId, $sectionId, $questionId, $direction) | |
getItemList ($tableName, $conditions= '1') | |
getSectionList ($quizId) | |
getQuestionTableHtml ($quizId, $sectionId) | |
getQuestionOptionList ($quizId, $sectionId, $questionId) | |
getQuestionOptionListHtml ($quizId, $sectionId, $questionId, $questionType, $rightAnswer, $editable=false) | |
getSubmittedQuestionOptionListHtml ($questionType) | |
setWeightMark ($quizId, $weight, $positive, $negative) | |
weightMarksForm ($quizId) | |
getQuizEditForm ($quizId, $dataSource) | |
getSectionEditForm ($quizId, $sectionId, $dataSource) | |
getQuestionEditForm ($quizId, $sectionId, $questionId, $dataSource) | |
submitQuizEditForm ($quizId) | |
submitSectionEditForm ($quizId, $sectionId) | |
submitQuestionEditForm ($quizId, $sectionId, $questionId) |
addItems | ( | $ | insertQuery, | |
$ | count | |||
) |
function add*: adding quiz elements to database, which can be section, question, etc
Definition at line 128 of file quizedit.php.
addQuestions | ( | $ | quizId, | |
$ | sectionId, | |||
$ | count | |||
) |
Definition at line 147 of file quizedit.php.
addSections | ( | $ | quizId, | |
$ | count | |||
) |
Definition at line 141 of file quizedit.php.
deleteItem | ( | $ | tableNames, | |
$ | conditions, | |||
&$ | affectedRows | |||
) |
function delete*: deleting quiz elements from database, which can be section, question, etc
Definition at line 157 of file quizedit.php.
deleteQuestion | ( | $ | quizId, | |
$ | sectionId, | |||
$ | questionId | |||
) |
Definition at line 182 of file quizedit.php.
deleteQuestionOptions | ( | $ | quizId, | |
$ | sectionId, | |||
$ | questionId | |||
) |
Definition at line 188 of file quizedit.php.
deleteSection | ( | $ | quizId, | |
$ | sectionId | |||
) |
Definition at line 176 of file quizedit.php.
getItemList | ( | $ | tableName, | |
$ | conditions = '1' | |||
) |
function get*List: returns list from the specified tablename
Definition at line 251 of file quizedit.php.
getQuestionEditForm | ( | $ | quizId, | |
$ | sectionId, | |||
$ | questionId, | |||
$ | dataSource | |||
) |
function getQuestionEditForm: this function returns HTML form to edit question
Definition at line 698 of file quizedit.php.
getQuestionEditFormFieldMap | ( | ) |
Definition at line 115 of file quizedit.php.
getQuestionOptionList | ( | $ | quizId, | |
$ | sectionId, | |||
$ | questionId | |||
) |
function getQuestionOptionList: Returns the list of options for the given question
Definition at line 333 of file quizedit.php.
getQuestionOptionListHtml | ( | $ | quizId, | |
$ | sectionId, | |||
$ | questionId, | |||
$ | questionType, | |||
$ | rightAnswer, | |||
$ | editable = false | |||
) |
function getQuestionOptionListHtml: returns HTML format list of options with check boxes to check right answer
Definition at line 341 of file quizedit.php.
getQuestionRow | ( | $ | quizId, | |
$ | sectionId, | |||
$ | questionId | |||
) |
Definition at line 76 of file quizedit.php.
getQuestionTableHtml | ( | $ | quizId, | |
$ | sectionId | |||
) |
function getQuestionTableHtml: displays all the questions in a given section, quiz with proper formatting
Definition at line 271 of file quizedit.php.
getQuestionTypeBox | ( | $ | questionType | ) |
Definition at line 40 of file quizedit.php.
getQuestionTypes | ( | ) |
returns types of questions
Definition at line 19 of file quizedit.php.
getQuizEditForm | ( | $ | quizId, | |
$ | dataSource | |||
) |
function getQuizEditForm: returns the HTML interface to edit the quiz, which includes editing quiz properties, setting weight marks, editing sections, and adding questions to sections and gives link to editing questions
Definition at line 449 of file quizedit.php.
getQuizEditFormFieldMap | ( | ) |
function get*FormFieldMap: returns form fieldmap
Definition at line 85 of file quizedit.php.
getQuizRow | ( | $ | quizId | ) |
Definition at line 68 of file quizedit.php.
getQuizTypeBox | ( | $ | quizType | ) |
function get*TypeBox returns select box listing the type
Definition at line 28 of file quizedit.php.
if (!defined('__PRAGYAN_CMS')) getQuizTypes | ( | ) |
Quiz Edit Form get*Types() series of functions
Definition at line 15 of file quizedit.php.
getSectionEditForm | ( | $ | quizId, | |
$ | sectionId, | |||
$ | dataSource | |||
) |
function getSectionEditForm: this function returns HTML edit form for a section, where section specific properties can be edited
Definition at line 644 of file quizedit.php.
getSectionEditFormFieldMap | ( | ) |
Definition at line 103 of file quizedit.php.
getSectionList | ( | $ | quizId | ) |
Definition at line 262 of file quizedit.php.
getSectionRow | ( | $ | quizId, | |
$ | sectionId | |||
) |
Definition at line 72 of file quizedit.php.
getSubmittedQuestionOptionListHtml | ( | $ | questionType | ) |
function getSubmittedQuestionOptionListHtml: returns list of options for a question which is submitted
Definition at line 377 of file quizedit.php.
getTableRow | ( | $ | tableName, | |
$ | condition | |||
) |
function get*Row: gets rows from database
Definition at line 58 of file quizedit.php.
moveItem | ( | $ | itemId, | |
$ | itemRank, | |||
$ | tableName, | |||
$ | idFieldName, | |||
$ | rankFieldName, | |||
$ | conditions, | |||
$ | direction | |||
) |
function move*: moves section, question etc
Definition at line 198 of file quizedit.php.
moveQuestion | ( | $ | quizId, | |
$ | sectionId, | |||
$ | questionId, | |||
$ | direction | |||
) |
Definition at line 237 of file quizedit.php.
moveSection | ( | $ | quizId, | |
$ | sectionId, | |||
$ | direction | |||
) |
Definition at line 228 of file quizedit.php.
setWeightMark | ( | $ | quizId, | |
$ | weight, | |||
$ | positive, | |||
$ | negative | |||
) |
function setWeightMark: Updates marks for given weight if already some marks are assigned Otherwise inserts a new record for the current weight with the speicified marks
Definition at line 404 of file quizedit.php.
submitQuestionEditForm | ( | $ | quizId, | |
$ | sectionId, | |||
$ | questionId | |||
) |
function submitQuestionEditForm: updates question properties in database when a question edit form is submitted. for objective answers also the options are updated
Definition at line 927 of file quizedit.php.
submitQuizEditForm | ( | $ | quizId | ) |
function submitQuizEditForm: this function updates quiz properties in database when a quizedit form is submitted
Definition at line 861 of file quizedit.php.
submitSectionEditForm | ( | $ | quizId, | |
$ | sectionId | |||
) |
function submitSectionEditForm: updates section properties in database when a sectionedit form is submitted
Definition at line 894 of file quizedit.php.
weightMarksForm | ( | $ | quizId | ) |
function weightMarksForm: generates form which is used to set marks for each weight used in this quiz
Definition at line 417 of file quizedit.php.