ILIAS  release_8 Revision v8.23
ilCourseReferenceLP Class Reference

Class ilCourseReferenceLP. More...

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

Public Member Functions

 getMembers (bool $a_search=true)
 
 getDefaultMode ()
 
 getValidModes ()
 
- Public Member Functions inherited from ilObjectLP
 resetCaches ()
 
 isAnonymized ()
 
 getDefaultMode ()
 
 getValidModes ()
 
 getCurrentMode ()
 
 isActive ()
 
 getModeText (int $mode)
 
 getModeInfoText (int $mode)
 
 getSettingsInfo ()
 
 getCollectionInstance ()
 
 getMembers (bool $search=true)
 
 resetLPDataForCompleteObject (bool $recursive=true)
 
 resetLPDataForUserIds (array $user_ids, bool $recursive=true)
 
 handleToTrash ()
 
 handleDelete ()
 
 getMailTemplateId ()
 
 hasIndividualModeOptions ()
 
 initInvidualModeOptions (ilRadioGroupInputGUI $modeRadio)
 
 shouldFetchIndividualModeFromFormSubmission ()
 
 fetchIndividualModeFromFormSubmission (ilPropertyFormGUI $form)
 
 appendModeConfiguration (int $mode, ilRadioOption $modeElement)
 
 saveModeConfiguration (ilPropertyFormGUI $form, bool &$modeChanged)
 

Static Public Member Functions

static getDefaultModes (bool $a_lp_active)
 
- Static Public Member Functions inherited from ilObjectLP
static getInstance (int $obj_id)
 
static getTypeClass (string $type)
 
static getSupportedObjectTypes ()
 
static isSupportedObjectType (string $type)
 
static handleMove (int $source_ref_id)
 
static getLPMemberships (int $usr_id, array $obj_ids, ?int $parent_ref_id=null, bool $mapped_ref_ids=false)
 Get all objects where given user is member (from LP POV) More...
 
static supportsSpentSeconds (string $obj_type)
 
static supportsMark (string $obj_type)
 
static supportsMatrixView (string $obj_type)
 
static getDefaultModes (bool $lp_active)
 Get available type-specific default modes (no administration needed) More...
 
static saveTypeDefaults (array $data)
 
static getTypeDefault (string $type)
 

Protected Member Functions

 __construct ($a_obj_id)
 
- Protected Member Functions inherited from ilObjectLP
 __construct (int $obj_id)
 
 resetCustomLPDataForUserIds (array $user_ids, bool $recursive=true)
 
 gatherLPUsers ()
 
 updateParentCollections ()
 

Private Attributes

 $logger = null
 

Additional Inherited Members

- Static Protected Member Functions inherited from ilObjectLP
static isLPMember (array &$res, int $usr_id, array $obj_ids)
 Find (lp-relevant) members for given object ids. More...
 
static findMembershipsByPath (array &$res, int $usr_id, int $parent_ref_id, array $obj_ids, bool $mapped_ref_ids=false)
 Find (lp-relevant) memberships by path. More...
 
static getTypeDefaultFromDB (string $type)
 
- Protected Attributes inherited from ilObjectLP
ilTree $tree
 
ilDBInterface $db
 
ilObjectDefinition $objectDefinition
 
int $obj_id
 
ilLPCollection $collection_instance = null
 
int $mode = null
 
- Static Protected Attributes inherited from ilObjectLP
static array $type_defaults = null
 

Detailed Description

Class ilCourseReferenceLP.

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

Constructor & Destructor Documentation

◆ __construct()

ilCourseReferenceLP::__construct (   $a_obj_id)
protected

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

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

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

Member Function Documentation

◆ getDefaultMode()

ilCourseReferenceLP::getDefaultMode ( )

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

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

◆ getDefaultModes()

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

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

References ilLPObjSettings\LP_MODE_COURSE_REFERENCE, and ilLPObjSettings\LP_MODE_DEACTIVATED.

55  : array
56  {
57  return [
60  ];
61  }

◆ getMembers()

ilCourseReferenceLP::getMembers ( bool  $a_search = true)
Parameters
bool$a_search
Returns
array

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

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

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

◆ getValidModes()

ilCourseReferenceLP::getValidModes ( )

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

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

Field Documentation

◆ $logger

ilCourseReferenceLP::$logger = null
private

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


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