Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
theme_boost\output\core_renderer Class Reference

Renderers to align Moodle's HTML with that expected by Bootstrap. More...

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.
 

Protected Member Functions

 render_context_header (\context_header $contextheader)
 Renders the header bar.
 

Detailed Description

Renderers to align Moodle's HTML with that expected by Bootstrap.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

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.

◆ render_context_header()

theme_boost\output\core_renderer::render_context_header ( \context_header $contextheader)
protected

Renders the header bar.

Parameters
context_header$contextheaderHeader bar object.
Return values
stringHTML for the header bar.

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