Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
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. More...
 
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. More...
 

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: