Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
assign_plugin_manager Class Reference

Class that handles the display and configuration of the list of submission plugins. More...

Public Member Functions

 __construct ($subtype)
 Constructor for this assignment plugin manager. More...
 
 execute ($action, $plugin)
 This is the entry point for this controller class. More...
 
 get_sorted_plugins_list ()
 Return a list of plugins sorted by the order defined in the admin interface. More...
 
 hide_plugin ($plugin)
 Hide this plugin. More...
 
 move_plugin ($plugintomove, $dir)
 Change the order of this plugin. More...
 
 show_plugin ($plugin)
 Show this plugin. More...
 

Detailed Description

Class that handles the display and configuration of the list of submission plugins.

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

Constructor & Destructor Documentation

◆ __construct()

assign_plugin_manager::__construct (   $subtype)

Constructor for this assignment plugin manager.

Parameters
string$subtype- either assignsubmission or assignfeedback

Member Function Documentation

◆ execute()

assign_plugin_manager::execute (   $action,
  $plugin 
)

This is the entry point for this controller class.

Parameters
string$action- The action to perform
string$plugin- Optional name of a plugin type to perform the action on
Return values
None

◆ get_sorted_plugins_list()

assign_plugin_manager::get_sorted_plugins_list ( )

Return a list of plugins sorted by the order defined in the admin interface.

Return values
arrayThe list of plugins

◆ hide_plugin()

assign_plugin_manager::hide_plugin (   $plugin)

Hide this plugin.

Parameters
string$plugin- The plugin to hide
Return values
stringThe next page to display

◆ move_plugin()

assign_plugin_manager::move_plugin (   $plugintomove,
  $dir 
)

Change the order of this plugin.

Parameters
string$plugintomove- The plugin to move
string$dir- up or down
Return values
stringThe next page to display

◆ show_plugin()

assign_plugin_manager::show_plugin (   $plugin)

Show this plugin.

Parameters
string$plugin- The plugin to show
Return values
stringThe next page to display

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