class output_support

internal  
 

Output support wrapper for Moodle's $OUTPUT global.

Methods

static void
header()

Prints the page header HTML.

static void
footer()

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 32
static void header()

Prints the page header HTML.

Return Value

void

Prints the page footer HTML.

Return Value

void

at line 56
static string render(renderable $renderable)

Renders a renderable object.

Parameters

renderable $renderable

Object to render

Return Value

string

Rendered HTML

at line 71
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 86
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