ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
ilLicense ($a_obj_id) | |
Constructor public. | |
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. | |
read () | |
Read the license data from the database. | |
update () | |
Update the license data in the database. | |
delete () | |
Delete all data of the license. | |
_checkAccess ($a_usr_id, $a_obj_id) | |
Check, if a user can access an object by license. | |
_noteAccess ($a_obj_id, $a_type, $a_ref_id) | |
Note the access of the current usr to an object. | |
_getLicensedObjects () | |
Get a list of all objects with activated licensing. | |
_getLicensedChildObjects ($a_ref_id) | |
Get a list of all sub objects with activated licensing. | |
_isLicensed ($a_obj_id) | |
Check if an object has licensing activated. |
Definition at line 13 of file class.ilLicense.php.
ilLicense::_checkAccess | ( | $a_usr_id, | |
$a_obj_id | |||
) |
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.
static
int | user id |
int | object id (not reference) |
Definition at line 193 of file class.ilLicense.php.
ilLicense::_getLicensedChildObjects | ( | $a_ref_id | ) |
Get a list of all sub objects with activated licensing.
static
int | ref_id of the repository node to check |
Definition at line 291 of file class.ilLicense.php.
Referenced by ilObjCourseGUI\checkLicenses(), and ilLicenseOverviewGUI\showLicenses().
ilLicense::_getLicensedObjects | ( | ) |
Get a list of all objects with activated licensing.
static
Definition at line 259 of file class.ilLicense.php.
References $query, $result, and $row.
Referenced by ilLicenseOverviewGUI\showLicenses().
ilLicense::_isLicensed | ( | $a_obj_id | ) |
Check if an object has licensing activated.
static
int | object id |
Definition at line 315 of file class.ilLicense.php.
ilLicense::_noteAccess | ( | $a_obj_id, | |
$a_type, | |||
$a_ref_id | |||
) |
Note the access of the current usr to an object.
This function has to be called if an object is accessed for viewing.
static
int | object id (not reference) |
Definition at line 209 of file class.ilLicense.php.
References $ilSetting, $ilUser, $query, $result, $row, ilLicenseAccess\_isEnabled(), and ilChangeEvent\_recordReadEvent().
Referenced by ilSAHSPresentationGUI\executeCommand(), and ilObjFileBasedLMGUI\showLearningModule().
ilLicense::delete | ( | ) |
Delete all data of the license.
public
Definition at line 169 of file class.ilLicense.php.
References $query.
ilLicense::getAccesses | ( | ) |
Definition at line 44 of file class.ilLicense.php.
ilLicense::getLicenses | ( | ) |
Definition at line 32 of file class.ilLicense.php.
ilLicense::getPotentialAccesses | ( | ) |
Get the number of users who may access the object but don't have yet a license.
public
Definition at line 59 of file class.ilLicense.php.
References $query, $result, $row, and ilRbacReview\_getOperationIdsByName().
ilLicense::getRemainingLicenses | ( | ) |
Definition at line 48 of file class.ilLicense.php.
ilLicense::getRemarks | ( | ) |
Definition at line 40 of file class.ilLicense.php.
ilLicense::ilLicense | ( | $a_obj_id | ) |
Constructor public.
Definition at line 19 of file class.ilLicense.php.
References read().
ilLicense::read | ( | ) |
Read the license data from the database.
public
Definition at line 107 of file class.ilLicense.php.
References $query, $result, and $row.
Referenced by ilLicense().
ilLicense::setLicenses | ( | $a_licenses = 0 | ) |
Definition at line 28 of file class.ilLicense.php.
ilLicense::setRemarks | ( | $a_remarks = '' | ) |
Definition at line 36 of file class.ilLicense.php.
ilLicense::update | ( | ) |
Update the license data in the database.
public
Definition at line 133 of file class.ilLicense.php.
References $query, $result, and $row.