ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\MediaCast\LearningProgress\LearningProgressManager Class Reference
+ Collaboration diagram for ILIAS\MediaCast\LearningProgress\LearningProgressManager:

Public Member Functions

 __construct (\ilObjMediaCast $media_cast)
 
 addItemToLP (int $mob_id)
 
 isCollectionMode ()
 

Protected Attributes

ilObjMediaCast $media_cast
 

Detailed Description

Definition at line 23 of file LearningProgressManager.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MediaCast\LearningProgress\LearningProgressManager::__construct ( \ilObjMediaCast  $media_cast)

Member Function Documentation

◆ addItemToLP()

ILIAS\MediaCast\LearningProgress\LearningProgressManager::addItemToLP ( int  $mob_id)

Definition at line 32 of file LearningProgressManager.php.

References ilLPStatusWrapper\_refreshStatus(), and ilObjectLP\getInstance().

32  : void
33  {
34  $lp = \ilObjectLP::getInstance($this->media_cast->getId());
35 
36  // see ilLPListOfSettingsGUI assign
37  $collection = $lp->getCollectionInstance();
38  if (
39  $collection &&
40  $collection->hasSelectableItems() &&
41  $this->media_cast->getNewItemsInLearningProgress()
42  ) {
43  $collection->activateEntries([$mob_id]);
44  $lp->resetCaches();
45  \ilLPStatusWrapper::_refreshStatus($this->media_cast->getId());
46  }
47  }
static _refreshStatus(int $a_obj_id, ?array $a_users=null)
static getInstance(int $obj_id)
+ Here is the call graph for this function:

◆ isCollectionMode()

ILIAS\MediaCast\LearningProgress\LearningProgressManager::isCollectionMode ( )

Definition at line 49 of file LearningProgressManager.php.

References ilObjectLP\getInstance(), and ilLPObjSettings\LP_MODE_COLLECTION_MOBS.

49  : bool
50  {
51  $lp = \ilObjectLP::getInstance($this->media_cast->getId());
52  return $lp->getCurrentMode() === \ilLPObjSettings::LP_MODE_COLLECTION_MOBS;
53  }
static getInstance(int $obj_id)
+ Here is the call graph for this function:

Field Documentation

◆ $media_cast

ilObjMediaCast ILIAS\MediaCast\LearningProgress\LearningProgressManager::$media_cast
protected

The documentation for this class was generated from the following file: