48 $this->user_id = $a_user_id;
49 $this->obj_id = $a_obj_id;
65 $query =
"DELETE FROM member_export_settings WHERE user_id = ".$ilDB->quote($a_usr_id);
77 public function set($a_data)
79 $this->settings = $a_data;
91 if(array_key_exists($a_option,(array) $this->settings) and $this->settings[$a_option])
107 include_once(
'Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
108 include_once(
'Services/PrivacySecurity/classes/class.ilExportFieldsInfo.php');
109 include_once(
'Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php');
110 include_once(
'Services/User/classes/class.ilUserDefinedFields.php');
119 $fields[] =
'agreement';
122 foreach($field_info->getExportableFields() as $field)
131 foreach($udf->getCourseExportableFields() as $field_id => $udf_data)
133 $fields[] =
'udf_'.$field_id;
139 if($this->
enabled(
'cdf_'.$field_obj->getId()))
141 $fields[] =
'cdf_'.$field_obj->getId();
144 return $fields ? $fields : array();
157 $query =
"DELETE FROM member_usr_settings WHERE user_id = ".$this->db->quote($this->user_id ,
'integer');
160 $query =
"INSERT INTO member_usr_settings (user_id,settings) ".
162 $this->db->quote($this->user_id ,
'integer').
", ".
163 $ilDB->quote(serialize($this->settings) ,
'text').
" ".
178 $query =
"SELECT * FROM member_usr_settings WHERE user_id = ".$this->db->quote($this->user_id ,
'integer');
181 $this->settings = array();
184 $this->settings = unserialize(
$row->settings);