Functions

cms/modules/quiz/quizedit.php File Reference

Go to the source code of this file.

Functions

if(!defined('__PRAGYAN_CMS')) getQuizTypes ()
 getQuestionTypes ()
 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)

Function Documentation

addItems ( insertQuery,
count 
)

add*() series of functions

Definition at line 116 of file quizedit.php.

addQuestions ( quizId,
sectionId,
count 
)

Definition at line 135 of file quizedit.php.

addSections ( quizId,
count 
)

Definition at line 129 of file quizedit.php.

deleteItem ( tableNames,
conditions,
&$  affectedRows 
)

delete*() series of functions

Definition at line 142 of file quizedit.php.

deleteQuestion ( quizId,
sectionId,
questionId 
)

Definition at line 167 of file quizedit.php.

deleteQuestionOptions ( quizId,
sectionId,
questionId 
)

Definition at line 173 of file quizedit.php.

deleteSection ( quizId,
sectionId 
)

Definition at line 161 of file quizedit.php.

getItemList ( tableName,
conditions = '1' 
)

a few miscellaneously named functions!

Definition at line 230 of file quizedit.php.

getQuestionEditForm ( quizId,
sectionId,
questionId,
dataSource 
)

Definition at line 638 of file quizedit.php.

getQuestionEditFormFieldMap (  ) 

Definition at line 106 of file quizedit.php.

getQuestionOptionList ( quizId,
sectionId,
questionId 
)

Definition at line 303 of file quizedit.php.

getQuestionOptionListHtml ( quizId,
sectionId,
questionId,
questionType,
rightAnswer,
editable = false 
)

Definition at line 307 of file quizedit.php.

getQuestionRow ( quizId,
sectionId,
questionId 
)

Definition at line 70 of file quizedit.php.

getQuestionTableHtml ( quizId,
sectionId 
)

Definition at line 245 of file quizedit.php.

getQuestionTypeBox ( questionType  ) 

Definition at line 37 of file quizedit.php.

getQuestionTypes (  ) 

Definition at line 19 of file quizedit.php.

getQuizEditForm ( quizId,
dataSource 
)

get*Form() series of functions

Definition at line 397 of file quizedit.php.

getQuizEditFormFieldMap (  ) 

get*FormFieldMap() series of functions

Definition at line 76 of file quizedit.php.

getQuizRow ( quizId  ) 

Definition at line 62 of file quizedit.php.

getQuizTypeBox ( quizType  ) 

get*TypeBox() series of functions

Definition at line 25 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 
)

Definition at line 588 of file quizedit.php.

getSectionEditFormFieldMap (  ) 

Definition at line 94 of file quizedit.php.

getSectionList ( quizId  ) 

Definition at line 241 of file quizedit.php.

getSectionRow ( quizId,
sectionId 
)

Definition at line 66 of file quizedit.php.

getSubmittedQuestionOptionListHtml ( questionType  ) 

Definition at line 339 of file quizedit.php.

getTableRow ( tableName,
condition 
)

get*Row() series of functions

Definition at line 52 of file quizedit.php.

moveItem ( itemId,
itemRank,
tableName,
idFieldName,
rankFieldName,
conditions,
direction 
)

move*() series of functions

Definition at line 180 of file quizedit.php.

moveQuestion ( quizId,
sectionId,
questionId,
direction 
)

Definition at line 219 of file quizedit.php.

moveSection ( quizId,
sectionId,
direction 
)

Definition at line 210 of file quizedit.php.

setWeightMark ( quizId,
weight,
positive,
negative 
)

Definition at line 361 of file quizedit.php.

submitQuestionEditForm ( quizId,
sectionId,
questionId 
)

Definition at line 855 of file quizedit.php.

submitQuizEditForm ( quizId  ) 

submit*Form() series of functions

Definition at line 798 of file quizedit.php.

submitSectionEditForm ( quizId,
sectionId 
)

Definition at line 827 of file quizedit.php.

weightMarksForm ( quizId  ) 

Definition at line 370 of file quizedit.php.