|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Collaboration diagram for ilLicense:Public Member Functions | |
| ilLicense ($a_obj_id) | |
| Constructor @access public. More... | |
| 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... | |
| _checkAccess ($a_usr_id, $a_obj_id) | |
| Check, if a user can access an object by license. More... | |
| _noteAccess ($a_obj_id, $a_type, $a_ref_id) | |
| Note the access of the current usr to an object. More... | |
| _getLicensedObjects () | |
| Get a list of all objects with activated licensing. More... | |
| _getLicensedChildObjects ($a_ref_id) | |
| Get a list of all sub objects with activated licensing. More... | |
| _isLicensed ($a_obj_id) | |
| Check if an object has licensing activated. More... | |
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.
@access static
| int | user id |
| int | object id (not reference) |
Definition at line 193 of file class.ilLicense.php.
References ilLicenseAccess\_checkAccess().
Here is the call graph for this function:| ilLicense::_getLicensedChildObjects | ( | $a_ref_id | ) |
Get a list of all sub objects with activated licensing.
@access static
| int | ref_id of the repository node to check |
Definition at line 291 of file class.ilLicense.php.
Referenced by ilObjCourseGUI\checkLicenses(), and ilLicenseOverviewTableGUI\getItems().
Here is the caller graph for this function:| ilLicense::_getLicensedObjects | ( | ) |
Get a list of all objects with activated licensing.
@access static
Definition at line 259 of file class.ilLicense.php.
References $ilDB, $query, $result, and $row.
Referenced by ilLicenseOverviewTableGUI\getItems().
Here is the caller graph for this function:| ilLicense::_isLicensed | ( | $a_obj_id | ) |
Check if an object has licensing activated.
@access 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.
@access static
| int | object id (not reference) |
Definition at line 209 of file class.ilLicense.php.
References $ilDB, $ilSetting, $ilUser, $query, $result, $row, ilLicenseAccess\_isEnabled(), and ilChangeEvent\_recordReadEvent().
Referenced by ilSAHSPresentationGUI\executeCommand(), and ilObjFileBasedLMGUI\showLearningModule().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLicense::delete | ( | ) |
| 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.
@access public
Definition at line 59 of file class.ilLicense.php.
References $ilDB, $query, $result, $row, and ilRbacReview\_getOperationIdsByName().
Here is the call graph for this function:| 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 @access public.
Definition at line 19 of file class.ilLicense.php.
References read().
Here is the call graph for this function:| ilLicense::read | ( | ) |
Read the license data from the database.
@access public
Definition at line 107 of file class.ilLicense.php.
References $ilDB, $query, $result, and $row.
Referenced by ilLicense().
Here is the caller graph for this function:| 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.
@access public
Definition at line 133 of file class.ilLicense.php.