ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilSurveyLP Class Reference
+ 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 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)
 
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
 $obj_id
 
 $collection_instance
 
 $mode
 
- Static Protected Attributes inherited from ilObjectLP
static $type_defaults
 

Detailed Description

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

Member Function Documentation

◆ getDefaultMode()

ilSurveyLP::getDefaultMode ( )

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

References ilLPObjSettings\LP_MODE_DEACTIVATED.

24  {
25  return ilLPObjSettings::LP_MODE_DEACTIVATED; // :TODO:
26  }

◆ getDefaultModes()

static ilSurveyLP::getDefaultModes (   $a_lp_active)
static

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

References array, ilLPObjSettings\LP_MODE_DEACTIVATED, and ilLPObjSettings\LP_MODE_SURVEY_FINISHED.

16  {
17  return array(
20  );
21  }
Create styles array
The data for the language used.

◆ getValidModes()

ilSurveyLP::getValidModes ( )

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

References array, ilLPObjSettings\LP_MODE_DEACTIVATED, and ilLPObjSettings\LP_MODE_SURVEY_FINISHED.

29  {
30  return array(
33  );
34  }
Create styles array
The data for the language used.

◆ isAnonymized()

ilSurveyLP::isAnonymized ( )

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

References ilObjSurveyAccess\_lookupAnonymize().

37  {
38  include_once './Modules/Survey/classes/class.ilObjSurveyAccess.php';
39  return (bool)ilObjSurveyAccess::_lookupAnonymize($this->obj_id);
40  }
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 42 of file class.ilSurveyLP.php.

References $ilDB, and $row.

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

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