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

Namespaces

namespace  report_loglive\event
  
 
namespace  report_loglive\privacy
  
 

Classes

class  report_loglive\event\report_viewed
 The report_loglive report viewed event class. More...
 
class  report_loglive\privacy\provider
 Privacy Subsystem for report_loglive implementing null_provider. More...
 
class  report_loglive_renderable
 Report loglive renderable class. More...
 
class  report_loglive_renderer
 Report log renderer's for printing reports. More...
 
class  report_loglive_renderer_ajax
 Log live report ajax renderer. More...
 
class  report_loglive_table_log
 Table log class for displaying logs. More...
 
class  report_loglive_table_log_ajax
 Table log class for generating data in ajax mode. More...
 

Functions

stdClass report_loglive_extend_navigation_course ($navigation, $course, $context)
 This function extends the navigation with the report items.
 
 report_loglive_supports_logstore ($instance)
 Callback to verify if the given instance of store is supported by this report or not.
 

Variables

 $capabilities
 
 $plugin = 2023041800
 
 $settings = null
 
$plugin component = 'report_loglive'
 
$plugin version = 2023042400
 

Detailed Description

Function Documentation

◆ report_loglive_extend_navigation_course()

stdClass report_loglive_extend_navigation_course ( $navigation,
$course,
$context )

This function extends the navigation with the report items.

$CFG @global core_renderer $OUTPUT

Parameters
navigation_node$navigationThe navigation node to extend
stdClass$courseThe course to object for the report
context$contextThe context of the course

◆ report_loglive_supports_logstore()

report_loglive_supports_logstore ( $instance)

Callback to verify if the given instance of store is supported by this report or not.

Parameters
string$instancestore instance.
Return values
boolreturns true if the store is supported by the report, false otherwise.

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'report/loglive: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