Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/grade/edit/tree/index.php File Reference

Go to the source code of this file.

Namespaces

namespace  moodlecore

Variables

 $courseid = required_param('id', PARAM_INT)
 $action = optional_param('action', 0, PARAM_ALPHA)
 $eid = optional_param('eid', 0, PARAM_ALPHANUM)
 $category = optional_param('category', null, PARAM_INT)
 $aggregationtype = optional_param('aggregationtype', null, PARAM_INT)
 $showadvanced = optional_param('showadvanced', -1, PARAM_BOOL)
 $url = new moodle_url('/grade/edit/tree/index.php', array('id' => $courseid))
 $context = get_context_instance(CONTEXT_COURSE, $course->id)
 $gpr = new grade_plugin_return(array('type'=>'edit', 'plugin'=>'tree', 'courseid'=>$courseid))
 return tracking object
 $returnurl = $gpr->get_return_url(null)
if(!isset($USER->gradeediting)) $current_view = ''
 Build editing on/off buttons.
 $gtree = new grade_tree($courseid, false, false)
 $strgrades = get_string('grades')
 $strgraderreport = get_string('graderreport', 'grades')
 $strcategoriesedit = get_string('categoriesedit', 'grades')
 $strcategoriesanditems = get_string('categoriesanditems', 'grades')
 $moving = false
 $movingeid = false
if($action== 'moveselect') $grade_edit_tree = new grade_edit_tree($gtree, $movingeid, $gpr)
switch($action) if($grade_edit_tree->
moving) 
$current_view_str = ''
if($current_view!= '') $recreatetree = false
 if ($recreatetree)
if($moving) die

Variable Documentation

Definition at line 32 of file index.php.

$aggregationtype = optional_param('aggregationtype', null, PARAM_INT)

Definition at line 35 of file index.php.

Definition at line 34 of file index.php.

Definition at line 51 of file index.php.

Definition at line 31 of file index.php.

if (!isset($USER->gradeediting)) $current_view = ''

Build editing on/off buttons.

Definition at line 73 of file index.php.

switch ($action) if ($grade_edit_tree->moving) $current_view_str = ''

Definition at line 223 of file index.php.

$eid = optional_param('eid', 0, PARAM_ALPHANUM)

Definition at line 33 of file index.php.

$gpr = new grade_plugin_return(array('type'=>'edit', 'plugin'=>'tree', 'courseid'=>$courseid))

return tracking object

Definition at line 65 of file index.php.

if ($action== 'moveselect') $grade_edit_tree = new grade_edit_tree($gtree, $movingeid, $gpr)

Definition at line 152 of file index.php.

$gtree = new grade_tree($courseid, false, false)

Definition at line 122 of file index.php.

$moving = false

Definition at line 142 of file index.php.

$movingeid = false

Definition at line 143 of file index.php.

if ($current_view!= '') $recreatetree = false

Definition at line 235 of file index.php.

$returnurl = $gpr->get_return_url(null)

Definition at line 66 of file index.php.

$showadvanced = optional_param('showadvanced', -1, PARAM_BOOL)

Definition at line 36 of file index.php.

$strcategoriesanditems = get_string('categoriesanditems', 'grades')

Definition at line 140 of file index.php.

$strcategoriesedit = get_string('categoriesedit', 'grades')

Definition at line 139 of file index.php.

$strgraderreport = get_string('graderreport', 'grades')

Definition at line 138 of file index.php.

$strgrades = get_string('grades')

Definition at line 137 of file index.php.

$url = new moodle_url('/grade/edit/tree/index.php', array('id' => $courseid))

Definition at line 38 of file index.php.

if ($moving) die

Definition at line 382 of file index.php.

if (!$moving) if(!$moving &&count($grade_edit_tree->categories) > 1)

Definition at line 331 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations