Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
core_grades\output\general_action_bar Class Reference
Inheritance diagram for core_grades\output\general_action_bar:
core_grades\output\action_bar

Public Member Functions

 __construct (\context $context, moodle_url $activeurl, string $activetype, string $activeplugin)
 The class constructor.
 
 export_for_template (\renderer_base $output)
 Export the data for the mustache template.
 
 get_template ()
 Returns the template for the action bar.
 

Protected Attributes

string $activeplugin
 $activeplugin The plugin of the current gradebook page (grader, fullview, ...).
 
string $activetype
 The type of the current gradebook page (report, settings, import, export, scales, outcomes, letters).
 
moodle_url $activeurl
 $activeurl The URL that should be set as active in the URL selector element.
 
context $context
 $context The context object.
 

Constructor & Destructor Documentation

◆ __construct()

core_grades\output\general_action_bar::__construct ( \context $context,
moodle_url $activeurl,
string $activetype,
string $activeplugin )

The class constructor.

Parameters
context$contextThe context object.
moodle_url$activeurlThe URL that should be set as active in the URL selector element.
string$activetypeThe type of the current gradebook page (report, settings, import, export, scales, outcomes, letters).
string$activepluginThe plugin of the current gradebook page (grader, fullview, ...).

Member Function Documentation

◆ export_for_template()

core_grades\output\general_action_bar::export_for_template ( \renderer_base $output)

Export the data for the mustache template.

Parameters
renderer_base$outputrenderer to be used to render the action bar elements.
Return values
array

◆ get_template()

core_grades\output\general_action_bar::get_template ( )

Returns the template for the action bar.

Return values
string

Reimplemented from core_grades\output\action_bar.

Member Data Documentation

◆ $activetype

string core_grades\output\general_action_bar::$activetype
protected

The type of the current gradebook page (report, settings, import, export, scales, outcomes, letters).

$activetype


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