|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Data Structures | |
| class | graded_users_iterator |
| class | grade_plugin_info |
| class | grade_plugin_return |
| class | grade_structure |
| class | grade_seq |
| class | grade_tree |
| class | grade_helper |
Namespaces | |
| namespace | moodlecore |
Functions | |
| print_graded_users_selector ($course, $actionpage, $userid=0, $groupid=0, $includeall=true, $return=false) | |
| grade_get_graded_users_select ($report, $course, $userid, $groupid, $includeall) | |
| print_grade_plugin_selector ($plugin_info, $active_type, $active_plugin, $return=false) | |
| grade_print_tabs ($active_type, $active_plugin, $plugin_info, $return=false) | |
| grade_get_plugin_info ($courseid, $active_type, $active_plugin) | |
| print_grade_page_head ($courseid, $active_type, $active_plugin=null, $heading=false, $return=false, $buttons=false, $shownavigation=true) | |
| grade_build_nav ($path, $pagename=null, $id=null) | |
| grade_button ($type, $courseid, $object) | |
| grade_extend_settings ($plugininfo, $courseid) | |
| grade_build_nav | ( | $ | path, |
| $ | pagename = null, |
||
| $ | id = null |
||
| ) |
Function central to gradebook for building and printing the navigation (breadcrumb trail).
| string | $path | The path of the calling script (using __FILE__?) |
| string | $pagename | The language string to use as the last part of the navigation (non-link) |
| mixed | $id | Either a plain integer (assuming the key is 'id') or an array of keys and values (e.g courseid => $courseid, itemid...) |
Definition at line 911 of file lib.php.

| grade_button | ( | $ | type, |
| $ | courseid, | ||
| $ | object | ||
| ) |
| grade_extend_settings | ( | $ | plugininfo, |
| $ | courseid | ||
| ) |
This method adds settings to the settings block for the grade system and its plugins
moodle_page $PAGE
Definition at line 2193 of file lib.php.


| grade_get_graded_users_select | ( | $ | report, |
| $ | course, | ||
| $ | userid, | ||
| $ | groupid, | ||
| $ | includeall | ||
| ) |
| grade_get_plugin_info | ( | $ | courseid, |
| $ | active_type, | ||
| $ | active_plugin | ||
| ) |
grade_get_plugin_info
| int | $courseid | The course id |
| string | $active_type | type of plugin on current page - import, export, report or edit |
| string | $active_plugin | active plugin type - grader, user, cvs, ... |
Definition at line 475 of file lib.php.


| grade_print_tabs | ( | $ | active_type, |
| $ | active_plugin, | ||
| $ | plugin_info, | ||
| $ | return = false |
||
| ) |
Print grading plugin selection tab-based navigation.
| string | $active_type | type of plugin on current page - import, export, report or edit |
| string | $active_plugin | active plugin type - grader, user, cvs, ... |
| array | $plugin_info | Array of plugins |
| boolean | $return | return as string |
Definition at line 405 of file lib.php.


| print_grade_page_head | ( | $ | courseid, |
| $ | active_type, | ||
| $ | active_plugin = null, |
||
| $ | heading = false, |
||
| $ | return = false, |
||
| $ | buttons = false, |
||
| $ | shownavigation = true |
||
| ) |
Prints the page headers, breadcrumb trail, page heading, (optional) dropdown navigation menu and (optional) navigation tabs for any gradebook page. All gradebook pages MUST use these functions in favour of the usual print_header(), print_header_simple(), print_heading() etc. !IMPORTANT! Use of tabs.php file in gradebook pages is forbidden unless tabs are switched off at the site level for the gradebook ($CFG->grade_navmethod = GRADE_NAVMETHOD_DROPDOWN).
| int | $courseid | Course id |
| string | $active_type | The type of the current page (report, settings, import, export, scales, outcomes, letters) |
| string | $active_plugin | The plugin of the current page (grader, fullview etc...) |
| string | $heading | The heading of the page. Tries to guess if none is given |
| boolean | $return | Whether to return (true) or echo (false) the HTML generated by this function |
| string | $bodytags | Additional attributes that will be added to the <body> tag |
| string | $buttons | Additional buttons to display on the page |
| boolean | $shownavigation | should the gradebook navigation drop down (or tabs) be shown? |
Definition at line 633 of file lib.php.

| print_grade_plugin_selector | ( | $ | plugin_info, |
| $ | active_type, | ||
| $ | active_plugin, | ||
| $ | return = false |
||
| ) |
| print_graded_users_selector | ( | $ | course, |
| $ | actionpage, | ||
| $ | userid = 0, |
||
| $ | groupid = 0, |
||
| $ | includeall = true, |
||
| $ | return = false |
||
| ) |
Print a selection popup form of the graded users in a course.
| int | $course | id of the course |
| string | $actionpage | The page receiving the data from the popoup form |
| int | $userid | id of the currently selected user (or 'all' if they are all selected) |
| int | $groupid | id of requested group, 0 means all |
| int | $includeall | bool include all option |
| bool | $return | If true, will return the HTML, otherwise, will print directly |
Definition at line 306 of file lib.php.
