ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilLearningSequenceWaitingList Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilLearningSequenceWaitingList:
+ Collaboration diagram for ilLearningSequenceWaitingList:

Public Member Functions

 addToList (int $a_usr_id)
 
- Public Member Functions inherited from ilWaitingList
 __construct (int $a_obj_id)
 
 getObjId ()
 
 addToList (int $a_usr_id)
 
 updateSubscriptionTime (int $a_usr_id, int $a_subtime)
 
 removeFromList (int $a_usr_id)
 
 isOnList (int $a_usr_id)
 
 getCountUsers ()
 
 getPosition (int $a_usr_id)
 
 getAllUsers ()
 get all users on waiting list public More...
 
 getUser (int $a_usr_id)
 get user More...
 
 getUserIds ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ilWaitingList
static lookupListSize (int $a_obj_id)
 
static _deleteAll (int $a_obj_id)
 
static _deleteUser (int $a_usr_id)
 
static deleteUserEntry (int $a_usr_id, int $a_obj_id)
 
static _isOnList (int $a_usr_id, int $a_obj_id)
 
static _preloadOnListInfo (array $a_usr_ids, array $a_obj_ids)
 Preload on list info. More...
 
- Static Public Attributes inherited from ilWaitingList
static array $is_on_list = []
 
- Protected Attributes inherited from ilWaitingList
ilDBInterface $db
 
ilAppEventHandler $eventHandler
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 21 of file class.ilLearningSequenceWaitingList.php.

Member Function Documentation

◆ addToList()

ilLearningSequenceWaitingList::addToList ( int  $a_usr_id)

PhpUndefinedMethodInspection

Definition at line 23 of file class.ilLearningSequenceWaitingList.php.

References $DIC, $log, and ilWaitingList\getObjId().

23  : bool
24  {
25  global $DIC;
26 
27  $app_event_handler = $DIC->event();
28  $log = $DIC->logger();
29 
30  if (!parent::addToList($a_usr_id)) {
31  return false;
32  }
33 
35  $log->lso()->info('Raise new event: Modules/LearningSerquence addToList.');
36  $app_event_handler->raise(
37  "Modules/LearningSequence",
38  'addToWaitingList',
39  array(
40  'obj_id' => $this->getObjId(),
41  'usr_id' => $a_usr_id
42  )
43  );
44 
45  return true;
46  }
global $DIC
Definition: feed.php:28
$log
Definition: result.php:33
+ Here is the call graph for this function:

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