Moodle  2.2.1
http://www.collinsharper.com
license_manager Class Reference

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 ()

Detailed Description

Definition at line 31 of file licenselib.php.


Member Function Documentation

static 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] }

Definition at line 42 of file licenselib.php.

Here is the caller graph for this function:

static disable ( license) [static]

Disable a license

Parameters:
string$licensethe shortname of license
Returns:
boolean

Definition at line 110 of file licenselib.php.

Here is the call graph for this function:

static enable ( license) [static]

Enable a license

Parameters:
string$licensethe shortname of license
Returns:
boolean

Definition at line 95 of file licenselib.php.

static get_license_by_shortname ( name) [static]

Get license record by shortname

Parameters:
mixed$paramthe shortname of license, or an array
Returns:
object

Definition at line 81 of file licenselib.php.

static get_licenses ( param = null) [static]

Get license records

Parameters:
mixed$param
Returns:
array

Definition at line 63 of file licenselib.php.

Here is the caller graph for this function:

static install_licenses ( ) [static]

Install moodle build-in licenses

Definition at line 140 of file licenselib.php.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations