23 if (isset($enabled)) {
28 if ($lic_set->get(
"license_counter")) {
56 $query =
'SELECT licenses, used FROM license_data WHERE obj_id = %s';
61 if (
$row->licenses == 0 or
$row->used <
$row->licenses) {
70 $query =
'SELECT read_count FROM read_event ' .
'WHERE usr_id = %s AND obj_id = %s';
72 $result =
$ilDB->queryF(
$query, array(
'integer',
'integer' ), array( $a_usr_id, $a_obj_id ));
An exception for terminatinating execution or to throw for unit testing.
static _isEnabled()
Check, if licencing is enabled This check is called from the ilAccessHandler class.
static _checkAccess($a_usr_id, $a_obj_id)
Check, if a user can access an object by license.