Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
core_badges\output\standard_action_bar Class Reference
Inheritance diagram for core_badges\output\standard_action_bar:
core_badges\output\base_action_bar

Public Member Functions

 __construct (moodle_page $page, int $type, null|bool ?bool $showmanage=null, protected bool bool $showaddbadge=true, protected moodle_url ?moodle_url $backurl=null,)
 The constructor.
 
 export_for_template (renderer_base $output)
 Export the action bar.
 
 get_template ()
 The template that this tertiary nav should use.
 
 get_third_party_nav_action (renderer_base $output)
 Gets additional third party navigation nodes for display.
 

Protected Member Functions

 expected_items ()
 Expected navigation node keys for badges.
 

Protected Attributes

moodle_page $page
 $page The context we are operating within.
 
int $type
 $type The badge type.
 

Constructor & Destructor Documentation

◆ __construct()

core_badges\output\standard_action_bar::__construct ( moodle_page $page,
int $type,
null|bool ?bool $showmanage = null,
protected bool bool $showaddbadge = true,
protected moodle_url ?moodle_url $backurl = null )

The constructor.

Parameters
$showmanage$showmanage This parameter has been deprecated since 4.5 and should not be used anymore.
$showaddbadge$showaddbadge Whether or not to show the add badges button.
$backurl$backurl BackURL to be used when the back button is required.

Member Function Documentation

◆ expected_items()

core_badges\output\base_action_bar::expected_items ( )
protectedinherited

Expected navigation node keys for badges.

Return values
arraydefault badge navigation node keys.

◆ export_for_template()

core_badges\output\standard_action_bar::export_for_template ( renderer_base $output)

Export the action bar.

Parameters
renderer_base$output
Return values
arrayThe buttons to be rendered

◆ get_template()

core_badges\output\standard_action_bar::get_template ( )

The template that this tertiary nav should use.

Return values
string

Reimplemented from core_badges\output\base_action_bar.

◆ get_third_party_nav_action()

core_badges\output\base_action_bar::get_third_party_nav_action ( renderer_base $output)
inherited

Gets additional third party navigation nodes for display.

Parameters
renderer_base$outputThe output
Return values
arrayAll that sweet third party navigation action.

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