Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
tool_licensemanager\manager Class Reference

Public Member Functions

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

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.
 

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: