Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Renderable class for manage rules 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: 214 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

renderable:: (9 methods):
  __construct()
  col_name()
  col_description()
  col_course()
  col_plugin()
  col_eventname()
  col_filters()
  col_manage()
  query_db()


Class: renderable  - X-Ref

Renderable class for manage rules 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\rule $rule)   X-Ref
Generate content for name column.

param: \tool_monitor\rule $rule rule object
return: string html used to display the column field.

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

param: \tool_monitor\rule $rule rule object
return: string html used to display the column field.

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

param: \tool_monitor\rule $rule rule object
return: string html used to display the context column field.

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

param: \tool_monitor\rule $rule rule object
return: string html used to display the column field.

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

param: \tool_monitor\rule $rule rule object
return: string html used to display the column field.

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

param: \tool_monitor\rule $rule rule object
return: string html used to display the filters column field.

col_manage(\tool_monitor\rule $rule)   X-Ref
Generate content for manage column.

param: \tool_monitor\rule $rule rule object
return: string html used to display the manage column field.

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.