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

Public Member Functions

 __construct (context $context, int $userview, ?int $userid=null, ?int $currentgroupid=null, string $usersearch='')
 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

context $context
 $context The context object.
 
int null $currentgroupid
 $currentgroupid The user report view mode.
 
int null $userid
 $userid The user ID.
 
string $usersearch
 $usersearch String to search matching users.
 
int $userview
 $userview The user report view mode.
 

Constructor & Destructor Documentation

◆ __construct()

gradereport_user\output\action_bar::__construct ( context $context,
int $userview,
?int $userid = null,
?int $currentgroupid = null,
string $usersearch = '' )

The class constructor.

Parameters
context$contextThe context object.
int$userviewThe user report view mode.
int | null$useridThe user ID or 0 if displaying all users.
int | null$currentgroupidThe ID of the current group.
string$usersearchString to search matching user.

Member Function Documentation

◆ export_for_template()

gradereport_user\output\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()

gradereport_user\output\action_bar::get_template ( )

Returns the template for the action bar.

Return values
string

Reimplemented from core_grades\output\action_bar.


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