ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilCourseWaitingList Class Reference

Course waiting list. 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 @access 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

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)

Reimplemented from ilWaitingList.

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

31 {
32 global $DIC;
33
34 $this->logger = $DIC->logger()->crs();
35 parent::__construct($a_obj_id);
36 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

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

+ Here is the call graph for this function:

Member Function Documentation

◆ addToList()

ilCourseWaitingList::addToList ( int  $a_usr_id)

Reimplemented from ilWaitingList.

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

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 "components/ILIAS/Course",
46 'addToWaitingList',
47 [
48 'obj_id' => $this->getObjId(),
49 'usr_id' => $a_usr_id
50 ]
51 );
52 return true;
53 }

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

+ Here is the call graph for this function:

◆ removeFromList()

ilCourseWaitingList::removeFromList ( int  $a_usr_id)

Reimplemented from ilWaitingList.

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

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 "components/ILIAS/Course",
63 'removeFromWaitingList',
64 [
65 'obj_id' => $this->getObjId(),
66 'usr_id' => $a_usr_id
67 ]
68 );
69 return true;
70 }

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

+ 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: