License manager helper class.
More...
|
const | MANAGER_PATH = '/admin/tool/licensemanager/index.php' |
| Moodle relative path to the licenses manager.
|
|
◆ convert_version_to_epoch()
static tool_licensemanager\helper::convert_version_to_epoch |
( |
string | $version | ) |
|
|
static |
Convert a license version number string to a UNIX epoch.
- Parameters
-
- Return values
-
◆ get_create_license_url()
static tool_licensemanager\helper::get_create_license_url |
( |
| ) |
|
|
static |
Get the URL endpoint to create a new license.
- Return values
-
◆ get_disable_license_url()
static tool_licensemanager\helper::get_disable_license_url |
( |
string | $licenseshortname | ) |
|
|
static |
Get the URL for endpoint disabling a license.
- Parameters
-
string | $licenseshortname | the shortname of license to disable. |
- Return values
-
◆ get_enable_license_url()
static tool_licensemanager\helper::get_enable_license_url |
( |
string | $licenseshortname | ) |
|
|
static |
Get the URL for endpoint enabling a license.
- Parameters
-
string | $licenseshortname | the shortname of license to enable. |
- Return values
-
◆ get_licensemanager_url()
static tool_licensemanager\helper::get_licensemanager_url |
( |
| ) |
|
|
static |
Get the URL for viewing the license manager interface.
- Return values
-
◆ get_movedown_license_url()
static tool_licensemanager\helper::get_movedown_license_url |
( |
string | $licenseshortname | ) |
|
|
static |
Get the URL endpoint to move a license down order.
- Parameters
-
string | $licenseshortname | the shortname of license to move down. |
- Return values
-
◆ get_moveup_license_url()
static tool_licensemanager\helper::get_moveup_license_url |
( |
string | $licenseshortname | ) |
|
|
static |
Get the URL endpoint to move a license up order.
- Parameters
-
string | $licenseshortname | the shortname of license to move up. |
- Return values
-
◆ get_update_license_url()
static tool_licensemanager\helper::get_update_license_url |
( |
string | $licenseshortname | ) |
|
|
static |
Get the URL endpoint to update an existing license.
- Parameters
-
string | $licenseshortname | the shortname of license to update. |
- Return values
-
The documentation for this class was generated from the following file: