mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-34204' of git://github.com/timhunt/moodle
This commit is contained in:
commit
380186484b
2 changed files with 6 additions and 2 deletions
|
@ -107,7 +107,7 @@ grade_regrade_final_grades($courseid);
|
||||||
|
|
||||||
// Perform actions
|
// Perform actions
|
||||||
if (!empty($target) && !empty($action) && confirm_sesskey()) {
|
if (!empty($target) && !empty($action) && confirm_sesskey()) {
|
||||||
grade_report_grader::process_action($target, $action);
|
grade_report_grader::do_process_action($target, $action);
|
||||||
}
|
}
|
||||||
|
|
||||||
$reportname = get_string('pluginname', 'gradereport_grader');
|
$reportname = get_string('pluginname', 'gradereport_grader');
|
||||||
|
|
|
@ -1584,13 +1584,17 @@ class grade_report_grader extends grade_report {
|
||||||
return $icon;
|
return $icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function process_action($target, $action) {
|
||||||
|
return self::do_process_action($target, $action);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Processes a single action against a category, grade_item or grade.
|
* Processes a single action against a category, grade_item or grade.
|
||||||
* @param string $target eid ({type}{id}, e.g. c4 for category4)
|
* @param string $target eid ({type}{id}, e.g. c4 for category4)
|
||||||
* @param string $action Which action to take (edit, delete etc...)
|
* @param string $action Which action to take (edit, delete etc...)
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public function process_action($target, $action) {
|
public static function do_process_action($target, $action) {
|
||||||
// TODO: this code should be in some grade_tree static method
|
// TODO: this code should be in some grade_tree static method
|
||||||
$targettype = substr($target, 0, 1);
|
$targettype = substr($target, 0, 1);
|
||||||
$targetid = substr($target, 1);
|
$targetid = substr($target, 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue