ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilLearningSequenceWaitingList.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
9 {
10  public function addToList($usr_id)
11  {
12  global $DIC;
13 
14  $app_event_handler = $dic->event();
15  $log = $dic->logger();
16 
17  if (!parent::addToList($usr_id)) {
18  return false;
19  }
20 
21  $log()->lso()->info('Raise new event: Modules/LearningSerquence addToList.');
22  $app_event_handler->raise(
23  "Modules/LearningSequence",
24  'addToWaitingList',
25  array(
26  'obj_id' => $this->getObjId(),
27  'usr_id' => $usr_id
28  )
29  );
30 
31  return true;
32  }
33 }
Base class for course and group waiting lists.
$log
Definition: result.php:15
global $DIC
Definition: goto.php:24
getObjId()
get obj id
$dic
Definition: result.php:13