Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Renderable class to display a set of subscriptions in the manage subscriptions page.

Copyright: 2014 onwards Ankit Agarwal <ankit.agrr@gmail.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 197 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

subs:: (10 methods):
  __construct()
  col_name()
  col_description()
  col_course()
  col_plugin()
  col_instance()
  col_eventname()
  col_filters()
  col_unsubscribe()
  query_db()


Class: subs  - X-Ref

Renderable class to display a set of subscriptions in the manage subscriptions page.

__construct($uniqueid, \moodle_url $url, $courseid = 0, $perpage = 100)   X-Ref
Sets up the table_log parameters.

param: string $uniqueid unique id of form.
param: \moodle_url $url url where this table is displayed.
param: int $courseid course id.
param: int $perpage Number of rules to display per page.

col_name(\tool_monitor\subscription $sub)   X-Ref
Generate content for name column.

return: string html used to display the rule name.
param: \tool_monitor\subscription $sub subscription object

col_description(\tool_monitor\subscription $sub)   X-Ref
Generate content for description column.

return: string html used to display the description.
param: \tool_monitor\subscription $sub subscription object

col_course(\tool_monitor\subscription $sub)   X-Ref
Generate content for course column.

return: string html used to display the course name.
param: \tool_monitor\subscription $sub subscription object

col_plugin(\tool_monitor\subscription $sub)   X-Ref
Generate content for plugin column.

return: string html used to display the plugin name.
param: \tool_monitor\subscription $sub subscription object

col_instance(\tool_monitor\subscription $sub)   X-Ref
Generate content for instance column.

return: string html used to display the instance name.
param: \tool_monitor\subscription $sub subscription object

col_eventname(\tool_monitor\subscription $sub)   X-Ref
Generate content for eventname column.

return: string html used to display the event name.
param: \tool_monitor\subscription $sub subscription object

col_filters(\tool_monitor\subscription $sub)   X-Ref
Generate content for filters column.

return: string html used to display the filters.
param: \tool_monitor\subscription $sub subscription object

col_unsubscribe(\tool_monitor\subscription $sub)   X-Ref
Generate content for unsubscribe column.

return: string html used to display the unsubscribe field.
param: \tool_monitor\subscription $sub subscription object

query_db($pagesize, $useinitialsbar = true)   X-Ref
Query the reader. Store results in the object for use by build_table.

param: int $pagesize size of page for paginated displayed table.
param: bool $useinitialsbar do you want to use the initials bar.