Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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: