ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilCourseParticipant Class Reference
+ Inheritance diagram for ilCourseParticipant:
+ Collaboration diagram for ilCourseParticipant:

Public Member Functions

 __construct ($a_obj_id, $a_usr_id)
 Singleton constructor. More...
 
- Public Member Functions inherited from ilParticipant
 getUserId ()
 get user id More...
 
 isBlocked ()
 
 isAssigned ()
 
 isMember ()
 
 isAdmin ()
 
 isTutor ()
 
 isParticipant ()
 
 getNumberOfMembers ()
 
 add ($a_usr_id, $a_role)
 Add user to course. More...
 
 delete ($a_usr_id)
 Drop user from all roles. More...
 
 deleteSubscriber ($a_usr_id)
 Delete subsciber. More...
 
 addDesktopItem ($a_usr_id)
 Add desktop item. More...
 
 dropDesktopItem ($a_usr_id)
 Drop desktop item. More...
 
 updateNotification ($a_usr_id, $a_notification)
 Update notification status. More...
 
 checkLastAdmin ($a_usr_ids)
 Check if user for deletion are last admins. More...
 

Static Public Member Functions

static _getInstanceByObjId ($a_obj_id, $a_usr_id)
 Get singleton instance. More...
 

Static Protected Attributes

static $instances = array()
 

Additional Inherited Members

- Protected Member Functions inherited from ilParticipant
 __construct ($a_obj_id, $a_usr_id)
 Singleton Constructor. More...
 
 readParticipant ()
 Read participant. More...
 
 readParticipantStatus ()
 Read participant status ilDB $ilDB. More...
 
- Protected Attributes inherited from ilParticipant
 $type = ''
 

Detailed Description

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 35 of file class.ilCourseParticipant.php.

Constructor & Destructor Documentation

◆ __construct()

ilCourseParticipant::__construct (   $a_obj_id,
  $a_usr_id 
)

Singleton constructor.

protected

Parameters
intobj_id of container

Definition at line 45 of file class.ilCourseParticipant.php.

46  {
47  $this->type = 'crs';
48 
49  $this->NOTIFY_DISMISS_SUBSCRIBER = 1;
50  $this->NOTIFY_ACCEPT_SUBSCRIBER = 2;
51  $this->NOTIFY_DISMISS_MEMBER = 3;
52  $this->NOTIFY_BLOCK_MEMBER = 4;
53  $this->NOTIFY_UNBLOCK_MEMBER = 5;
54  $this->NOTIFY_ACCEPT_USER = 6;
55  $this->NOTIFY_ADMINS = 7;
56  $this->NOTIFY_STATUS_CHANGED = 8;
57  $this->NOTIFY_SUBSCRIPTION_REQUEST = 9;
58 
59  $this->NOTIFY_REGISTERED = 10;
60  $this->NOTIFY_UNSUBSCRIBE = 11;
61  $this->NOTIFY_WAITING_LIST = 12;
62 
63  parent::__construct($a_obj_id,$a_usr_id);
64  }

Member Function Documentation

◆ _getInstanceByObjId()

static ilCourseParticipant::_getInstanceByObjId (   $a_obj_id,
  $a_usr_id 
)
static

Get singleton instance.

public

Parameters
intobj_id
Returns
ilCourseParticipant

Definition at line 75 of file class.ilCourseParticipant.php.

Referenced by ilObjCourseAccess\_checkAccess(), ilObjCourseGUI\deleteMembersObject(), ilObjCourseGUI\executeCommand(), ilObjCourseListGUI\getProperties(), ilObjCourse\initCourseMemberObject(), ilObjCourseAccess\lookupRegistrationInfo(), and ilObjCourseGUI\membersObject().

76  {
77  if(self::$instances[$a_obj_id][$a_usr_id])
78  {
79  return self::$instances[$a_obj_id][$a_usr_id];
80  }
81  return self::$instances[$a_obj_id][$a_usr_id] = new ilCourseParticipant($a_obj_id,$a_usr_id);
82  }
+ Here is the caller graph for this function:

Field Documentation

◆ $instances

ilCourseParticipant::$instances = array()
staticprotected

Definition at line 37 of file class.ilCourseParticipant.php.


The documentation for this class was generated from the following file: