Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/quiz/edit.php File Reference

Go to the source code of this file.

Namespaces

namespace  mod
 

Local Library of functions for module scorm.


Functions

 module_specific_buttons ($cmid, $cmoptions)
 module_specific_controls ($totalnumber, $recurse, $category, $cmid, $cmoptions)

Variables

 $quiz_reordertool = optional_param('reordertool', -1, PARAM_BOOL)
 $quiz_qbanktool = optional_param('qbanktool', -1, PARAM_BOOL)
 $scrollpos = optional_param('scrollpos', '', PARAM_INT)
$quiz questions = quiz_clean_layout($quiz->questions)
 $defaultcategoryobj = question_make_default_categories($contexts->all())
 $defaultcategory = $defaultcategoryobj->id . ',' . $defaultcategoryobj->contextid
 $pagetitle = get_string('editingquiz', 'quiz')
if($quiz_reordertool) $course = $DB->get_record('course', array('id' => $quiz->course))
if(!$course$questionbank = new quiz_question_bank_view($contexts, $thispageurl, $course, $cm, $quiz)
if(empty($quiz->grades)) if($quiz->
shufflequestions) 
$selectedquestionids = array()
 $params = (array) data_submitted()
foreach($params as $key=> $value$afteractionurl = new moodle_url($thispageurl)
if($scrollpos) if(($up=optional_param('up',
false, PARAM_INT))&&confirm_sesskey())
if(($down=optional_param('down',
false, PARAM_INT))&&confirm_sesskey())
if(optional_param('repaginate',
false, PARAM_BOOL)&&confirm_sesskey())
if(($addquestion=optional_param('addquestion',
0, PARAM_INT))&&confirm_sesskey())
if(optional_param('add', false,
PARAM_BOOL)&&confirm_sesskey())
if((optional_param('addrandom',
false, PARAM_BOOL))&&confirm_sesskey())
if(optional_param('addnewpagesafterselected',
null, PARAM_CLEAN)&&!empty($selectedquestionids)&&confirm_sesskey()) 
$addpage = optional_param('addpage', false, PARAM_INT)
if($addpage!==false
&&confirm_sesskey()) 
$deleteemptypage = optional_param('deleteemptypage', false, PARAM_INT)
if(($deleteemptypage!==false)&&confirm_sesskey()) $remove = optional_param('remove', false, PARAM_INT)
 $node = $PAGE->settingsnav->find('mod_quiz_edit', navigation_node::TYPE_SETTING)
 if ($node)
 $quizeditconfig = new stdClass()
$quizeditconfig url = $thispageurl->out(true, array('qbanktool' => '0'))
$quizeditconfig dialoglisteners = array()
 $numberoflisteners = max(quiz_number_of_pages($quiz->questions), 1)
 $tabindex = 0
 $notifystrings = array()

Function Documentation

module_specific_buttons ( cmid,
cmoptions 
)

Callback function called from question_list() function (which is called from showbank()) Displays button in form with checkboxes for each question.

Definition at line 56 of file edit.php.

Here is the caller graph for this function:

module_specific_controls ( totalnumber,
recurse,
category,
cmid,
cmoptions 
)

Callback function called from question_list() function (which is called from showbank())

Definition at line 72 of file edit.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

if ($scrollpos) if (($up=optional_param('up', false, PARAM_INT))&&confirm_sesskey()) if (($down=optional_param('down', false, PARAM_INT))&&confirm_sesskey()) if (optional_param('repaginate', false, PARAM_BOOL)&&confirm_sesskey()) if (($addquestion=optional_param('addquestion', 0, PARAM_INT))&&confirm_sesskey()) if (optional_param('add', false, PARAM_BOOL)&&confirm_sesskey()) if ((optional_param('addrandom', false, PARAM_BOOL))&&confirm_sesskey()) if (optional_param('addnewpagesafterselected', null, PARAM_CLEAN)&&!empty($selectedquestionids)&&confirm_sesskey()) $addpage = optional_param('addpage', false, PARAM_INT)

Definition at line 259 of file edit.php.

foreach ($params as $key=> $value) $afteractionurl = new moodle_url($thispageurl)

Definition at line 185 of file edit.php.

if ($quiz_reordertool) $course = $DB->get_record('course', array('id' => $quiz->course))

Definition at line 150 of file edit.php.

$defaultcategory = $defaultcategoryobj->id . ',' . $defaultcategoryobj->contextid

Definition at line 124 of file edit.php.

$defaultcategoryobj = question_make_default_categories($contexts->all())

Definition at line 123 of file edit.php.

if ($addpage!==false &&confirm_sesskey()) $deleteemptypage = optional_param('deleteemptypage', false, PARAM_INT)

Definition at line 267 of file edit.php.

$node = $PAGE->settingsnav->find('mod_quiz_edit', navigation_node::TYPE_SETTING)

Definition at line 406 of file edit.php.

$notifystrings = array()

Definition at line 501 of file edit.php.

$numberoflisteners = max(quiz_number_of_pages($quiz->questions), 1)

Definition at line 416 of file edit.php.

$pagetitle = get_string('editingquiz', 'quiz')

Definition at line 145 of file edit.php.

$params = (array) data_submitted()

Definition at line 178 of file edit.php.

if (!$course) $questionbank = new quiz_question_bank_view($contexts, $thispageurl, $course, $cm, $quiz)

Definition at line 155 of file edit.php.

$quiz_qbanktool = optional_param('qbanktool', -1, PARAM_BOOL)

Definition at line 116 of file edit.php.

$quiz_reordertool = optional_param('reordertool', -1, PARAM_BOOL)

Definition at line 115 of file edit.php.

$quizeditconfig = new stdClass()

Definition at line 413 of file edit.php.

if (($deleteemptypage!==false)&&confirm_sesskey()) $remove = optional_param('remove', false, PARAM_INT)

Definition at line 275 of file edit.php.

Definition at line 117 of file edit.php.

if (empty($quiz->grades)) if ($quiz->shufflequestions) $selectedquestionids = array()

Definition at line 177 of file edit.php.

$tabindex = 0

Definition at line 498 of file edit.php.

$quizeditconfig dialoglisteners = array()

Definition at line 415 of file edit.php.

if(!$quiz_reordertool)

Definition at line 407 of file edit.php.

Definition at line 121 of file edit.php.

string Post url = $thispageurl->out(true, array('qbanktool' => '0'))

Definition at line 414 of file edit.php.

 All Data Structures Namespaces Files Functions Variables Enumerations