Renderable class to display a set of rules in the manage subscriptions page.
More...
|
int | $courseid |
| course id.
|
|
int | $totalcount = 0 |
| total rules present.
|
|
|
context_course context_system | $context |
| context of the page to be rendered.
|
|
Renderable class to display a set of rules in the manage subscriptions page.
- Since
- Moodle 2.8
- Copyright
- 2014 onwards Ankit Agarwal ankit.nosp@m..agr.nosp@m.r@gma.nosp@m.il.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
tool_monitor\output\managesubs\rules::__construct |
( |
| $uniqueid, |
|
|
moodle_url | $url, |
|
|
| $courseid = 0, |
|
|
| $perpage = 100 ) |
Sets up the table_log parameters.
- Parameters
-
string | $uniqueid | unique id of form. |
moodle_url | $url | url where this table is displayed. |
int | $courseid | course id. |
int | $perpage | Number of rules to display per page. |
◆ col_course()
Generate content for course column.
- Parameters
-
- Return values
-
string | html used to display the course name. |
◆ col_description()
Generate content for description column.
- Parameters
-
- Return values
-
string | html used to display the description. |
◆ col_eventname()
Generate content for eventname column.
- Parameters
-
- Return values
-
string | html used to display the event name. |
◆ col_filters()
Generate content for filters column.
- Parameters
-
- Return values
-
string | html used to display the filters. |
◆ col_name()
Generate content for name column.
- Parameters
-
- Return values
-
string | html used to display the rule name. |
◆ col_plugin()
Generate content for plugin column.
- Parameters
-
- Return values
-
string | html used to display the plugin name. |
◆ col_select()
Generate content for select column.
- Parameters
-
- Return values
-
string | html used to display the select field. |
◆ get_user_courses_select()
tool_monitor\output\managesubs\rules::get_user_courses_select |
( |
| $choose = false | ) |
|
Gets a list of courses where the current user can subscribe to rules as a dropdown.
- Parameters
-
bool | $choose | A flag for whether to show the 'choose...' option in the select box. |
- Return values
-
single_select|bool | returns the list of courses, or false if the select box should not be displayed. |
◆ query_db()
tool_monitor\output\managesubs\rules::query_db |
( |
| $pagesize, |
|
|
| $useinitialsbar = true ) |
Query the reader.
Store results in the object for use by build_table.
- Parameters
-
int | $pagesize | size of page for paginated displayed table. |
bool | $useinitialsbar | do you want to use the initials bar. |
The documentation for this class was generated from the following file:
- admin/tool/monitor/classes/output/managesubs/rules.php