Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Public Attributes | List of all members
tool_licensemanager\manager Class Reference

License manager, main controller for tool_licensemanager. More...

Public Member Functions

 execute (string $action, $license)
 Entry point for internal license manager. More...
 

Public Attributes

const ACTION_CREATE = 'create'
 Action for creating a new custom license.
 
const ACTION_DELETE = 'delete'
 Action for deleting a custom license.
 
const ACTION_DISABLE = 'disable'
 Action for disabling a custom license.
 
const ACTION_ENABLE = 'enable'
 Action for enabling a custom license.
 
const ACTION_MOVE_DOWN = 'movedown'
 Action for moving a license down order.
 
const ACTION_MOVE_UP = 'moveup'
 Action for moving a license up order.
 
const ACTION_UPDATE = 'update'
 Action for updating a custom license's details.
 
const ACTION_VIEW_LICENSE_MANAGER = 'viewlicensemanager'
 Action for displaying the license list view.
 

Detailed Description

License manager, main controller for tool_licensemanager.

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

Member Function Documentation

◆ execute()

tool_licensemanager\manager::execute ( string  $action,
  $license 
)

Entry point for internal license manager.

Parameters
string$actionthe api action to carry out.
string | object$licensethe license object or shortname of license to carry action out on.

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