Moodle PHP Documentation 5.0
Moodle 5.0.1+ (Build: 20250711) (61af040cd5f)
core_ai\table\aiprovider_management_table Class Reference
Inheritance diagram for core_ai\table\aiprovider_management_table:

Public Member Functions

 __construct ()
 Constructor for the AI provider table.
 
 col_delete (\stdClass $row)
 The column to show the delete action for the provider instance.
 
 col_enabled (\stdClass $row)
 The column for enabled or disabled status of the provider instance.
 
 col_name (\stdClass $row)
 The column for the provider instance Name.
 
 col_provider (\stdClass $row)
 The column for the provider plugin name.
 
 col_settings (\stdClass $row)
 The column to show the settings of the provider instance.
 
 get_content ()
 Get the content of the table.
 
 get_context ()
 
 guess_base_url ()
 
 has_capability ()
 
 out ()
 Add the row data for the table.
 

Protected Member Functions

 col_order (\stdClass $row)
 Generates the HTML for the order column with up and down controls.
 
 get_action_url (array $params=[])
 Get the action URL for the table.
 
 get_base_action_url (array $params=[])
 Get the action URL for this table.
 
 get_column_list ()
 Get the column list for the table.
 
 get_delete_service ()
 Webservice for delete.
 
 get_dynamic_table_html_end ()
 
 get_plugintype ()
 Get the plugin type for the table.
 
 get_providers ()
 Get the configured ai providers from the manager.
 
 get_row_class (\stdClass $row)
 Get the class for row whether is dimmed or not according to enabled or disabled.
 
 get_sortorder_service ()
 Get the web service method used to order provider instances.
 
 get_table_id ()
 Get the table id for the table.
 
 get_table_js_module ()
 Get the js module needed for the table.
 
 get_toggle_service ()
 Webservice for toggle.
 
 setup_column_configuration ()
 Setup the column configs for the table.
 

Protected Attributes

array array $aiproviders = []
 $aiproviders List of configured provider instances.
 
int int $enabledprovidercount = 0
 The number of enabled provider instances.
 

Member Function Documentation

◆ col_delete()

core_ai\table\aiprovider_management_table::col_delete ( \stdClass $row)

The column to show the delete action for the provider instance.

Parameters
stdClass$rowThe row object.
Return values
string

◆ col_enabled()

core_ai\table\aiprovider_management_table::col_enabled ( \stdClass $row)

The column for enabled or disabled status of the provider instance.

Parameters
stdClass$rowThe row object
Return values
string

◆ col_name()

core_ai\table\aiprovider_management_table::col_name ( \stdClass $row)

The column for the provider instance Name.

Parameters
stdClass$rowThe row object
Return values
string

◆ col_order()

core_ai\table\aiprovider_management_table::col_order ( \stdClass $row)
protected

Generates the HTML for the order column with up and down controls.

Parameters
stdClass$rowAn object representing a row of data.
Return values
stringThe HTML string for the order controls, or an empty string if no controls are needed.

◆ col_provider()

core_ai\table\aiprovider_management_table::col_provider ( \stdClass $row)

The column for the provider plugin name.

Parameters
stdClass$rowThe row object
Return values
string

◆ col_settings()

core_ai\table\aiprovider_management_table::col_settings ( \stdClass $row)

The column to show the settings of the provider instance.

Parameters
stdClass$rowThe row object.
Return values
string

◆ get_action_url()

core_ai\table\aiprovider_management_table::get_action_url ( array $params = [])
protected

Get the action URL for the table.

Parameters
array$paramsThe params to pass to the URL.
Return values
moodle_url
Deprecated
since 5.0

◆ get_base_action_url()

core_ai\table\aiprovider_management_table::get_base_action_url ( array $params = [])
protected

Get the action URL for this table.

The action URL is used to perform all actions when JS is not available.

Parameters
array$params
Return values
moodle_url

◆ get_column_list()

core_ai\table\aiprovider_management_table::get_column_list ( )
protected

Get the column list for the table.

Return values
array

◆ get_content()

core_ai\table\aiprovider_management_table::get_content ( )

Get the content of the table.

Return values
string

◆ get_delete_service()

core_ai\table\aiprovider_management_table::get_delete_service ( )
protected

Webservice for delete.

Return values
string

◆ get_plugintype()

core_ai\table\aiprovider_management_table::get_plugintype ( )
protected

Get the plugin type for the table.

Return values
string
Deprecated
since 5.0

◆ get_providers()

core_ai\table\aiprovider_management_table::get_providers ( )
protected

Get the configured ai providers from the manager.

Return values
array

◆ get_row_class()

core_ai\table\aiprovider_management_table::get_row_class ( \stdClass $row)
protected

Get the class for row whether is dimmed or not according to enabled or disabled.

Parameters
stdClass$rowThe row object
Return values
string

◆ get_sortorder_service()

core_ai\table\aiprovider_management_table::get_sortorder_service ( )
protected

Get the web service method used to order provider instances.

Return values
null|string

◆ get_table_id()

core_ai\table\aiprovider_management_table::get_table_id ( )
protected

Get the table id for the table.

Return values
string

◆ get_table_js_module()

core_ai\table\aiprovider_management_table::get_table_js_module ( )
protected

Get the js module needed for the table.

This module can include table specific ajax calls etc.

Return values
string

◆ get_toggle_service()

core_ai\table\aiprovider_management_table::get_toggle_service ( )
protected

Webservice for toggle.

Return values
string

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