Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

This file contains the classes for the admin settings of the assign module.

Copyright: 2012 NetSpot {@link http://www.netspot.com.au}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 372 lines (12 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 2 classes

assign_admin_page_manage_assign_plugins:: (2 methods):
  __construct()
  search()

assign_plugin_manager:: (11 methods):
  __construct()
  get_sorted_plugins_list()
  format_icon_link()
  view_plugins_table()
  view_header()
  view_footer()
  check_permissions()
  hide_plugin()
  move_plugin()
  show_plugin()
  execute()


Class: assign_admin_page_manage_assign_plugins  - X-Ref

Admin external page that displays a list of the installed submission plugins.

__construct($subtype)   X-Ref
The constructor - calls parent constructor

param: string $subtype

search($query)   X-Ref
Search plugins for the specified string

param: string $query The string to search for
return: array

Class: assign_plugin_manager  - X-Ref

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

__construct($subtype)   X-Ref
Constructor for this assignment plugin manager

param: string $subtype - either assignsubmission or assignfeedback

get_sorted_plugins_list()   X-Ref
Return a list of plugins sorted by the order defined in the admin interface

return: array The list of plugins

format_icon_link($action, $plugin, $icon, $alt)   X-Ref
Util function for writing an action icon link

param: string $action URL parameter to include in the link
param: string $plugin URL parameter to include in the link
param: string $icon The key to the icon to use (e.g. 't/up')
param: string $alt The string description of the link used as the title and alt text
return: string The icon/link

view_plugins_table()   X-Ref
Write the HTML for the submission plugins table.

return: None

view_header()   X-Ref
Write the page header

return: None

view_footer()   X-Ref
Write the page footer

return: None

check_permissions()   X-Ref
Check this user has permission to edit the list of installed plugins

return: None

hide_plugin($plugin)   X-Ref
Hide this plugin.

param: string $plugin - The plugin to hide
return: string The next page to display

move_plugin($plugintomove, $dir)   X-Ref
Change the order of this plugin.

param: string $plugintomove - The plugin to move
param: string $dir - up or down
return: string The next page to display

show_plugin($plugin)   X-Ref
Show this plugin.

param: string $plugin - The plugin to show
return: string The next page to display

execute($action, $plugin)   X-Ref
This is the entry point for this controller class.

param: string $action - The action to perform
param: string $plugin - Optional name of a plugin type to perform the action on
return: None