ILIAS  release_7 Revision v7.30-3-g800a261c036
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)
 Get available type-specific default modes (no administration needed) More...
 
- 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)
 Find (lp-relevant) members for given object ids. More...
 
- 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 ( )

Reimplemented from ilObjectLP.

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

21 {
23 }

References ilLPObjSettings\LP_MODE_DEACTIVATED.

◆ getDefaultModes()

static ilSurveyLP::getDefaultModes (   $a_lp_active)
static

Get available type-specific default modes (no administration needed)

Parameters
bool$a_lp_active
Returns
array

Reimplemented from ilObjectLP.

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

References ilLPObjSettings\LP_MODE_DEACTIVATED, and ilLPObjSettings\LP_MODE_SURVEY_FINISHED.

◆ getValidModes()

ilSurveyLP::getValidModes ( )

◆ isAnonymized()

ilSurveyLP::isAnonymized ( )

Reimplemented from ilObjectLP.

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

34 {
35 return (bool) ilObjSurveyAccess::_lookupAnonymize($this->obj_id);
36 }
static _lookupAnonymize($a_obj_id)

References ilObjSurveyAccess\_lookupAnonymize().

+ Here is the call graph for this function:

◆ isLPMember()

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

Find (lp-relevant) members for given object ids.

Parameters
array$a_res
int$a_usr_id
array$a_obj_ids

Reimplemented from ilObjectLP.

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

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

References $DIC, and $ilDB.


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