ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilLearningSequenceWaitingList.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public function addToList(int $a_usr_id): bool
24 {
25 global $DIC;
26
27 $app_event_handler = $DIC->event();
28 $log = $DIC->logger();
29
30 if (!parent::addToList($a_usr_id)) {
31 return false;
32 }
33
35 $log->lso()->info('Raise new event: Modules/LearningSerquence addToList.');
36 $app_event_handler->raise(
37 "components/ILIAS/LearningSequence",
38 'addToWaitingList',
39 array(
40 'obj_id' => $this->getObjId(),
41 'usr_id' => $a_usr_id
42 )
43 );
44
45 return true;
46 }
47}
Base class for course and group waiting lists.
$log
Definition: ltiresult.php:34
global $DIC
Definition: shib_login.php:26