|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Collaboration diagram for ilLicense: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.
@access public
Definition at line 37 of file class.ilLicense.php.
References read().
Here is the call graph for this function:
|
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 229 of file class.ilLicense.php.
References ilLicenseAccess\_checkAccess().
Here is the call graph for this function:
|
static |
Get a list of all sub objects with activated licensing.
| int | $a_ref_id | of the repository node to check |
Definition at line 311 of file class.ilLicense.php.
References $data.
Referenced by ilObjCourseGUI\checkLicenses(), and ilLicenseOverviewTableGUI\getItems().
Here is the caller graph for this function:
|
static |
Get a list of all objects with activated licensing.
Definition at line 284 of file class.ilLicense.php.
References $ilDB, $obj_id, $query, $result, and $row.
Referenced by ilLicenseOverviewTableGUI\getItems().
Here is the caller graph for this function:
|
static |
Check if an object has licensing activated.
| int | $a_obj_id |
Definition at line 332 of file class.ilLicense.php.
|
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 246 of file class.ilLicense.php.
References $a_type, $ilDB, $ilUser, $query, $result, $row, ilLicenseAccess\_isEnabled(), and ilChangeEvent\_recordReadEvent().
Referenced by ilSAHSPresentationGUI\executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLicense::delete | ( | ) |
| ilLicense::getAccesses | ( | ) |
| ilLicense::getLicenses | ( | ) |
| ilLicense::getObjId | ( | ) |
Definition at line 46 of file class.ilLicense.php.
References $obj_id.
Referenced by getPotentialAccesses(), and read().
Here is the caller graph for this function:| ilLicense::getPotentialAccesses | ( | ) |
Get the number of users who may access the object but don't have yet a license.
@access public
Definition at line 113 of file class.ilLicense.php.
References $ilDB, $query, $result, $row, ilRbacReview\_getOperationIdsByName(), and getObjId().
Here is the call graph for this function:| ilLicense::getRemainingLicenses | ( | ) |
Definition at line 102 of file class.ilLicense.php.
| ilLicense::getRemarks | ( | ) |
| ilLicense::read | ( | ) |
Read the license data from the database.
@access public
Definition at line 152 of file class.ilLicense.php.
References $ilDB, $query, $result, $row, and getObjId().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLicense::setLicenses | ( | $a_licenses = 0 | ) |
| int | $a_licenses |
Definition at line 62 of file class.ilLicense.php.
| ilLicense::setObjId | ( | $obj_id | ) |
| ilLicense::setRemarks | ( | $a_remarks = '' | ) |
| string | $a_remarks |
Definition at line 78 of file class.ilLicense.php.
| ilLicense::update | ( | ) |
Update the license data in the database.
@access public
Definition at line 175 of file class.ilLicense.php.
|
protected |
Definition at line 29 of file class.ilLicense.php.
Referenced by getAccesses().
|
protected |
Definition at line 21 of file class.ilLicense.php.
Referenced by getLicenses().
|
protected |
Definition at line 17 of file class.ilLicense.php.
Referenced by _getLicensedObjects(), getObjId(), and setObjId().
|
protected |
Definition at line 25 of file class.ilLicense.php.
Referenced by getRemarks().