ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilSessionWaitingList.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once('./Services/Membership/classes/class.ilWaitingList.php');
5
15{
16
21 public function addToList($a_usr_id)
22 {
23 global $DIC;
24
25 $ilAppEventHandler = $DIC['ilAppEventHandler'];
26 $ilLog = $DIC->logger()->sess();
27
28 if (!parent::addToList($a_usr_id)) {
29 return false;
30 }
31
32 $ilLog->info('Raise new event: Modules/Session addToWaitingList');
33 $ilAppEventHandler->raise(
34 "Modules/Session",
35 'addToWaitingList',
36 array(
37 'obj_id' => $this->getObjId(),
38 'usr_id' => $a_usr_id
39 )
40 );
41 return true;
42 }
43}
An exception for terminatinating execution or to throw for unit testing.
addToList($a_usr_id)
Add to waiting list and raise event.
Base class for course and group waiting lists.
global $DIC
Definition: saml.php:7