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

Files

file  access.php
 Defines capabilities for the outcomes report.
 
file  grade_report_viewed.php
 Outcomes report viewed event.
 
file  index.php
 The gradebook outcomes report.
 
file  provider.php
 Privacy Subsystem implementation for gradereport_outcomes.
 
file  version.php
 Version details for the outcomes report.
 

Namespaces

 gradereport_outcomes\event
  
 
 gradereport_outcomes\privacy
  
 

Classes

class  gradereport_outcomes\event\grade_report_viewed
 Outcomes report viewed event class. More...
 
class  gradereport_outcomes\privacy\provider
 Privacy Subsystem for gradereport_outcomes implementing null_provider. More...
 

Variables

 $capabilities
 
 $context = context_course::instance($course->id)
 
 $courseid = required_param('id', PARAM_INT)
 
 $defaultgradeshowactiveenrol = !empty($CFG->grade_report_showonlyactiveenrol)
 
 $event
 
if($showonlyactiveenrol) foreach($outcomes as $outcomeid=> $outcome) $html = '<table class="generaltable boxaligncenter" width="90%" cellspacing="1" cellpadding="5" summary="Outcomes Report">' . "\n"
 
 $outcomes = grade_outcome::fetch_all_available($courseid)
 
 $report_info = array()
 
 $row = 0
 
 $showonlyactiveenrol = get_user_preferences('grade_report_showonlyactiveenrol', $defaultgradeshowactiveenrol)
 
$plugin component = 'gradereport_outcomes'
 
$plugin requires = 2019111200
 
$plugin version = 2019111800
 

Detailed Description

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'gradereport/outcomes:view' => array(
'riskbitmask' => RISK_PERSONAL,
'captype' => 'read',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => array(
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
)
)
)

◆ $event

$event
Initial value:
array(
'context' => $context,
'courseid' => $courseid,
)
)
RISK_PERSONAL
const RISK_PERSONAL
Capability allows access to personal user information - see http://docs.moodle.org/dev/Hardening_new_...
Definition: accesslib.php:145
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
core\event\base\create
static create(array $data=null)
Create new event.
Definition: base.php:173