ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilExerciseLP Class Reference
+ Inheritance diagram for ilExerciseLP:
+ Collaboration diagram for ilExerciseLP:

Public Member Functions

 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 Protected Member Functions

static isLPMember (array &$a_res, $a_usr_id, array $a_obj_ids)
 
- Static Protected Member Functions inherited from ilObjectLP
static getTypeClass ($a_type)
 
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...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectLP
static getInstance ($a_obj_id)
 
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)
 
- Protected Member Functions inherited from ilObjectLP
 __construct ($a_obj_id)
 
 resetCustomLPDataForUserIds (array $a_user_ids, $a_recursive=true)
 
 gatherLPUsers ()
 
 updateParentCollections ()
 
- Protected Attributes inherited from ilObjectLP
 $obj_id
 
 $collection_instance
 
 $mode
 

Detailed Description

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

Member Function Documentation

◆ getDefaultMode()

ilExerciseLP::getDefaultMode ( )

◆ getValidModes()

ilExerciseLP::getValidModes ( )

◆ isLPMember()

static ilExerciseLP::isLPMember ( array &  $a_res,
  $a_usr_id,
array  $a_obj_ids 
)
staticprotected

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

References $ilDB, and $row.

30  {
31  global $ilDB;
32 
33  $set = $ilDB->query("SELECT obj_id".
34  " FROM exc_members".
35  " WHERE ".$ilDB->in("obj_id", $a_obj_ids, "", "integer").
36  " AND usr_id = ".$ilDB->quote($a_usr_id, "integer"));
37  while($row = $ilDB->fetchAssoc($set))
38  {
39  $a_res[$row["obj_id"]] = true;
40  }
41 
42  return true;
43  }
global $ilDB

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