ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 ()
 
 isContact ()
 Check if user is contact for current object. More...
 
 isAssigned ()
 
 isMember ()
 
 isAdmin ()
 
 isTutor ()
 
 isParticipant ()
 
 getNumberOfMembers ()
 
 add ($a_usr_id, $a_role)
 Add user to course/group. 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...
 
 updateContact ($a_usr_id, $a_contact)
 ilDB $ilDB 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 Public Member Functions inherited from ilParticipant
static updateMemberRoles ($a_obj_id, $a_usr_id, $a_role_id, $a_status)
 Update member roles ilDB $ilDB. More...
 
static getMembershipRoleType ($a_role_id)
 
static lookupStatusByMembershipRoleType ($a_obj_id, $a_usr_id, $a_membership_role_type)
 lookup assignment status ilDB $ilDB More...
 

Data Fields

const COMPONENT_NAME = 'Modules/Course'
 
- Data Fields inherited from ilParticipant
const MEMBERSHIP_ADMIN = 1
 
const MEMBERSHIP_TUTOR = 2
 
const MEMBERSHIP_MEMBER = 3
 

Static Protected Attributes

static $instances = array()
 

Additional Inherited Members

- Protected Member Functions inherited from ilParticipant
 __construct ($a_component_name, $a_obj_id, $a_usr_id)
 Singleton Constructor. More...
 
 getComponent ()
 Get component name Used for event handling. 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 47 of file class.ilCourseParticipant.php.

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

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 77 of file class.ilCourseParticipant.php.

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

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

Field Documentation

◆ $instances

ilCourseParticipant::$instances = array()
staticprotected

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

◆ COMPONENT_NAME

const ilCourseParticipant::COMPONENT_NAME = 'Modules/Course'

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


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