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.
Variable Documentation
Print out the categories with all the knobs.
Definition at line 61 of file index.php.
| $strfulllistofcourses = get_string('fulllistofcourses') |
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.