ILIAS  Release_5_0_x_branch Revision 61816
 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 ()
 getNumberOfMembers ()
 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.

Data Fields

const COMPONENT_NAME = 'Modules/Course'

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.
 getComponent ()
 Get component name Used for event handling.
 readParticipant ()
 Read participant.
 readParticipantStatus ()
 Read participant status ilDB $ilDB.
- 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

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.

{
$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(self::COMPONENT_NAME,$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
Returns
ilCourseParticipant

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

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

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

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: