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

Go to the source code of this file.

Namespaces

namespace  course

Functions

 print_category_edit ($category, $displaylist, $parentslist, $depth=-1, $up=false, $down=false)

Variables

 $categoryedit = optional_param('categoryedit', -1,PARAM_BOOL)
 $delete = optional_param('delete',0,PARAM_INT)
 $hide = optional_param('hide',0,PARAM_INT)
 $show = optional_param('show',0,PARAM_INT)
 $move = optional_param('move',0,PARAM_INT)
 $moveto = optional_param('moveto',-1,PARAM_INT)
 $moveup = optional_param('moveup',0,PARAM_INT)
 $movedown = optional_param('movedown',0,PARAM_INT)
 $site = get_site()
 $systemcontext = get_context_instance(CONTEXT_SYSTEM)
 $strcategories = get_string('categories')
 Print out the categories with all the knobs.
 $strcategory = get_string('category')
 $strcourses = get_string('courses')
 $stredit = get_string('edit')
 $strdelete = get_string('delete')
 $straction = get_string('action')
 $strfulllistofcourses = get_string('fulllistofcourses')
 if (!$adminediting)
 Unless it's an editing admin, just print the regular listing of courses/categories.
 $strmovecategoryto = get_string('movecategoryto')
 $displaylist = array()
 $parentlist = array()
 $displaylist [0] = get_string('top')

Function Documentation

print_category_edit ( category,
displaylist,
parentslist,
depth = -1,
up = false,
down = false 
)

Recursive function to print all the categories ready for editing

Print little icons

Definition at line 285 of file index.php.

Here is the call graph for this function:


Variable Documentation

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

Definition at line 30 of file index.php.

Definition at line 31 of file index.php.

$displaylist = array()

Definition at line 250 of file index.php.

$displaylist[0] = get_string('top')

Definition at line 253 of file index.php.

$hide = optional_param('hide',0,PARAM_INT)

Definition at line 32 of file index.php.

Definition at line 34 of file index.php.

Definition at line 37 of file index.php.

Definition at line 35 of file index.php.

Definition at line 36 of file index.php.

$parentlist = array()

Definition at line 251 of file index.php.

$show = optional_param('show',0,PARAM_INT)

Definition at line 33 of file index.php.

$site = get_site()

Definition at line 39 of file index.php.

$straction = get_string('action')

Definition at line 66 of file index.php.

$strcategories = get_string('categories')

Print out the categories with all the knobs.

Definition at line 61 of file index.php.

$strcategory = get_string('category')

Definition at line 62 of file index.php.

$strcourses = get_string('courses')

Definition at line 63 of file index.php.

$strdelete = get_string('delete')

Definition at line 65 of file index.php.

$stredit = get_string('edit')

Definition at line 64 of file index.php.

$strfulllistofcourses = get_string('fulllistofcourses')

Definition at line 67 of file index.php.

$strmovecategoryto = get_string('movecategoryto')

Definition at line 247 of file index.php.

Definition at line 41 of file index.php.

if (!empty($delete) and confirm_sesskey()) if (!$categories=get_categories()) if (!empty($move) and($moveto >=0) and confirm_sesskey()) if ($hide and confirm_sesskey()) else if ($show and confirm_sesskey()) if((!empty($moveup) or!empty($movedown)) and confirm_sesskey())

Unless it's an editing admin, just print the regular listing of courses/categories.

Delete a category.

Everything else is editing on mode.

Create a default category if necessary Move a category to a new parent if required Hide or show a category Move a category up or down Print headings

Definition at line 71 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations