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

Files

file  actions_exporter.php
 Output helper to export actions for rendering.
 
file  external.php
 This is the external API for this component.
 
file  insight.php
 Single insight view page.
 
file  insights_list.php
 Insights list page.
 
file  lib.php
 This page lists public api for tool_monitor plugin.
 
file  provider.php
 Privacy Subsystem implementation for report_insights.
 
file  renderer.php
 Renderer.
 
file  services.php
 Report insights webservice definitions.
 
file  settings.php
 Links and settings.
 
file  version.php
 Version details.
 

Namespaces

 report_insights
  
 
 report_insights\output
  
 
 report_insights\privacy
  
 

Classes

class  report_insights\external
 This is the external API for this component. More...
 
class  report_insights\output\actions_exporter
 Output helper to export actions for rendering. More...
 
class  report_insights\output\insight
 Single insight view page. More...
 
class  report_insights\output\insights_list
 Shows report_insights insights list. More...
 
class  report_insights\output\renderer
 Renderer class. More...
 
class  report_insights\privacy\provider
 Privacy Subsystem for report_insights implementing null_provider. More...
 

Functions

 report_insights_extend_navigation_category_settings ($navigation, $context)
 Adds nodes to category navigation. More...
 
 report_insights_extend_navigation_course ($navigation, $course, $context)
 This function extends the navigation with the tool items. More...
 
 report_insights_myprofile_navigation (core_user\output\myprofile\tree $tree, $user, $iscurrentuser, $course)
 Add nodes to myprofile page. More...
 

Variables

 $functions
 
$plugin component = 'report_insights'
 
$plugin requires = 2019111200
 
$plugin version = 2019111800
 

Detailed Description

Function Documentation

◆ report_insights_extend_navigation_category_settings()

report_insights_extend_navigation_category_settings (   $navigation,
  $context 
)

Adds nodes to category navigation.

Parameters
navigation_node$navigationThe navigation node to extend
context$contextThe context of the course
Return values
void|nullreturn null if we don't want to display the node.

◆ report_insights_extend_navigation_course()

report_insights_extend_navigation_course (   $navigation,
  $course,
  $context 
)

This function extends the navigation with the tool items.

Parameters
navigation_node$navigationThe navigation node to extend
stdClass$courseThe course to object for the tool
context$contextThe context of the course
Return values
void

◆ report_insights_myprofile_navigation()

report_insights_myprofile_navigation ( core_user\output\myprofile\tree  $tree,
  $user,
  $iscurrentuser,
  $course 
)

Add nodes to myprofile page.

Parameters
core_user\output\myprofile\tree$treeTree object
stdClass$useruser object
bool$iscurrentuser
stdClass$courseCourse object
Return values
bool

Variable Documentation

◆ $functions

$functions
Initial value:
= array(
'report_insights_set_notuseful_prediction' => array(
'classname' => 'report_insights\external',
'methodname' => 'set_notuseful_prediction',
'description' => 'Flags the prediction as not useful.',
'type' => 'write',
'ajax' => true,
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
),
'report_insights_set_fixed_prediction' => array(
'classname' => 'report_insights\external',
'methodname' => 'set_fixed_prediction',
'description' => 'Flags a prediction as fixed.',
'type' => 'write',
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
'ajax' => true,
),
'report_insights_action_executed' => array(
'classname' => 'report_insights\external',
'methodname' => 'action_executed',
'description' => 'Stores an action executed over a group of predictions.',
'type' => 'write',
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
'ajax' => true,
)
)
MOODLE_OFFICIAL_MOBILE_SERVICE
const MOODLE_OFFICIAL_MOBILE_SERVICE
Moodle mobile app service name.
Definition: moodlelib.php:501