ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.
global $DIC
Definition: saml.php:7
$log
Definition: sabredav.php:21
getObjId()
get obj id