|
Moodle
2.2.1
http://www.collinsharper.com
|
Static Public Member Functions | |
| static | add ($license) |
| static | get_licenses ($param=null) |
| static | get_license_by_shortname ($name) |
| static | enable ($license) |
| static | disable ($license) |
| static | install_licenses () |
Definition at line 31 of file licenselib.php.
| static add | ( | $ | license | ) | [static] |
Adding a new license type
| 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] } |
Definition at line 42 of file licenselib.php.

| static disable | ( | $ | license | ) | [static] |
Disable a license
| string | $license | the shortname of license |
Definition at line 110 of file licenselib.php.

| static enable | ( | $ | license | ) | [static] |
Enable a license
| string | $license | the shortname of license |
Definition at line 95 of file licenselib.php.
| static get_license_by_shortname | ( | $ | name | ) | [static] |
Get license record by shortname
| mixed | $param | the shortname of license, or an array |
Definition at line 81 of file licenselib.php.
| static get_licenses | ( | $ | param = null | ) | [static] |
Get license records
| mixed | $param |
Definition at line 63 of file licenselib.php.

| static install_licenses | ( | ) | [static] |
Install moodle build-in licenses
Definition at line 140 of file licenselib.php.

