Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
gradereport_grader

Topics

 test
 
 

Directories

directory classes
  
 
directory tests
  
 

Namespaces

namespace  gradereport_grader\event
 Grader report viewed event.
 
namespace  gradereport_grader\external
  
 
namespace  gradereport_grader\output
  
 
namespace  gradereport_grader\privacy
 Privacy Subsystem implementation for gradereport_grader.
 

Classes

class  grade_report_grader
 Definition of the grader report class. More...
 
class  grader_report_preferences_form
 First implementation of the preferences in the form of a moodleform. More...
 
class  gradereport_grader\event\grade_report_viewed
 Grader report viewed event class. More...
 
class  gradereport_grader\external\get_users_in_report
 External grade report grader API. More...
 
class  gradereport_grader\output\action_bar
 Renderable class for the action bar elements in the grader report. More...
 
class  gradereport_grader\privacy\provider
 Privacy Subsystem for gradereport_grader implementing null_provider. More...
 

Functions

 gradereport_grader_get_report_link (context_course $context, int $courseid, array $element, grade_plugin_return $gpr, string $mode, ?stdClass $templatecontext)
 Adds report specific context variable.
 
 xmldb_gradereport_grader_upgrade (int $oldversion)
 Function to upgrade grader report.
 

Variables

 $capabilities
 
 $functions
 
 $plugin = 2023100400
 
$plugin component = 'gradereport_grader'
 
 if (!defined( 'MOODLE_INTERNAL'))
 Form for grader report preferences.
 
$plugin version = 2023100900
 

Detailed Description

Function Documentation

◆ gradereport_grader_get_report_link()

gradereport_grader_get_report_link ( context_course $context,
int $courseid,
array $element,
grade_plugin_return $gpr,
string $mode,
?stdClass $templatecontext )

Adds report specific context variable.

Parameters
context_course$contextCourse context
int$courseidCourse ID
array$elementAn array representing an element in the grade_tree
grade_plugin_return$gprA grade_plugin_return object
string$modeNot used
stdClass | null$templatecontextTemplate context
Return values
stdClass|null

◆ xmldb_gradereport_grader_upgrade()

xmldb_gradereport_grader_upgrade ( int $oldversion)

Function to upgrade grader report.

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

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'gradereport/grader:view' => array(
'riskbitmask' => RISK_PERSONAL,
'captype' => 'read',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
)
)
const CONTEXT_COURSE
Course context level - one instances for each course.
Definition accesslib.php:128
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition accesslib.php:115
const RISK_PERSONAL
Capability allows access to personal user information - see
Definition accesslib.php:145

◆ $functions

$functions
Initial value:
= [
'gradereport_grader_get_users_in_report' => [
'classname' => 'gradereport_grader\\external\\get_users_in_report',
'methodname' => 'execute',
'description' => 'Returns the dataset of users within the report',
'type' => 'read',
'ajax' => true,
'capabilities' => 'gradereport/grader:view',
],
]
const MOODLE_OFFICIAL_MOBILE_SERVICE
Moodle mobile app service name.
Definition moodlelib.php:535

◆ if

if(!defined('MOODLE_INTERNAL')) ( ! defined 'MOODLE_INTERNAL')

Form for grader report preferences.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later