ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilCourseReferenceLP 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 ilCourseReferenceLP:
+ Collaboration diagram for ilCourseReferenceLP:

Public Member Functions

 getMembers (bool $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 ()
 Post vars for input groups is taken from array keys. More...
 
 shouldFetchIndividualModeFromFormSubmission ()
 
 fetchIndividualModeFromFormSubmission (string $selected_group, array $group_data)
 
 appendModeConfiguration (int $mode)
 
 saveModeConfiguration (string $selected_group, array $group_data, bool &$modeChanged)
 

Static Public Member Functions

static getDefaultModes (bool $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

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 Class ilCourseReferenceLP

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

Constructor & Destructor Documentation

◆ __construct()

ilCourseReferenceLP::__construct (   $a_obj_id)
protected

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

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

30  {
31  global $DIC;
32 
33  parent::__construct($a_obj_id);
34 
35  $this->logger = $DIC->logger()->crsr();
36  }
global $DIC
Definition: shib_login.php:22
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getDefaultMode()

ilCourseReferenceLP::getDefaultMode ( )

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

59  : int
60  {
61  return \ilLPObjSettings::LP_MODE_DEACTIVATED;
62  }

◆ getDefaultModes()

static ilCourseReferenceLP::getDefaultModes ( bool  $lp_active)
static

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

References ilLPObjSettings\LP_MODE_DEACTIVATED.

64  : array
65  {
67  }

◆ getMembers()

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

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

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

42  : array
43  {
44  if (!$search) {
45  return [];
46  }
47  $target_ref_id = \ilObjCourseReference::_lookupTargetRefId($this->obj_id);
48  if (!$target_ref_id) {
49  return [];
50  }
51  $participants = \ilParticipants::getInstance($target_ref_id);
52  return $participants->getMembers();
53  }
static getInstance(int $a_ref_id)
static _lookupTargetRefId(int $a_obj_id)
+ Here is the call graph for this function:

◆ getValidModes()

ilCourseReferenceLP::getValidModes ( )

Field Documentation

◆ $logger

ilCourseReferenceLP::$logger = null
private

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


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