Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
qbank_previewquestion\output\renderer Class Reference
Inheritance diagram for qbank_previewquestion\output\renderer:

Public Member Functions

 question_preview_link ($questionid, context $context, $showlabel)
 Render an icon, optionally with the word 'Preview' beside it, to preview a given question.
 
 render_preview_page ($previewdata)
 Render the preview page.
 

Member Function Documentation

◆ question_preview_link()

qbank_previewquestion\output\renderer::question_preview_link ( $questionid,
context $context,
$showlabel )

Render an icon, optionally with the word 'Preview' beside it, to preview a given question.

Parameters
int$questionidthe id of the question to be previewed.
context$contextthe context in which the preview is happening. Must be a course or category context.
bool$showlabelif true, show the word 'Preview' after the icon. If false, just show the icon.

◆ render_preview_page()

qbank_previewquestion\output\renderer::render_preview_page ( $previewdata)

Render the preview page.

Parameters
array$previewdata

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