ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($a_obj_id) | |
Constructor. More... | |
getObjId () | |
setObjId ($obj_id) | |
setLicenses ($a_licenses=0) | |
getLicenses () | |
setRemarks ($a_remarks='') | |
getRemarks () | |
getAccesses () | |
getRemainingLicenses () | |
getPotentialAccesses () | |
Get the number of users who may access the object but don't have yet a license. More... | |
read () | |
Read the license data from the database. More... | |
update () | |
Update the license data in the database. More... | |
delete () | |
Delete all data of the license. More... | |
Static Public Member Functions | |
static | _checkAccess ($a_usr_id, $a_obj_id) |
Check, if a user can access an object by license. More... | |
static | _noteAccess ($a_obj_id, $a_type, $a_ref_id) |
Note the access of the current usr to an object. More... | |
static | _getLicensedObjects () |
Get a list of all objects with activated licensing. More... | |
static | _getLicensedChildObjects ($a_ref_id) |
Get a list of all sub objects with activated licensing. More... | |
static | _isLicensed ($a_obj_id) |
Check if an object has licensing activated. More... | |
Protected Attributes | |
$obj_id = 0 | |
$licenses = 0 | |
$remarks = '' | |
$accesses = 0 | |
Definition at line 12 of file class.ilLicense.php.
ilLicense::__construct | ( | $a_obj_id | ) |
Constructor.
public
Definition at line 38 of file class.ilLicense.php.
References read().
|
static |
Check, if a user can access an object by license.
The user can access, if he/she already accessed the object or if a license is available for the object. This check is called from the ilAccessHandler class.
int | $a_usr_id | |
int | $a_obj_id | (not reference) |
Definition at line 243 of file class.ilLicense.php.
References ilLicenseAccess\_checkAccess().
|
static |
Get a list of all sub objects with activated licensing.
int | $a_ref_id | of the repository node to check |
Definition at line 328 of file class.ilLicense.php.
Referenced by ilObjCourseGUI\checkLicenses(), and ilLicenseOverviewTableGUI\getItems().
|
static |
Get a list of all objects with activated licensing.
Definition at line 300 of file class.ilLicense.php.
References $ilDB, $obj_id, $query, $result, $row, and array.
Referenced by ilLicenseOverviewTableGUI\getItems().
|
static |
|
static |
Note the access of the current usr to an object.
This function has to be called if an object is accessed for viewing.
int | $a_obj_id | |
string | $a_type | |
int | $a_ref_id |
Definition at line 261 of file class.ilLicense.php.
References $a_type, $ilDB, $ilUser, $query, $result, $row, ilLicenseAccess\_isEnabled(), ilChangeEvent\_recordReadEvent(), and array.
Referenced by ilSAHSPresentationGUI\executeCommand().
ilLicense::delete | ( | ) |
Delete all data of the license.
public
Definition at line 218 of file class.ilLicense.php.
References $ilDB, $query, and array.
ilLicense::getAccesses | ( | ) |
ilLicense::getLicenses | ( | ) |
ilLicense::getObjId | ( | ) |
Definition at line 48 of file class.ilLicense.php.
References $obj_id.
Referenced by getPotentialAccesses(), and read().
ilLicense::getPotentialAccesses | ( | ) |
Get the number of users who may access the object but don't have yet a license.
public
Definition at line 123 of file class.ilLicense.php.
References $ilDB, $query, $result, $row, ilRbacReview\_getOperationIdsByName(), array, and getObjId().
ilLicense::getRemainingLicenses | ( | ) |
Definition at line 111 of file class.ilLicense.php.
ilLicense::getRemarks | ( | ) |
ilLicense::read | ( | ) |
Read the license data from the database.
public
Definition at line 163 of file class.ilLicense.php.
References $ilDB, $query, $result, $row, array, and getObjId().
Referenced by __construct().
ilLicense::setLicenses | ( | $a_licenses = 0 | ) |
int | $a_licenses |
Definition at line 66 of file class.ilLicense.php.
ilLicense::setObjId | ( | $obj_id | ) |
ilLicense::setRemarks | ( | $a_remarks = '' | ) |
string | $a_remarks |
Definition at line 84 of file class.ilLicense.php.
ilLicense::update | ( | ) |
|
protected |
Definition at line 30 of file class.ilLicense.php.
Referenced by getAccesses().
|
protected |
Definition at line 22 of file class.ilLicense.php.
Referenced by getLicenses().
|
protected |
Definition at line 18 of file class.ilLicense.php.
Referenced by _getLicensedObjects(), getObjId(), and setObjId().
|
protected |
Definition at line 26 of file class.ilLicense.php.
Referenced by getRemarks().