34 require_once
"./classes/class.ilObject.php";
48 include_once
"./Services/Administration/classes/class.ilSetting.php";
51 $this->
ilObject($a_id,$a_call_by_reference);
62 if (!parent::update())
82 if (!parent::delete())
115 return $roles ? $roles : array();
131 function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
171 if ($a_node_id==
$_GET[
"ref_id"])
173 $parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
174 $parent_type = $parent_obj->getType();
175 if($parent_type == $this->
getType())
177 $a_node_id = (int) $tree->getParentId($a_node_id);
181 parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);
186 $surveySetting =
new ilSetting(
"survey");
187 $allowedUsers = strlen($surveySetting->get(
"multiple_survey_users")) ? explode(
",",$surveySetting->get(
"multiple_survey_users")) : array();
188 $arr = array_unique(array_merge($allowedUsers, $arr_user_id));
189 $surveySetting->set(
"multiple_survey_users", implode(
",", $arr));
194 $surveySetting =
new ilSetting(
"survey");
195 $allowedUsers = strlen($surveySetting->get(
"multiple_survey_users")) ? explode(
",",$surveySetting->get(
"multiple_survey_users")) : array();
196 $arr = array_diff($allowedUsers, $arr_user_id);
197 $surveySetting->set(
"multiple_survey_users", implode(
",", array_values($arr)));
202 $surveySetting =
new ilSetting(
"survey");
203 return strlen($surveySetting->get(
"multiple_survey_users")) ? explode(
",",$surveySetting->get(
"multiple_survey_users")) : array();