Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
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

namespace  gradereport_outcomes\event
  
 
namespace  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)
 
 $plugin = 2020060900
 
 $report_info = array()
 
 $row = 0
 
 $showonlyactiveenrol = get_user_preferences('grade_report_showonlyactiveenrol', $defaultgradeshowactiveenrol)
 
$plugin component = 'gradereport_outcomes'
 
$plugin version = 2020061500
 

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
)
)
)
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

◆ $event

$event
Initial value:
array(
'context' => $context,
'courseid' => $courseid,
)
)
static create(array $data=null)
Create new event.
Definition: base.php:173