mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-76445 gradereport_singleview: Deprecate initial zero state view
Deprecates the \gradereport_singleview\local\screen\select class which is used to generate the initial view to select the singleview item type and the strings used by the related mustache template. This view is no longer used as we do not provide direct links to it anymore.
This commit is contained in:
parent
26f4584200
commit
41ec352b36
4 changed files with 41 additions and 1 deletions
|
@ -32,6 +32,7 @@ defined('MOODLE_INTERNAL') || die;
|
||||||
/**
|
/**
|
||||||
* The gradebook simple view - initial view to select your search options
|
* The gradebook simple view - initial view to select your search options
|
||||||
*
|
*
|
||||||
|
* @deprecated since Moodle 4.3
|
||||||
* @package gradereport_singleview
|
* @package gradereport_singleview
|
||||||
* @copyright 2014 Moodle Pty Ltd (http://moodle.com)
|
* @copyright 2014 Moodle Pty Ltd (http://moodle.com)
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
@ -44,11 +45,15 @@ class select extends screen {
|
||||||
/**
|
/**
|
||||||
* Initialise this screen
|
* Initialise this screen
|
||||||
*
|
*
|
||||||
|
* @deprecated since Moodle 4.3
|
||||||
* @param bool $selfitemisempty Has an item been selected (will be false)
|
* @param bool $selfitemisempty Has an item been selected (will be false)
|
||||||
*/
|
*/
|
||||||
public function init($selfitemisempty = false) {
|
public function init($selfitemisempty = false) {
|
||||||
global $DB;
|
global $DB;
|
||||||
|
|
||||||
|
debugging('The function ' . __FUNCTION__ . '() is deprecated as part of the deprecation process of the ' .
|
||||||
|
'\gradereport_singleview\local\screen\select class which is no longer used.', DEBUG_DEVELOPER);
|
||||||
|
|
||||||
$roleids = explode(',', get_config('moodle', 'gradebookroles'));
|
$roleids = explode(',', get_config('moodle', 'gradebookroles'));
|
||||||
|
|
||||||
$this->items = [];
|
$this->items = [];
|
||||||
|
@ -66,20 +71,28 @@ class select extends screen {
|
||||||
/**
|
/**
|
||||||
* Get the type of items on this screen, not valid so return false.
|
* Get the type of items on this screen, not valid so return false.
|
||||||
*
|
*
|
||||||
|
* @deprecated since Moodle 4.3
|
||||||
* @return string|null
|
* @return string|null
|
||||||
*/
|
*/
|
||||||
public function item_type(): ?string {
|
public function item_type(): ?string {
|
||||||
|
debugging('The function ' . __FUNCTION__ . '() is deprecated as part of the deprecation process of the ' .
|
||||||
|
'\gradereport_singleview\local\screen\select class which is no longer used.', DEBUG_DEVELOPER);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the HTML for the page.
|
* Return the HTML for the page.
|
||||||
*
|
*
|
||||||
|
* @deprecated since Moodle 4.3
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function html(): string {
|
public function html(): string {
|
||||||
global $OUTPUT, $COURSE;
|
global $OUTPUT, $COURSE;
|
||||||
|
|
||||||
|
debugging('The function ' . __FUNCTION__ . '() is deprecated as part of the deprecation process of the ' .
|
||||||
|
'\gradereport_singleview\local\screen\select class which is no longer used.', DEBUG_DEVELOPER);
|
||||||
|
|
||||||
if ($this->itemid === null) {
|
if ($this->itemid === null) {
|
||||||
$userlink = new \moodle_url('/grade/report/singleview/index.php', ['id' => $COURSE->id, 'item' => 'user_select']);
|
$userlink = new \moodle_url('/grade/report/singleview/index.php', ['id' => $COURSE->id, 'item' => 'user_select']);
|
||||||
$gradelink = new \moodle_url('/grade/report/singleview/index.php', ['id' => $COURSE->id, 'item' => 'grade_select']);
|
$gradelink = new \moodle_url('/grade/report/singleview/index.php', ['id' => $COURSE->id, 'item' => 'grade_select']);
|
||||||
|
@ -137,17 +150,27 @@ class select extends screen {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Should we show the next prev selector?
|
* Should we show the next prev selector?
|
||||||
|
*
|
||||||
|
* @deprecated since Moodle 4.3
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function supports_next_prev(): bool {
|
public function supports_next_prev(): bool {
|
||||||
|
debugging('The function ' . __FUNCTION__ . '() is deprecated as part of the deprecation process of the ' .
|
||||||
|
'\gradereport_singleview\local\screen\select class which is no longer used.', DEBUG_DEVELOPER);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Should we show the base singlereport group selector?
|
* Should we show the base singlereport group selector?
|
||||||
|
*
|
||||||
|
* @deprecated since Moodle 4.3
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function display_group_selector(): bool {
|
public function display_group_selector(): bool {
|
||||||
|
debugging('The function ' . __FUNCTION__ . '() is deprecated as part of the deprecation process of the ' .
|
||||||
|
'\gradereport_singleview\local\screen\select class which is no longer used.', DEBUG_DEVELOPER);
|
||||||
|
|
||||||
if ($this->itemid === null) {
|
if ($this->itemid === null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -157,18 +180,26 @@ class select extends screen {
|
||||||
/**
|
/**
|
||||||
* Get the heading for the screen.
|
* Get the heading for the screen.
|
||||||
*
|
*
|
||||||
|
* @deprecated since Moodle 4.3
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function heading(): string {
|
public function heading(): string {
|
||||||
|
debugging('The function ' . __FUNCTION__ . '() is deprecated as part of the deprecation process of the ' .
|
||||||
|
'\gradereport_singleview\local\screen\select class which is no longer used.', DEBUG_DEVELOPER);
|
||||||
|
|
||||||
return ' ';
|
return ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Does this screen support paging?
|
* Does this screen support paging?
|
||||||
*
|
*
|
||||||
|
* @deprecated since Moodle 4.3
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function supports_paging(): bool {
|
public function supports_paging(): bool {
|
||||||
|
debugging('The function ' . __FUNCTION__ . '() is deprecated as part of the deprecation process of the ' .
|
||||||
|
'\gradereport_singleview\local\screen\select class which is no longer used.', DEBUG_DEVELOPER);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
filtergrades,gradereport_singleview
|
filtergrades,gradereport_singleview
|
||||||
|
viewsingleuserorgradeitem,gradereport_singleview
|
||||||
|
|
|
@ -79,7 +79,6 @@ $string['ariareporttype'] = 'Select a report type to view';
|
||||||
$string['viewby'] = 'View by';
|
$string['viewby'] = 'View by';
|
||||||
$string['viewsingleuser'] = 'Select a user above to view all their grades';
|
$string['viewsingleuser'] = 'Select a user above to view all their grades';
|
||||||
$string['viewsinglegradeitem'] = 'Select a grade item above';
|
$string['viewsinglegradeitem'] = 'Select a grade item above';
|
||||||
$string['viewsingleuserorgradeitem'] = 'View all the grades of a single user or grade item.';
|
|
||||||
$string['searchgrades'] = 'Search grade items';
|
$string['searchgrades'] = 'Search grade items';
|
||||||
$string['selectagrade'] = 'Select a grade item';
|
$string['selectagrade'] = 'Select a grade item';
|
||||||
$string['selectgradeitemlink'] = 'Select a grade item';
|
$string['selectgradeitemlink'] = 'Select a grade item';
|
||||||
|
@ -88,3 +87,6 @@ $string['unsaveddatawarning'] = 'Unsaved data warning';
|
||||||
|
|
||||||
// Deprecated since Moodle 4.1.
|
// Deprecated since Moodle 4.1.
|
||||||
$string['filtergrades'] = 'Show grades for {$a}.';
|
$string['filtergrades'] = 'Show grades for {$a}.';
|
||||||
|
|
||||||
|
// Deprecated since Moodle 4.3.
|
||||||
|
$string['viewsingleuserorgradeitem'] = 'View all the grades of a single user or grade item.';
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
This files describes API changes in /grade/report/*,
|
This files describes API changes in /grade/report/*,
|
||||||
information provided here is intended especially for developers.
|
information provided here is intended especially for developers.
|
||||||
|
|
||||||
|
=== 4.3 ===
|
||||||
|
|
||||||
|
* The \gradereport_singleview\local\screen\select has been deprecated. This class generates the output for the initial
|
||||||
|
view to select the single view item type (user or grade item) which is no longer actively used as we do not provide
|
||||||
|
direct links to it.
|
||||||
|
|
||||||
=== 4.2 ===
|
=== 4.2 ===
|
||||||
* 'Show calculations' setting has been removed from grader report (link is moved to grade action menu)
|
* 'Show calculations' setting has been removed from grader report (link is moved to grade action menu)
|
||||||
* 'Show activity icons' setting has been removed from grader report
|
* 'Show activity icons' setting has been removed from grader report
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue