25        if (isset($enabled)) {
 
   30        if ($lic_set->get(
"license_counter")) {
 
   59        $query = 
'SELECT licenses, used FROM license_data WHERE obj_id = %s';
 
   64            if (
$row->licenses == 0 or 
$row->used < 
$row->licenses) {
 
   73        $query = 
'SELECT read_count FROM read_event ' . 
'WHERE usr_id = %s AND obj_id = %s';
 
   75        $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.