Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
qbank_columnsortorder\output\add_column Class Reference
Inheritance diagram for qbank_columnsortorder\output\add_column:
renderable templatable

Public Member Functions

 __construct (column_manager $columnmanager, moodle_url $returnurl, bool $global=false)
 Store arguments for generating template context.
 
 export_for_template (renderer_base $output)
 Function to export the renderer data in a format that is suitable for a mustache template.
 

Protected Attributes

column_manager column_manager $columnmanager
 The column manager for getting the list of hidden columns.
 
bool bool $global
 True if we are changing global config, false for user preferences.
 
moodle_url moodle_url $returnurl
 The current page URL to redirect back to.
 

Constructor & Destructor Documentation

◆ __construct()

qbank_columnsortorder\output\add_column::__construct ( column_manager $columnmanager,
moodle_url $returnurl,
bool $global = false )

Store arguments for generating template context.

Parameters
column_manager$columnmanager
moodle_url$returnurl
bool$global

Member Function Documentation

◆ export_for_template()

qbank_columnsortorder\output\add_column::export_for_template ( renderer_base $output)

Function to export the renderer data in a format that is suitable for a mustache template.

This means:

  1. No complex types - only stdClass, array, int, string, float, bool
  2. Any additional info that is required for the template is pre-calculated (e.g. capability checks).
Parameters
renderer_base$outputUsed to do a final render of any components that need to be rendered for export.
Return values
stdClass|array

Implements templatable.


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