Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
gradereport_outcomes

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 = 2023041800
 
 $report_info = array()
 
 $row = 0
 
 $showonlyactiveenrol = get_user_preferences('grade_report_showonlyactiveenrol', $defaultgradeshowactiveenrol)
 
$plugin component = 'gradereport_outcomes'
 
 foreach ( $lmselements as $element) = '</table>'
 
$plugin version = 2023042400
 

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:
= gradereport_outcomes\event\grade_report_viewed::create(
array(
'context' => $context,
'courseid' => $courseid,
)
)