Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
report_insights\output\actions_exporter Class Reference

Output helper to export actions for rendering. More...

Static Public Member Functions

static add_bulk_actions (\core_analytics\local\target\base $target, renderer_base $output, array $predictions, context $context)
 Add bulk actions renderables.
 
static add_prediction_actions (\core_analytics\local\target\base $target, renderer_base $output, core_analytics\prediction $prediction, bool $includedetailsaction=false)
 Add the prediction actions renderable.
 

Detailed Description

Output helper to export actions for rendering.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ add_bulk_actions()

static report_insights\output\actions_exporter::add_bulk_actions ( \core_analytics\local\target\base $target,
renderer_base $output,
array $predictions,
context $context )
static

Add bulk actions renderables.

Note that if you are planning to render the bulk actions, the provided predictions must share the same predicted value.

Parameters
core_analytics\local\target\base$target
renderer_base$output
core_analytics\prediction[]$predictionsBulk actions for this set of predictions.
context$contextThe context of these predictions.
Return values
stdClass[]|false

◆ add_prediction_actions()

static report_insights\output\actions_exporter::add_prediction_actions ( \core_analytics\local\target\base $target,
renderer_base $output,
core_analytics\prediction $prediction,
bool $includedetailsaction = false )
static

Add the prediction actions renderable.

Parameters
core_analytics\local\target\base$target
renderer_base$output
core_analytics\prediction$prediction
bool$includedetailsaction
Return values
stdClass|false

The documentation for this class was generated from the following file: