19 declare(strict_types=1);
48 $ls_items = $this->items_db->getLSItems($container_ref_id);
50 foreach ($ls_items as $ls_item) {
75 return (
int) $il_lp_status;
81 $access = $this->
access->checkAccessOfUser(
87 return ($online && $access);
93 $readable = $this->
access->checkAccessOfUser($usr_id,
'read',
'', $ls_item->
getRefId());
getObjIdForRefId(int $ref_id)
getLearningProgressFor(int $usr_id, LSItem $ls_item)
static isSupportedObjectType(string $type)
isItemVisibleForUser(int $usr_id, LSItem $ls_item)
getLearnerItems(int $usr_id, int $container_ref_id)
Decorate LSItems with learning progress and availability (from conditions)
ilObjectDataCache $obj_data_cache
static _lookupObjId(int $ref_id)
getAvailabilityFor(int $usr_id, LSItem $ls_item)
Data holding class LSItem .
static _lookupStatus(int $a_obj_id, int $a_user_id, bool $a_create=true)
Lookup status.
const LP_STATUS_NOT_ATTEMPTED_NUM
__construct(ilLSItemsDB $items_db, ilAccess $access, ilObjectDataCache $obj_data_cache)
Get LearningProgress and availability of items in sequence.
Add learning progress and availability information to the LSItem.