Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
report_insights

Namespaces

namespace  report_insights
  
 
namespace  report_insights\output
  
 
namespace  report_insights\privacy
  
 

Classes

class  report_insights\external
 
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.
 
 report_insights_extend_navigation_course ($navigation, $course, $context)
 This function extends the navigation with the tool items.
 
 report_insights_myprofile_navigation (core_user\output\myprofile\tree $tree, $user, $iscurrentuser, $course)
 Add nodes to myprofile page.
 

Variables

 $functions
 
 $plugin = 2023100400
 
$plugin component = 'report_insights'
 
$plugin version = 2023100900
 

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,
)
)
const MOODLE_OFFICIAL_MOBILE_SERVICE
Moodle mobile app service name.
Definition moodlelib.php:535