class output_support

internal  
 

Output support wrapper for Moodle's $OUTPUT global.

Methods

static string|null
header(mixed $return = false)

Prints the page header HTML.

static string|null
footer(mixed $return = false)

Prints the page footer HTML.

static string
render(renderable $renderable)

Renders a renderable object.

static string
render_from_template(string $templatename, array $context)

Renders a template with a given context.

static string
notification(string $message, string $type = 'notifyinfo')

Displays a notification message.

Details

at line 34
static string|null header(mixed $return = false)

Prints the page header HTML.

Parameters

mixed $return

Return Value

string|null

Prints the page footer HTML.

Parameters

mixed $return

Return Value

string|null

at line 74
static string render(renderable $renderable)

Renders a renderable object.

Parameters

renderable $renderable

Object to render

Return Value

string

Rendered HTML

at line 89
static string render_from_template(string $templatename, array $context)

Renders a template with a given context.

Parameters

string $templatename

Template name (e.g., 'component/name').

array $context

Data context for the template

Return Value

string

Rendered HTML

at line 104
static string notification(string $message, string $type = 'notifyinfo')

Displays a notification message.

Parameters

string $message

Message text

string $type

Notification type

Return Value

string

Rendered notification HTML