Go to the source code of this file.
Namespaces |
| namespace | moodlecore |
Functions |
| | grade_print_scale_link ($courseid, $scale, $gpr) |
Variables |
| | $courseid = optional_param('id', 0, PARAM_INT) |
| | $action = optional_param('action', '', PARAM_ALPHA) |
| | $strshortname = get_string('outcomeshortname', 'grades') |
| | Make sure they can even access this course.
|
| | $strfullname = get_string('outcomefullname', 'grades') |
| | $strscale = get_string('scale') |
| | $strstandardoutcome = get_string('outcomesstandard', 'grades') |
| | $strcustomoutcomes = get_string('outcomescustom', 'grades') |
| | $strcreatenewoutcome = get_string('outcomecreate', 'grades') |
| | $stritems = get_string('items', 'grades') |
| | $strcourses = get_string('courses') |
| | $stredit = get_string('edit') |
| switch($action) | $systemcontext = get_context_instance(CONTEXT_SYSTEM) |
| | $caneditsystemscales = has_capability('moodle/course:managescales', $systemcontext) |
| | $heading = get_string('outcomes', 'grades') |
if($courseid and $outcomes=grade_outcome::fetch_all_local($courseid))
if($outcomes=grade_outcome::fetch_all_global())
if($courseid) | foreach ($outcomes_tables as $table) |
| | if (!empty($outcomes_tables)) |
Function Documentation
Local shortcut function for creating a link to a scale.
- Parameters:
-
- Returns:
- string html
Definition at line 250 of file index.php.
Variable Documentation
| $caneditsystemscales = has_capability('moodle/course:managescales', $systemcontext) |
| $strcreatenewoutcome = get_string('outcomecreate', 'grades') |
| $strcustomoutcomes = get_string('outcomescustom', 'grades') |
| $strfullname = get_string('outcomefullname', 'grades') |
| $strshortname = get_string('outcomeshortname', 'grades') |
Make sure they can even access this course.
Definition at line 59 of file index.php.
| $strstandardoutcome = get_string('outcomesstandard', 'grades') |
| if(!empty($outcomes_tables)) |