ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSurveyLP Class Reference

Survey to lp connector. More...

+ Inheritance diagram for ilSurveyLP:
+ Collaboration diagram for ilSurveyLP:

Public Member Functions

 getDefaultMode ()
 
 getValidModes ()
 
 isAnonymized ()
 
- 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 getSupportedObjectTypes ()
 
static isSupportedObjectType ($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...
 

Static Protected Member Functions

static isLPMember (array &$a_res, $a_usr_id, $a_obj_ids)
 
- 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)
 

Additional Inherited Members

- 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
 $tree
 
 $db
 
 $obj_id
 
 $collection_instance
 
 $mode
 
- Static Protected Attributes inherited from ilObjectLP
static $type_defaults
 

Detailed Description

Survey to lp connector.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 10 of file class.ilSurveyLP.php.

Member Function Documentation

◆ getDefaultMode()

ilSurveyLP::getDefaultMode ( )

Definition at line 20 of file class.ilSurveyLP.php.

References ilLPObjSettings\LP_MODE_DEACTIVATED.

21  {
22  return ilLPObjSettings::LP_MODE_DEACTIVATED; // :TODO:
23  }

◆ getDefaultModes()

static ilSurveyLP::getDefaultModes (   $a_lp_active)
static

◆ getValidModes()

ilSurveyLP::getValidModes ( )

◆ isAnonymized()

ilSurveyLP::isAnonymized ( )

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

References ilObjSurveyAccess\_lookupAnonymize().

34  {
35  return (bool) ilObjSurveyAccess::_lookupAnonymize($this->obj_id);
36  }
static _lookupAnonymize($a_obj_id)
+ Here is the call graph for this function:

◆ isLPMember()

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

Definition at line 38 of file class.ilSurveyLP.php.

References $DIC, and $ilDB.

39  {
40  global $DIC;
41 
42  $ilDB = $DIC->database();
43 
44  // if active id
45  $set = $ilDB->query("SELECT ss.obj_fi" .
46  " FROM svy_finished sf" .
47  " JOIN svy_svy ss ON (ss.survey_id = sf.survey_fi)" .
48  " WHERE " . $ilDB->in("ss.obj_fi", $a_obj_ids, "", "integer") .
49  " AND sf.user_fi = " . $ilDB->quote($a_usr_id, "integer"));
50  while ($row = $ilDB->fetchAssoc($set)) {
51  $a_res[$row["obj_fi"]] = true;
52  }
53 
54  return true;
55  }
global $DIC
Definition: goto.php:24
global $ilDB

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