◆ add()
static license_manager::add |
( |
|
$license | ) |
|
|
static |
Adding a new license type.
- Parameters
-
object | $license | { shortname => string a shortname of license, will be refered by files table[required] fullname => string the fullname of the license [required] source => string the homepage of the license type[required] enabled => int is it enabled? version => int a version number used by moodle [required] } |
◆ disable()
static license_manager::disable |
( |
|
$license | ) |
|
|
static |
Disable a license.
- Parameters
-
string | $license | the shortname of license |
- Return values
-
◆ enable()
static license_manager::enable |
( |
|
$license | ) |
|
|
static |
Enable a license.
- Parameters
-
string | $license | the shortname of license |
- Return values
-
◆ get_license_by_shortname()
static license_manager::get_license_by_shortname |
( |
|
$name | ) |
|
|
static |
Get license record by shortname.
- Parameters
-
mixed | $param | the shortname of license, or an array |
- Return values
-
◆ get_licenses()
static license_manager::get_licenses |
( |
|
$param = null | ) |
|
|
static |
Get license records.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file: