Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
forumreport_summary\output\filters Class Reference

Forum summary report filters renderable. More...

Inheritance diagram for forumreport_summary\output\filters:
renderable templatable

Public Member Functions

 __construct (stdClass $cm, moodle_url $actionurl, array $filterdata=[])
 Builds renderable filter data. More...
 
 export_for_template (renderer_base $renderer)
 Export data for use as the context of a mustache template. More...
 

Protected Member Functions

 prepare_groups_data (array $groupsdata)
 Prepares groups data and sets relevant property values. More...
 

Protected Attributes

moodle_url $actionurl
 Moodle URL used as the form action on the generate button. More...
 
stdClass $cm
 Course module the report is being run within. More...
 
string $datesbuttontext
 Text to display on the dates filter button. More...
 
array $datesdata = []
 HTML for dates filter. More...
 
array $discussionids = []
 IDs of discussions required for export links. More...
 
array $groupsavailable = []
 Details of groups available for filtering. More...
 
array $groupsselected = []
 IDs of groups selected for filtering. More...
 

Detailed Description

Forum summary report filters renderable.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

forumreport_summary\output\filters::__construct ( stdClass  $cm,
moodle_url  $actionurl,
array  $filterdata = [] 
)

Builds renderable filter data.

Parameters
stdClass$cmThe course module object.
moodle_url$actionurlThe form action URL.
array$filterdata(optional) Associative array of data that has been set on available filters, if any, in the format filtertype => [values]

Member Function Documentation

◆ export_for_template()

forumreport_summary\output\filters::export_for_template ( renderer_base  $renderer)

Export data for use as the context of a mustache template.

Parameters
renderer_base$rendererThe renderer to be used to display report filters.
Return values
arrayData in a format compatible with a mustache template.

Implements templatable.

◆ prepare_groups_data()

forumreport_summary\output\filters::prepare_groups_data ( array  $groupsdata)
protected

Prepares groups data and sets relevant property values.

Parameters
array$groupsdataGroups selected for filtering.
Return values
void.

Member Data Documentation

◆ $actionurl

moodle_url forumreport_summary\output\filters::$actionurl
protected

Moodle URL used as the form action on the generate button.

$actionurl

◆ $cm

stdClass forumreport_summary\output\filters::$cm
protected

Course module the report is being run within.

$cm

◆ $datesbuttontext

string forumreport_summary\output\filters::$datesbuttontext
protected

Text to display on the dates filter button.

$datesbuttontext

◆ $datesdata

array forumreport_summary\output\filters::$datesdata = []
protected

HTML for dates filter.

$datesdata

◆ $discussionids

array forumreport_summary\output\filters::$discussionids = []
protected

IDs of discussions required for export links.

If a subset of groups available are selected, this will include the discussion IDs within that group in the forum. If all groups are selected, or no groups mode is enabled, this will be empty as no discussion filtering is required in the export.

$discussionids

◆ $groupsavailable

array forumreport_summary\output\filters::$groupsavailable = []
protected

Details of groups available for filtering.

Stored in the format groupid => groupname.

$groupsavailable

◆ $groupsselected

array forumreport_summary\output\filters::$groupsselected = []
protected

IDs of groups selected for filtering.

$groupsselected


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