Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Namespaces | Classes | Variables
gradereport_grader

Files

file  access.php
 Capability definition for the gradebook grader report.
 
file  behat_gradereport_grader.php
 Behat steps definitions for drag and drop onto image.
 
file  grade_report_viewed.php
 Grader report viewed event.
 
file  lib.php
 Definition of the grader report class.
 
file  preferences_form.php
 Form for grader report preferences.
 
file  provider.php
 Privacy Subsystem implementation for gradereport_grader.
 
file  settings.php
 Defines site config settings for the grader report.
 
file  tabs.php
 Outputs navigation tabs for the grader report.
 
file  version.php
 Version details for the grader report.
 

Namespaces

namespace  gradereport_grader\event
  
 
namespace  gradereport_grader\privacy
  
 

Classes

class  behat_gradereport_grader
 Steps definitions related with the drag and drop onto image question type. More...
 
class  grade_report_grader
 Class providing an API for the grader report building and displaying. 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\privacy\provider
 Privacy Subsystem for gradereport_grader implementing null_provider. More...
 

Variables

 $capabilities
 
 $plugin = 2020060900
 
 $row = $tabs = array()
 
 $row []
 
 $tabcontext = context_course::instance($COURSE->id)
 
if(has_capability('moodle/grade:manage', $tabcontext)||has_capability('moodle/grade:edit', $tabcontext)||has_capability('gradereport/grader:view', $tabcontext)) $tabs [] = $row
 
$plugin component = 'gradereport_grader'
 
 if (!defined( 'MOODLE_INTERNAL'))
 
$plugin version = 2020061500
 

Detailed Description

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

◆ $row

$row[]
Initial value:
= new tabobject('graderreport',
$CFG->wwwroot.'/grade/report/grader/index.php?id='.$courseid,
get_string('pluginname', 'gradereport_grader'))
Stores one tab.
Definition: outputcomponents.php:3846
global object $CFG
$CFG
Definition: componentlib.class.php:134