MIDDAG for Moodle

moodle_view_adapter implements view_adapter_interface

Adapter that provides View rendering using Moodle's native $PAGE and $OUTPUT.

Table of Contents

Interfaces

view_adapter_interface
Interface for View rendering.

Methods

add_breadcrumb()  : void
Add a navigation node to the breadcrumbs.
render_page()  : string
Render raw HTML as a full page.
render_template()  : string
Render a template with data.
set_heading()  : void
Set the page heading.
set_layout()  : void
Set the page layout (e.g., 'admin', 'standard').
set_title()  : void
Set the page title.

Methods

add_breadcrumb()

Add a navigation node to the breadcrumbs.

public add_breadcrumb(string $text[, mixed $url = null ]) : void
Parameters
$text : string
$url : mixed = null

render_page()

Render raw HTML as a full page.

public render_page(string $content) : string
Parameters
$content : string
Return values
string

the full page HTML

render_template()

Render a template with data.

public render_template(string $template_name[, array<string|int, mixed> $data = [] ]) : string
Parameters
$template_name : string

mustache template name (component/name)

$data : array<string|int, mixed> = []

template data

Return values
string

the rendered HTML

set_heading()

Set the page heading.

public set_heading(string $heading) : void
Parameters
$heading : string

set_layout()

Set the page layout (e.g., 'admin', 'standard').

public set_layout(string $layout) : void
Parameters
$layout : string

set_title()

Set the page title.

public set_title(string $title) : void
Parameters
$title : string

        
On this page

Search results