Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
gradereport_singleview

Namespaces

namespace  gradereport_singleview\event
  
 
namespace  gradereport_singleview\external
  
 
namespace  gradereport_singleview\local\screen
  
 
namespace  gradereport_singleview\local\ui
  
 
namespace  gradereport_singleview\output
  
 
namespace  gradereport_singleview\privacy
  
 
namespace  gradereport_singleview\report
  
 

Classes

class  gradereport_singleview\external\singleview
 
interface  gradereport_singleview\local\screen\filterable_items
 The gradebook interface for a filterable class. More...
 
class  gradereport_singleview\local\screen\grade
 The screen with a list of users. More...
 
class  gradereport_singleview\local\screen\grade_select
 
class  gradereport_singleview\local\screen\screen
 Abstract class used as a base for the 3 screens. More...
 
class  gradereport_singleview\local\screen\select
 The gradebook simple view - initial view to select your search options. More...
 
interface  gradereport_singleview\local\screen\selectable_items
 Interface for a list of selectable things. More...
 
class  gradereport_singleview\local\screen\tablelike
 The gradebook simple view - base class for the table. More...
 
class  gradereport_singleview\local\screen\user
 The user screen. More...
 
class  gradereport_singleview\local\screen\user_select
 
class  gradereport_singleview\local\ui\attribute_format
 Class that builds an element tree that can be converted to a string. More...
 
interface  gradereport_singleview\local\ui\be_checked
 Is this thing checked? More...
 
interface  gradereport_singleview\local\ui\be_disabled
 Simple interface implemented to add behaviour that an element can be checked to see if it should be disabled. More...
 
interface  gradereport_singleview\local\ui\be_readonly
 Simple interface implemented to add behaviour that an element can be checked to see if it should be read-only. More...
 
class  gradereport_singleview\local\ui\bulk_insert
 Checkbox element used for bulk inserting values in the gradebook. More...
 
class  gradereport_singleview\local\ui\checkbox_attribute
 A checkbox ui element. More...
 
class  gradereport_singleview\local\ui\dropdown_attribute
 Drop down list (select list) element. More...
 
class  gradereport_singleview\local\ui\element
 UI Element for an excluded grade_grade. More...
 
class  gradereport_singleview\local\ui\empty_element
 Element that just generates some text. More...
 
class  gradereport_singleview\local\ui\exclude
 Class that represents the exclude checkbox on a grade_grade. More...
 
class  gradereport_singleview\local\ui\feedback
 Class used to render a feedback input box. More...
 
class  gradereport_singleview\local\ui\finalgrade
 UI element representing the finalgrade column. More...
 
class  gradereport_singleview\local\ui\grade_attribute_format
 Abstract class for a form element representing something about a grade_grade. More...
 
class  gradereport_singleview\local\ui\override
 An override grade checkbox element. More...
 
class  gradereport_singleview\local\ui\range
 UI element that generates a grade_item min/max range (text only). More...
 
class  gradereport_singleview\local\ui\text_attribute
 UI element for a text input field. More...
 
interface  gradereport_singleview\local\ui\unique_name
 A form element with a name field. More...
 
interface  gradereport_singleview\local\ui\unique_value
 Simple interface for an item with a value. More...
 
class  gradereport_singleview\output\action_bar
 
class  gradereport_singleview\privacy\provider
 Privacy Subsystem for gradereport_singleview implementing null_provider. More...
 
class  gradereport_singleview\report\singleview
 
class  gradereport_singleview_renderer
 Custom renderer for the single view report. More...
 

Functions

 gradereport_singleview_get_report_link (context_course $context, int $courseid, array $element, grade_plugin_return $gpr, string $mode, ?stdClass $templatecontext)
 Returns link to singleview report for the current element.
 

Variables

 $capabilities
 
 $functions
 
 $plugin = 2024041600
 
$plugin component = 'gradereport_singleview'
 
$plugin version = 2024042200
 

Detailed Description

Function Documentation

◆ gradereport_singleview_get_report_link()

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

Returns link to singleview report for the current element.

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$modeMode - gradeitem or user
?stdClass$templatecontextTemplate context
Return values
stdClass|null

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'gradereport/singleview:view' => array(
'riskbitmask' => RISK_PERSONAL,
'captype' => 'read',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => array(
'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_singleview_get_grade_items_for_search_widget' => [
'methodname' => 'get_grade_items_for_search_widget',
'classname' => 'gradereport_singleview\\external\\singleview',
'description' => 'Get the gradeitem/(s) for a course',
'type' => 'read',
'ajax' => true,
'capabilities' => 'gradereport/singleview:view',
],
]
const MOODLE_OFFICIAL_MOBILE_SERVICE
Moodle mobile app service name.
Definition moodlelib.php:555