ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilCourseReferenceLP Class Reference

Class ilCourseReferenceLP. More...

+ Inheritance diagram for ilCourseReferenceLP:
+ Collaboration diagram for ilCourseReferenceLP:

Public Member Functions

 getMembers ($a_search=true)
 
 getDefaultMode ()
 
 getValidModes ()
 
- Public Member Functions inherited from ilObjectLP
 resetCaches ()
 
 isAnonymized ()
 
 getDefaultMode ()
 
 getValidModes ()
 
 getCurrentMode ()
 
 isActive ()
 
 getModeText ($a_mode)
 
 getModeInfoText ($a_mode)
 
 getSettingsInfo ()
 
 getCollectionInstance ()
 
 getMembers ($a_search=true)
 
 resetLPDataForCompleteObject ($a_recursive=true)
 
 resetLPDataForUserIds (array $a_user_ids, $a_recursive=true)
 
 handleToTrash ()
 
 handleDelete ()
 
 getMailTemplateId ()
 

Static Public Member Functions

static getDefaultModes ($a_lp_active)
 
- Static Public Member Functions inherited from ilObjectLP
static getInstance ($a_obj_id)
 
static getTypeClass ($a_type)
 
static isSupportedObjectType ($a_type)
 
static handleMove ($a_source_ref_id)
 
static getLPMemberships ($a_usr_id, array $a_obj_ids, $a_parent_ref_id=null, $a_mapped_ref_ids=false)
 Get all objects where given user is member (from LP POV) More...
 
static supportsSpentSeconds ($a_obj_type)
 
static supportsMark ($a_obj_type)
 
static supportsMatrixView ($a_obj_type)
 
static getDefaultModes ($a_lp_active)
 Get available type-specific default modes (no administration needed) More...
 
static saveTypeDefaults (array $a_data)
 
static getTypeDefault ($a_type)
 Get current type default. More...
 

Protected Member Functions

 __construct ($a_obj_id)
 
- Protected Member Functions inherited from ilObjectLP
 __construct ($a_obj_id)
 
 resetCustomLPDataForUserIds (array $a_user_ids, $a_recursive=true)
 
 gatherLPUsers ()
 
 updateParentCollections ()
 

Private Attributes

 $logger = null
 

Additional Inherited Members

- Static Protected Member Functions inherited from ilObjectLP
static isLPMember (array &$a_res, $a_usr_id, $a_obj_ids)
 Find (lp-relevant) members for given object ids. More...
 
static findMembershipsByPath (array &$a_res, $a_usr_id, $a_parent_ref_id, array $a_obj_ids, $a_mapped_ref_ids=false)
 Find (lp-relevant) memberships by path. More...
 
static getTypeDefaultFromDB ($a_type)
 
- Protected Attributes inherited from ilObjectLP
 $tree
 
 $db
 
 $obj_id
 
 $collection_instance
 
 $mode
 
- Static Protected Attributes inherited from ilObjectLP
static $type_defaults
 

Detailed Description

Class ilCourseReferenceLP.

Definition at line 8 of file class.ilCourseReferenceLP.php.

Constructor & Destructor Documentation

◆ __construct()

ilCourseReferenceLP::__construct (   $a_obj_id)
protected

Definition at line 15 of file class.ilCourseReferenceLP.php.

References $DIC, and ILIAS\GlobalScreen\Provider\__construct().

16  {
17  global $DIC;
18 
19  parent::__construct($a_obj_id);
20 
21  $this->logger = $DIC->logger()->crsr();
22  }
__construct(Container $dic, ilPlugin $plugin)
$DIC
Definition: xapitoken.php:46
+ Here is the call graph for this function:

Member Function Documentation

◆ getDefaultMode()

ilCourseReferenceLP::getDefaultMode ( )

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

46  {
47  return \ilLPObjSettings::LP_MODE_DEACTIVATED;
48  }

◆ getDefaultModes()

static ilCourseReferenceLP::getDefaultModes (   $a_lp_active)
static
Parameters
bool$a_lp_active
Returns
array

Definition at line 54 of file class.ilCourseReferenceLP.php.

References ilLPObjSettings\LP_MODE_COURSE_REFERENCE, and ilLPObjSettings\LP_MODE_DEACTIVATED.

◆ getMembers()

ilCourseReferenceLP::getMembers (   $a_search = true)
Parameters
bool$a_search
Returns
int[]

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

References ilContainerReference\_lookupTargetRefId(), and ilParticipants\getInstance().

29  {
30  if (!$a_search) {
31  return [];
32  }
33  $target_ref_id = \ilObjCourseReference::_lookupTargetRefId($this->obj_id);
34  if (!$target_ref_id) {
35  return [];
36  }
37  $participants = \ilParticipants::getInstance($target_ref_id);
38  return $participants->getMembers();
39  }
static getInstance($a_ref_id)
Get instance by ref_id.
static _lookupTargetRefId($a_obj_id)
Lookup target ref_id.
+ Here is the call graph for this function:

◆ getValidModes()

ilCourseReferenceLP::getValidModes ( )

Definition at line 65 of file class.ilCourseReferenceLP.php.

66  {
67  return self::getDefaultModes(true);
68  }

Field Documentation

◆ $logger

ilCourseReferenceLP::$logger = null
private

Definition at line 13 of file class.ilCourseReferenceLP.php.


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