ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilSessionWaitingList.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
28 {
29  public function addToList(int $a_usr_id): bool
30  {
31  global $DIC;
32 
33  $ilAppEventHandler = $DIC->event();
34  $ilLog = $DIC->logger()->sess();
35 
36  if (!parent::addToList($a_usr_id)) {
37  return false;
38  }
39 
40  $ilLog->info('Raise new event: Modules/Session addToWaitingList');
41  $ilAppEventHandler->raise(
42  "components/ILIAS/Session",
43  'addToWaitingList',
44  array(
45  'obj_id' => $this->getObjId(),
46  'usr_id' => $a_usr_id
47  )
48  );
49  return true;
50  }
51 }
Base class for course and group waiting lists.
global $DIC
Definition: shib_login.php:22