Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
theme_boost\output\core_renderer Class Reference

Public Member Functions

 context_header ($headerinfo=null, $headinglevel=1)
 Renders the context header for the page.
 
 edit_button (moodle_url $url, string $method='post')
 Returns HTML to display a "Turn editing on/off" button in a form.
 
 firstview_fakeblocks ()
 See if this is the first view of the current cm in the session if it has fake blocks.
 
 navbar ()
 Renders the "breadcrumb" for all pages in boost.
 

Member Function Documentation

◆ context_header()

theme_boost\output\core_renderer::context_header ( $headerinfo = null,
$headinglevel = 1 )

Renders the context header for the page.

Parameters
array$headerinfoHeading information.
int$headinglevelWhat 'h' level to make the heading.
Return values
stringA rendered context header.

◆ edit_button()

theme_boost\output\core_renderer::edit_button ( moodle_url $url,
string $method = 'post' )

Returns HTML to display a "Turn editing on/off" button in a form.

Parameters
moodle_url$urlThe URL + params to send through when clicking the button
string$method
Return values
stringHTML the button

◆ firstview_fakeblocks()

theme_boost\output\core_renderer::firstview_fakeblocks ( )

See if this is the first view of the current cm in the session if it has fake blocks.

(We track up to 100 cms so as not to overflow the session.) This is done for drawer regions containing fake blocks so we can show blocks automatically.

Return values
booleantrue if the page has fakeblocks and this is the first visit.

◆ navbar()

theme_boost\output\core_renderer::navbar ( )

Renders the "breadcrumb" for all pages in boost.

Return values
stringthe HTML for the navbar.

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