Implements the plugin renderer.
More...
|
| adhoc_task_run () |
| Displays a notification on ad hoc task run request.
|
|
| adhoc_tasks_class_table (string $classname, array $tasks, ?array $params=[]) |
| This function will render a table with all the adhoc tasks for the class.
|
|
| adhoc_tasks_simple_table (array $tasks) |
| This function will render a plain adhoc tasks table.
|
|
| adhoc_tasks_summary_table (array $summary) |
| This function will render a table with the summary of all adhoc tasks.
|
|
| component_name (string $component) |
| Nicely display the name of a component, with its disabled status and internal name.
|
|
| cron_disabled () |
| Displays a warning on the page if cron is disabled.
|
|
| last_run_time (scheduled_task $task) |
| Standard display of a tasks last run time.
|
|
| link_back ($taskclassname='') |
| Renders a link back to the scheduled tasks page (used from the 'run now' screen).
|
|
| next_run_time (scheduled_task $task) |
| Standard display of a tasks next run time.
|
|
| scheduled_tasks_table ($tasks, $lastchanged='') |
| This function will render one beautiful table with all the scheduled tasks.
|
|
|
| time_cell (string $current, string $default) |
| Get a table cell to show one time, comparing it to the default.
|
|
Implements the plugin renderer.
- Copyright
- 2014 Damyon Wiese
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ adhoc_task_run()
tool_task_renderer::adhoc_task_run |
( |
| ) |
|
Displays a notification on ad hoc task run request.
- Return values
-
string | HTML notification block for task initiated message |
◆ adhoc_tasks_class_table()
tool_task_renderer::adhoc_tasks_class_table |
( |
string | $classname, |
|
|
array | $tasks, |
|
|
?array | $params = [] ) |
This function will render a table with all the adhoc tasks for the class.
- Parameters
-
string | $classname | |
array | $tasks | - list of all adhoc tasks. |
array | null | $params | |
- Return values
-
◆ adhoc_tasks_simple_table()
tool_task_renderer::adhoc_tasks_simple_table |
( |
array | $tasks | ) |
|
This function will render a plain adhoc tasks table.
- Parameters
-
array | $tasks | - list of adhoc tasks. |
- Return values
-
◆ adhoc_tasks_summary_table()
tool_task_renderer::adhoc_tasks_summary_table |
( |
array | $summary | ) |
|
This function will render a table with the summary of all adhoc tasks.
- Parameters
-
- Return values
-
◆ component_name()
tool_task_renderer::component_name |
( |
string | $component | ) |
|
Nicely display the name of a component, with its disabled status and internal name.
- Parameters
-
string | $component | component name, e.g. 'core' or 'mod_forum'. |
- Return values
-
◆ cron_disabled()
tool_task_renderer::cron_disabled |
( |
| ) |
|
Displays a warning on the page if cron is disabled.
- Return values
-
string | HTML code for information about cron being disabled |
- Exceptions
-
◆ last_run_time()
Standard display of a tasks last run time.
- Parameters
-
- Return values
-
◆ link_back()
tool_task_renderer::link_back |
( |
| $taskclassname = '' | ) |
|
Renders a link back to the scheduled tasks page (used from the 'run now' screen).
- Parameters
-
string | $taskclassname | if specified, the list of tasks will scroll to show this task. |
- Return values
-
◆ next_run_time()
Standard display of a tasks next run time.
- Parameters
-
- Return values
-
◆ scheduled_tasks_table()
tool_task_renderer::scheduled_tasks_table |
( |
| $tasks, |
|
|
| $lastchanged = '' ) |
This function will render one beautiful table with all the scheduled tasks.
- Parameters
-
core\task\scheduled_task[] | $tasks | - list of all scheduled tasks. |
string | $lastchanged | (optional) the last task edited. Gets highlighted in teh table. |
- Return values
-
◆ time_cell()
tool_task_renderer::time_cell |
( |
string | $current, |
|
|
string | $default ) |
|
protected |
Get a table cell to show one time, comparing it to the default.
- Parameters
-
string | $current | the current setting. |
string | $default | the default setting from the db/tasks.php file. |
- Return values
-
html_table_cell | for use in the table. |
The documentation for this class was generated from the following file:
- admin/tool/task/renderer.php