ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilCourseParticipant Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilCourseParticipant:
+ Collaboration diagram for ilCourseParticipant:

Static Public Member Functions

static _getInstanceByObjId (int $a_obj_id, int $a_usr_id)
 
- Static Public Member Functions inherited from ilParticipant
static updateMemberRoles (int $a_obj_id, int $a_usr_id, int $a_role_id, int $a_status)
 
static getMembershipRoleType (int $a_role_id)
 
static lookupStatusByMembershipRoleType (int $a_obj_id, int $a_usr_id, int $a_membership_role_type)
 

Protected Member Functions

 __construct (int $a_obj_id, int $a_usr_id)
 
- Protected Member Functions inherited from ilParticipant
 __construct (string $a_component_name, int $a_obj_id, int $a_usr_id)
 
 getComponent ()
 Get component name Used for event handling. More...
 
 readParticipant ()
 
 readParticipantStatus ()
 

Protected Attributes

const COMPONENT_NAME = 'Modules/Course'
 
- Protected Attributes inherited from ilParticipant
const MEMBERSHIP_ADMIN = 1
 
const MEMBERSHIP_TUTOR = 2
 
const MEMBERSHIP_MEMBER = 3
 
string $type = ''
 
ilRecommendedContentManager $recommended_content_manager
 
ilDBInterface $db
 
ilRbacReview $rbacReview
 
ilRbacAdmin $rbacAdmin
 
ilObjectDataCache $objectDataCache
 
ilAppEventHandler $eventHandler
 

Static Protected Attributes

static array $instances = []
 

Additional Inherited Members

- Public Member Functions inherited from ilParticipant
 getUserId ()
 
 isBlocked ()
 
 isContact ()
 Check if user is contact for current object. More...
 
 isAssigned ()
 
 isMember ()
 
 isAdmin ()
 
 isTutor ()
 
 isParticipant ()
 
 getNumberOfMembers ()
 
 add (int $a_usr_id, int $a_role)
 
 delete (int $a_usr_id)
 
 deleteSubscriber (int $a_usr_id)
 
 addRecommendation ($a_usr_id)
 
 updateContact (int $a_usr_id, bool $a_contact)
 
 updateNotification (int $a_usr_id, bool $a_notification)
 
 checkLastAdmin (array $a_usr_ids)
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

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

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

Constructor & Destructor Documentation

◆ __construct()

ilCourseParticipant::__construct ( int  $a_obj_id,
int  $a_usr_id 
)
protected
Todo:
get rid of these pseudo constants

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

References ILIAS\GlobalScreen\Provider\__construct().

34  {
35  $this->type = 'crs';
36 
37  parent::__construct(self::COMPONENT_NAME, $a_obj_id, $a_usr_id);
38  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ _getInstanceByObjId()

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

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

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

41  {
42  if (isset(self::$instances[$a_obj_id][$a_usr_id]) && self::$instances[$a_obj_id][$a_usr_id]) {
43  return self::$instances[$a_obj_id][$a_usr_id];
44  }
45  return self::$instances[$a_obj_id][$a_usr_id] = new ilCourseParticipant($a_obj_id, $a_usr_id);
46  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

Field Documentation

◆ $instances

array ilCourseParticipant::$instances = []
staticprotected

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

◆ COMPONENT_NAME

const ilCourseParticipant::COMPONENT_NAME = 'Modules/Course'
protected

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


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