ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilCourseParticipant Class Reference
+ Inheritance diagram for ilCourseParticipant:
+ Collaboration diagram for ilCourseParticipant:

Public Member Functions

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

Static Public Member Functions

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

Static Protected Attributes

static $instances = array()

Additional Inherited Members

- Protected Member Functions inherited from ilParticipant
 readParticipant ()
 Read participant.
 readParticipantStatus ()
 Read participant status ilDB $ilDB.

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

ilCourseParticipant::__construct (   $a_obj_id,
  $a_usr_id 
)

Singleton constructor.

protected

Parameters
intobj_id of container

Reimplemented from ilParticipant.

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

{
$this->type = 'crs';
$this->NOTIFY_DISMISS_SUBSCRIBER = 1;
$this->NOTIFY_ACCEPT_SUBSCRIBER = 2;
$this->NOTIFY_DISMISS_MEMBER = 3;
$this->NOTIFY_BLOCK_MEMBER = 4;
$this->NOTIFY_UNBLOCK_MEMBER = 5;
$this->NOTIFY_ACCEPT_USER = 6;
$this->NOTIFY_ADMINS = 7;
$this->NOTIFY_STATUS_CHANGED = 8;
$this->NOTIFY_SUBSCRIPTION_REQUEST = 9;
$this->NOTIFY_REGISTERED = 10;
$this->NOTIFY_UNSUBSCRIBE = 11;
$this->NOTIFY_WAITING_LIST = 12;
parent::__construct($a_obj_id,$a_usr_id);
}

Member Function Documentation

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

Get singleton instance.

public

Parameters
intobj_id

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

Referenced by ilObjCourseAccess\_checkAccess(), ilFeedbackGUI\_isRequiredFeedbackOnLogin(), ilFeedback\canVote(), ilObjCourseGUI\deleteMembersObject(), ilObjCourseListGUI\getProperties(), and ilObjCourse\initCourseMemberObject().

{
if(self::$instances[$a_obj_id][$a_usr_id])
{
return self::$instances[$a_obj_id][$a_usr_id];
}
return self::$instances[$a_obj_id][$a_usr_id] = new ilCourseParticipant($a_obj_id,$a_usr_id);
}

+ Here is the caller graph for this function:

Field Documentation

ilCourseParticipant::$instances = array()
staticprotected

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


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