3 declare(strict_types=1);
40 $ls_items = $this->items_db->getLSItems($container_ref_id);
42 foreach ($ls_items as $ls_item) {
56 return (
int) $this->obj_data_cache->lookupObjId($ref_id);
67 return (
int) $il_lp_status;
73 $access = $this->access->checkAccessOfUser(
84 $this->access->clear();
85 $readable = $this->access->checkAccessOfUser($usr_id,
'read',
'', $ls_item->
getRefId());
getObjIdForRefId(int $ref_id)
getLearningProgressFor(int $usr_id, LSItem $ls_item)
isItemVisibleForUser(int $usr_id, LSItem $ls_item)
static isSupportedObjectType($a_type)
getLearnerItems(int $usr_id, int $container_ref_id)
Decorate LSItems with learning progress and availability (from conditions)
getAvailabilityFor(int $usr_id, LSItem $ls_item)
Data holding class LSItem .
const LP_STATUS_NOT_ATTEMPTED_NUM
__construct(ilLSItemsDB $items_db, ilAccess $access, ilObjectDataCache $obj_data_cache)
Get LearningProgress and availability of items in sequence.
static _lookupStatus($a_obj_id, $a_user_id, $a_create=true)
Lookup status.
Add learning progress and availability information to the LSItem.