Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
core_admin\table\plugin_management_table Class Reference
Inheritance diagram for core_admin\table\plugin_management_table:
core_admin\table\activity_management_table core_admin\table\availability_management_table core_admin\table\block_management_table core_admin\table\editor_management_table core_admin\table\media_management_table core_admin\table\tool_plugin_management_table core_ai\table\aiplacement_management_table core_grades\table\gradepenalty_management_table editor_tiny\table\plugin_management_table tool_mfa\table\admin_setting_managemfa

Public Member Functions

 get_content ()
 Get the table content.
 
 get_context ()
 Get the context for this table.
 
 guess_base_url ()
 Provide a default implementation for guessing the base URL from the action URL.
 
 has_capability ()
 Check if the user has the capability to access this table.
 
 is_downloadable ($downloadable=null)
 This table is not downloadable.
 
 out ()
 Print the table.
 

Static Public Member Functions

static get_filterset_class ()
 

Protected Member Functions

 col_enabled (stdClass $row)
 Show the enable/disable column content.
 
 col_name (stdClass $row)
 Show the name column content.
 
 col_order (stdClass $row)
 
 col_settings (stdClass $row)
 Show the settings column content.
 
 col_uninstall (stdClass $row)
 Show the Uninstall column content.
 
 get_action_url (array $params=[])
 Get the action URL for this table.
 
 get_column_list ()
 Get a list of the column titles.
 
 get_columns_with_help ()
 
 get_dynamic_table_html_end ()
 Add JS specific to this implementation.
 
 get_plugintype ()
 Get the plugintype for this table.
 
 get_row_class ($row)
 Get any class to add to the row.
 
 get_sorted_plugins ()
 Get the list of sorted plugins.
 
 get_sortorder_service ()
 Get the web service method used to order plugins.
 
 get_table_id ()
 Get the ID of the table.
 
 get_table_js_module ()
 Get the JS module used to manage this table.
 
 get_toggle_service ()
 Get the web service method used to toggle state.
 
 order_plugins (array $plugins)
 Set the standard order of the plugins.
 
 setup_column_configuration ()
 Set up the column configuration for this table.
 
 sort_plugins (array $plugins)
 Sort the plugins list.
 
 supports_disabling ()
 Whether this plugin type supports the disabling of plugins.
 
 supports_ordering ()
 Whether this table should show ordering fields.
 

Protected Attributes

int int $enabledplugincount = 0
 The number of enabled plugins of this type.
 
string string $plugininfoclass
 The plugininfo class for this plugintype.
 
core_plugin_manager core_plugin_manager $pluginmanager
 
core plugininfo base[] array $plugins = []
 The plugin list.
 

Member Function Documentation

◆ col_enabled()

core_admin\table\plugin_management_table::col_enabled ( stdClass $row)
protected

Show the enable/disable column content.

Parameters
stdClass$row
Return values
string

◆ col_name()

core_admin\table\plugin_management_table::col_name ( stdClass $row)
protected

◆ col_settings()

core_admin\table\plugin_management_table::col_settings ( stdClass $row)
protected

Show the settings column content.

Parameters
stdClass$row
Return values
string

Reimplemented in tool_mfa\table\admin_setting_managemfa.

◆ col_uninstall()

core_admin\table\plugin_management_table::col_uninstall ( stdClass $row)
protected

Show the Uninstall column content.

Parameters
stdClass$row
Return values
string

◆ get_action_url()

core_admin\table\plugin_management_table::get_action_url ( array $params = [])
abstractprotected

◆ get_column_list()

◆ get_context()

core_admin\table\plugin_management_table::get_context ( )

Get the context for this table.

Return values
context_system

◆ get_dynamic_table_html_end()

core_admin\table\plugin_management_table::get_dynamic_table_html_end ( )
protected

Add JS specific to this implementation.

Return values
string

◆ get_plugintype()

◆ get_row_class()

core_admin\table\plugin_management_table::get_row_class ( $row)
protected

Get any class to add to the row.

Parameters
mixed$row
Return values
string

◆ get_sorted_plugins()

core_admin\table\plugin_management_table::get_sorted_plugins ( )
protected

Get the list of sorted plugins.

Return values
core::plugininfo::base[]

◆ get_sortorder_service()

core_admin\table\plugin_management_table::get_sortorder_service ( )
protected

Get the web service method used to order plugins.

Return values
null|string

◆ get_table_id()

core_admin\table\plugin_management_table::get_table_id ( )
protected

Get the ID of the table.

Return values
string

Reimplemented in core_admin\table\activity_management_table, and core_admin\table\availability_management_table.

◆ get_table_js_module()

core_admin\table\plugin_management_table::get_table_js_module ( )
protected

Get the JS module used to manage this table.

This should be a class which extends 'core_admin/plugin_management_table'.

Return values
string

Reimplemented in core_admin\table\block_management_table.

◆ get_toggle_service()

core_admin\table\plugin_management_table::get_toggle_service ( )
protected

Get the web service method used to toggle state.

Return values
null|string

◆ guess_base_url()

core_admin\table\plugin_management_table::guess_base_url ( )

◆ has_capability()

core_admin\table\plugin_management_table::has_capability ( )

Check if the user has the capability to access this table.

Default implementation for plugin management tables is to require 'moodle/site:config' capability

Return values
boolReturn true if capability check passed.

◆ is_downloadable()

core_admin\table\plugin_management_table::is_downloadable ( $downloadable = null)

This table is not downloadable.

Parameters
bool$downloadable
Return values
bool

◆ order_plugins()

core_admin\table\plugin_management_table::order_plugins ( array $plugins)
protected

Set the standard order of the plugins.

Parameters
array$plugins
Return values
array

Reimplemented in core_admin\table\editor_management_table.

◆ sort_plugins()

core_admin\table\plugin_management_table::sort_plugins ( array $plugins)
protected

Sort the plugins list.

Note: This only applies to plugins which do not support ordering.

Parameters
core\plugininfo\base[]$plugins
Return values
core::plugininfo::base[]

◆ supports_disabling()

core_admin\table\plugin_management_table::supports_disabling ( )
protected

Whether this plugin type supports the disabling of plugins.

Return values
bool

◆ supports_ordering()

core_admin\table\plugin_management_table::supports_ordering ( )
protected

Whether this table should show ordering fields.

Return values
bool

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