Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Files | Namespaces | Classes | Functions | Variables
gradereport_overview

Files

file  access.php
 Defines capabilities for the overview report.
 
file  external.php
 External grade report overview API.
 
file  grade_report_viewed.php
 Overview report viewed event.
 
file  lib.php
 Definition of the grade_overview_report class.
 
file  provider.php
 Privacy Subsystem implementation for gradereport_overview.
 
file  renderer.php
 Renderer for the gradebook overview report.
 
file  services.php
 Overview grade report external functions and service definitions.
 
file  settings.php
 Defines site settings for the overview gradebook report.
 
file  upgrade.php
 Grade overview report upgrade steps.
 
file  version.php
 Version details for the overview gradebook report.
 

Namespaces

 gradereport_overview\event
  
 
 gradereport_overview\privacy
  
 

Classes

class  grade_report_overview
 Class providing an API for the overview report building and displaying. More...
 
class  gradereport_overview\event\grade_report_viewed
 Overview report viewed event class. More...
 
class  gradereport_overview\privacy\provider
 Privacy Subsystem for gradereport_overview implementing null_provider. More...
 
class  gradereport_overview_external
 
class  gradereport_overview_renderer
 Custom renderer for the user grade report. More...
 

Functions

 grade_report_overview_settings_definition (&$mform)
 
 gradereport_overview_myprofile_navigation (core_user\output\myprofile\tree $tree, $user, $iscurrentuser, $course)
 Add nodes to myprofile page. More...
 
 xmldb_gradereport_overview_upgrade ($oldversion)
 Function to upgrade grade overview report. More...
 

Variables

 $capabilities
 
 $functions
 
$plugin component = 'gradereport_overview'
 
$plugin requires = 2019111200
 
$plugin version = 2019111800
 

Detailed Description

Function Documentation

◆ gradereport_overview_myprofile_navigation()

gradereport_overview_myprofile_navigation ( core_user\output\myprofile\tree  $tree,
  $user,
  $iscurrentuser,
  $course 
)

Add nodes to myprofile page.

Parameters
core_user\output\myprofile\tree$treeTree object
stdClass$useruser object
bool$iscurrentuser
stdClass$courseCourse object

◆ xmldb_gradereport_overview_upgrade()

xmldb_gradereport_overview_upgrade (   $oldversion)

Function to upgrade grade overview report.

Parameters
int$oldversionthe version we are upgrading from
Return values
boolresult

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'gradereport/overview:view' => array(
'riskbitmask' => RISK_PERSONAL,
'captype' => 'read',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => array(
'user' => CAP_ALLOW
)
)
)

◆ $functions

$functions
Initial value:
= array(
'gradereport_overview_get_course_grades' => array(
'classname' => 'gradereport_overview_external',
'methodname' => 'get_course_grades',
'description' => 'Get the given user courses final grades',
'type' => 'read',
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
),
'gradereport_overview_view_grade_report' => array(
'classname' => 'gradereport_overview_external',
'methodname' => 'view_grade_report',
'description' => 'Trigger the report view event',
'type' => 'write',
'capabilities' => 'gradereport/overview:view',
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
)
)
RISK_PERSONAL
const RISK_PERSONAL
Capability allows access to personal user information - see http://docs.moodle.org/dev/Hardening_new_...
Definition: accesslib.php:145
MOODLE_OFFICIAL_MOBILE_SERVICE
const MOODLE_OFFICIAL_MOBILE_SERVICE
Moodle mobile app service name.
Definition: moodlelib.php:501
CONTEXT_COURSE
const CONTEXT_COURSE
Course context level - one instances for each course.
Definition: accesslib.php:128
CAP_ALLOW
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition: accesslib.php:115