Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
core_table\dynamic Interface Reference

Interface to identify this table as a table which can be dynamically updated via webservice calls. More...

Inheritance diagram for core_table\dynamic:
core_reportbuilder\table\base_report_table core_reportbuilder\table\custom_report_table core_reportbuilder\table\system_report_table core_reportbuilder\table\custom_report_table_view

Public Member Functions

 has_capability ()
 Check capability for users accessing the dynamic table.
 

Detailed Description

Interface to identify this table as a table which can be dynamically updated via webservice calls.

For a table to be defined as dynamic it must meet the following requirements:

it must be located with a namespaced class of [component]::table::[tablename]

it must define a core_table::local::filter::filterset implementation in [component]\table[tablename]_filterset

it must override the {{guess_base_url}} function and specify a base URL to be used when constructing URLs

it must override the {{get_context}} function to specify the correct context

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

Member Function Documentation

◆ has_capability()

core_table\dynamic::has_capability ( )

Check capability for users accessing the dynamic table.

Return values
bool

Implemented in core_reportbuilder\table\custom_report_table, core_reportbuilder\table\custom_report_table_view, and core_reportbuilder\table\system_report_table.


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