ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilCourseWaitingList 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 ilCourseWaitingList:
+ Collaboration diagram for ilCourseWaitingList:

Public Member Functions

 __construct (int $a_obj_id)
 
 addToList (int $a_usr_id)
 
 removeFromList (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 ()
 

Private Attributes

ilLogger $logger
 

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 Course waiting list

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e

Definition at line 26 of file class.ilCourseWaitingList.php.

Constructor & Destructor Documentation

◆ __construct()

ilCourseWaitingList::__construct ( int  $a_obj_id)

Definition at line 30 of file class.ilCourseWaitingList.php.

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\logger().

31  {
32  global $DIC;
33 
34  $this->logger = $DIC->logger()->crs();
35  parent::__construct($a_obj_id);
36  }
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ addToList()

ilCourseWaitingList::addToList ( int  $a_usr_id)

Definition at line 38 of file class.ilCourseWaitingList.php.

References ilWaitingList\getObjId(), and ILIAS\Repository\logger().

Referenced by ilCourseRegistrationGUI\add().

38  : bool
39  {
40  if (!parent::addToList($a_usr_id)) {
41  return false;
42  }
43  $this->logger->debug('Raise new event: Modules/Course addToList');
44  $this->eventHandler->raise(
45  "Modules/Course",
46  'addToWaitingList',
47  [
48  'obj_id' => $this->getObjId(),
49  'usr_id' => $a_usr_id
50  ]
51  );
52  return true;
53  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromList()

ilCourseWaitingList::removeFromList ( int  $a_usr_id)

Definition at line 55 of file class.ilCourseWaitingList.php.

References ilWaitingList\getObjId(), and ILIAS\Repository\logger().

55  : bool
56  {
57  if (!parent::removeFromList($a_usr_id)) {
58  return false;
59  }
60  $this->logger->debug('Raise new event: Modules/Course removeFromList');
61  $this->eventHandler->raise(
62  "Modules/Course",
63  'removeFromWaitingList',
64  [
65  'obj_id' => $this->getObjId(),
66  'usr_id' => $a_usr_id
67  ]
68  );
69  return true;
70  }
+ Here is the call graph for this function:

Field Documentation

◆ $logger

ilLogger ilCourseWaitingList::$logger
private

Definition at line 28 of file class.ilCourseWaitingList.php.


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