ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilObjSurveyAdministrationGUI Class Reference

Class ilObjSurveyAdministrationGUI. More...

+ Inheritance diagram for ilObjSurveyAdministrationGUI:
+ Collaboration diagram for ilObjSurveyAdministrationGUI:

Public Member Functions

 ilObjSurveyAdministrationGUI ($a_data, $a_id, $a_call_by_reference)
 
executeCommand ()
 execute command More...
 
 saveObject ()
 save object @access public More...
 
 searchObject ()
 
 addSpecialUserObject ()
 Add one or more users as special users. More...
 
 removeSpecialUserObject ()
 
 specialusersObject ()
 Add/remove users who may run a survey multiple times. More...
 
 settingsObject ()
 display survey settings form More...
 
 saveSettingsObject ()
 Save survey settings. More...
 
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder More...
 
 getTabs (&$tabs_gui)
 get tabs @access public More...
 
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor @access public. More...
 
executeCommand ()
 execute command More...
 
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More...
 
 getCreationMode ()
 get creation mode More...
 
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ($in_rep=false)
 cancel action and go back to previous page @access public More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 save object More...
 
 editObject ()
 edit object More...
 
 addExternalEditFormCustom (ilPropertyFormGUI $a_form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g. More...
 
 isVisible ($a_ref_id, $a_type)
 
 viewObject ()
 list childs of current object More...
 
 deleteObject ($a_error=false)
 Display deletion confirmation screen. More...
 
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI. More...
 

Data Fields

 $conditions
 Constructor @access public. More...
 
- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 
 $ilias
 
 $objDefinition
 
 $tpl
 
 $tree
 
 $lng
 
 $data
 
 $object
 
 $ref_id
 
 $obj_id
 
 $maxcount
 
 $formaction
 
 $return_location
 
 $target_frame
 
 $tab_target_script
 
 $actions
 
 $sub_objects
 
 $omit_locator = false
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 

Private Member Functions

 getSettingsTemplateConfig ()
 Get settings template configuration object. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root. More...
 
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 
 prepareOutput ()
 prepare output More...
 
 setTitleAndDescription ()
 called by prepare output More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction ($a_list_gui)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 showMountWebfolderIcon ()
 
 setTabs ()
 set admin tabs @access public More...
 
 setAdminTabs ()
 set admin tabs @access public More...
 
 setLocator ()
 set Locator More...
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator ($a_omit=true)
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms ($a_new_type)
 Init creation froms. More...
 
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm ($a_new_type)
 Init object creation form. More...
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types. More...
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position. More...
 
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 Init object edit form. More...
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 Get values for edit form. More...
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $a_form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm ($a_new_type)
 Init object import form. More...
 
 importFileObject ($parent_id=null, $a_catch_errors=true)
 Import. More...
 
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook. More...
 
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command More...
 
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command More...
 
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command More...
 
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu) More...
 
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl. More...
 
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste More...
 
 getTabs (&$tabs_gui)
 get tabs abstract method. More...
 
 __showButton ($a_cmd, $a_text, $a_target='')
 
 hitsperpageObject ()
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table More...
 
 redirectToRefId ($a_ref_id, $a_cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value More...
 
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 setColumnSettings ($column_gui)
 May be overwritten in subclasses. More...
 
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission. More...
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting. More...
 
- Protected Attributes inherited from ilObjectGUI
 $tmp_import_dir
 

Detailed Description

Member Function Documentation

◆ addSpecialUserObject()

ilObjSurveyAdministrationGUI::addSpecialUserObject ( )

Add one or more users as special users.

Definition at line 140 of file class.ilObjSurveyAdministrationGUI.php.

141 {
142 // #7927: special users are deprecated
143 exit();
144
145 /*
146 if ((array_key_exists("user_id", $_POST)) && (count($_POST["user_id"])))
147 {
148 $this->object->addSpecialUsers($_POST["user_id"]);
149 unset($_SESSION["survey_adm_found_users"]);
150 }
151 else
152 {
153 ilUtil::sendInfo($this->lng->txt("adm_search_select_user"), TRUE);
154 }
155 $this->ctrl->redirect($this, "specialusers");
156 */
157 }
exit
Definition: login.php:54

References exit.

◆ executeCommand()

& ilObjSurveyAdministrationGUI::executeCommand ( )

execute command

Reimplemented from ilObjectGUI.

Definition at line 55 of file class.ilObjSurveyAdministrationGUI.php.

56 {
57 global $ilTabs;
58
59 $next_class = $this->ctrl->getNextClass($this);
60 $cmd = $this->ctrl->getCmd();
61 $this->prepareOutput();
62
63 switch($next_class)
64 {
65 case 'ilpermissiongui':
66 $ilTabs->activateTab("perm_settings");
67 include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
68 $perm_gui =& new ilPermissionGUI($this);
69 $ret =& $this->ctrl->forwardCommand($perm_gui);
70 break;
71
72 case 'ilsettingstemplategui':
73 $ilTabs->activateTab("templates");
74 include_once("./Services/Administration/classes/class.ilSettingsTemplateGUI.php");
75 $set_tpl_gui = new ilSettingsTemplateGUI($this->getSettingsTemplateConfig());
76 $this->ctrl->forwardCommand($set_tpl_gui);
77 break;
78
79 default:
80 if($cmd == "" || $cmd == "view")
81 {
82 $cmd = "settings";
83 }
84 $cmd .= "Object";
85 $this->$cmd();
86
87 break;
88 }
89 return true;
90 }
getSettingsTemplateConfig()
Get settings template configuration object.
prepareOutput()
prepare output
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
$cmd
Definition: sahs_server.php:35

References $cmd, $ret, getSettingsTemplateConfig(), and ilObjectGUI\prepareOutput().

+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjSurveyAdministrationGUI::getAdminTabs ( $tabs_gui)

administration tabs show only permissions and trash folder

Reimplemented from ilObjectGUI.

Definition at line 342 of file class.ilObjSurveyAdministrationGUI.php.

343 {
344 $this->getTabs($tabs_gui);
345 }
getTabs(&$tabs_gui)
get tabs @access public

References getTabs().

+ Here is the call graph for this function:

◆ getSettingsTemplateConfig()

ilObjSurveyAdministrationGUI::getSettingsTemplateConfig ( )
private

Get settings template configuration object.

Returns
object settings template configuration object

Definition at line 389 of file class.ilObjSurveyAdministrationGUI.php.

390 {
391 global $lng;
392
393 $lng->loadLanguageModule("survey");
394 include_once "Modules/Survey/classes/class.ilObjSurvey.php";
395
396 include_once("./Services/Administration/classes/class.ilSettingsTemplateConfig.php");
397 $config = new ilSettingsTemplateConfig("svy");
398
399 $config->addHidableTab("survey_question_editor", $lng->txt("survey_question_editor_settings_template"));
400 $config->addHidableTab("constraints", $lng->txt("constraints"));
401 $config->addHidableTab("invitation", $lng->txt("invitation"));
402 $config->addHidableTab("meta_data", $lng->txt("meta_data"));
403 $config->addHidableTab("export", $lng->txt("export"));
404
405 $config->addSetting(
406 "use_pool",
408 $lng->txt("survey_question_pool_usage"),
409 true,
410 0,
411 array(1 => $this->lng->txt("survey_question_pool_usage_active"),
412 0 => $this->lng->txt("survey_question_pool_usage_inactive"))
413 );
414
415
416 $config->addSetting(
417 "enabled_start_date",
419 $lng->txt("start_date"),
420 true
421 );
422
423 $config->addSetting(
424 "enabled_end_date",
426 $lng->txt("end_date"),
427 true
428 );
429
430 $config->addSetting(
431 "show_question_titles",
433 $lng->txt("svy_show_questiontitles"),
434 true
435 );
436
437
438 // #17585
439
440 $config->addSetting(
441 "acc_codes",
443 $lng->txt("survey_access_codes"),
444 true
445 );
446
447 $config->addSetting(
448 "evaluation_access",
450 $lng->txt("evaluation_access"),
451 true,
452 0,
453 array(ilObjSurvey::EVALUATION_ACCESS_OFF => $this->lng->txt("evaluation_access_off"),
454 ilObjSurvey::EVALUATION_ACCESS_ALL => $this->lng->txt("evaluation_access_all"),
455 ilObjSurvey::EVALUATION_ACCESS_PARTICIPANTS => $this->lng->txt("evaluation_access_participants"))
456 );
457
458 $config->addSetting(
459 "anonymization_options",
461 $lng->txt("survey_results_anonymization"),
462 true,
463 0,
464 array("statpers" => $this->lng->txt("survey_results_personalized"),
465 "statanon" => $this->lng->txt("survey_results_anonymized"))
466 );
467
468 /*
469 $config->addSetting(
470 "rte_switch",
471 ilSettingsTemplateConfig::SELECT,
472 $lng->txt("set_edit_mode"),
473 true,
474 0,
475 array(0 => $this->lng->txt("rte_editor_disabled"),
476 1 => $this->lng->txt("rte_editor_enabled"))
477 );
478 */
479
480 return $config;
481 }
const EVALUATION_ACCESS_PARTICIPANTS
const EVALUATION_ACCESS_ALL
const EVALUATION_ACCESS_OFF
Settings template config class.

References ilObjectGUI\$lng, ilSettingsTemplateConfig\BOOL, ilObjSurvey\EVALUATION_ACCESS_ALL, ilObjSurvey\EVALUATION_ACCESS_OFF, ilObjSurvey\EVALUATION_ACCESS_PARTICIPANTS, and ilSettingsTemplateConfig\SELECT.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ getTabs()

ilObjSurveyAdministrationGUI::getTabs ( $tabs_gui)

get tabs @access public

Parameters
objecttabs gui object

Reimplemented from ilObjectGUI.

Definition at line 352 of file class.ilObjSurveyAdministrationGUI.php.

353 {
354 global $ilAccess, $lng;
355
356 if ($ilAccess->checkAccess("read",'',$this->object->getRefId()))
357 {
358 $tabs_gui->addTab("settings",
359 $lng->txt("settings"),
360 $this->ctrl->getLinkTarget($this, "settings"));
361
362 // #7927: special users are deprecated
363 /*
364 $tabs_gui->addTab("specialusers",
365 $lng->txt("specialusers"),
366 $this->ctrl->getLinkTarget($this, "specialusers"));
367 */
368
369 if ($ilAccess->checkAccess("write",'',$this->object->getRefId()))
370 {
371 $tabs_gui->addTab("templates",
372 $lng->txt("adm_settings_templates"),
373 $this->ctrl->getLinkTargetByClass("ilsettingstemplategui", ""));
374 }
375 }
376 if ($ilAccess->checkAccess("edit_permission",'',$this->object->getRefId()))
377 {
378 $tabs_gui->addTab("perm_settings",
379 $lng->txt("perm_settings"),
380 $this->ctrl->getLinkTargetByClass('ilpermissiongui', "perm"));
381 }
382 }

References ilObjectGUI\$lng.

Referenced by getAdminTabs().

+ Here is the caller graph for this function:

◆ ilObjSurveyAdministrationGUI()

ilObjSurveyAdministrationGUI::ilObjSurveyAdministrationGUI (   $a_data,
  $a_id,
  $a_call_by_reference 
)

Definition at line 46 of file class.ilObjSurveyAdministrationGUI.php.

47 {
48 global $rbacsystem, $lng;
49
50 $this->type = "svyf";
51 $lng->loadLanguageModule("survey");
52 $this->ilObjectGUI($a_data,$a_id,$a_call_by_reference,false);
53 }
ilObjectGUI($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor @access public.

References ilObjectGUI\$lng, and ilObjectGUI\ilObjectGUI().

+ Here is the call graph for this function:

◆ removeSpecialUserObject()

ilObjSurveyAdministrationGUI::removeSpecialUserObject ( )

Definition at line 159 of file class.ilObjSurveyAdministrationGUI.php.

160 {
161 // #7927: special users are deprecated
162 exit();
163
164 /*
165 if ((array_key_exists("special_user_id", $_POST)) && (count($_POST["special_user_id"])))
166 {
167 $this->object->removeSpecialUsers($_POST["special_user_id"]);
168 unset($_SESSION["adm_removed_users"]);
169 }
170 else
171 {
172 ilUtil::sendInfo($this->lng->txt("adm_remove_select_user"), TRUE);
173 }
174 $this->ctrl->redirect($this, "specialusers");
175 */
176 }

References exit.

◆ saveObject()

ilObjSurveyAdministrationGUI::saveObject ( )

save object @access public

Reimplemented from ilObjectGUI.

Definition at line 97 of file class.ilObjSurveyAdministrationGUI.php.

98 {
99 global $rbacadmin;
100
101 // create and insert forum in objecttree
102 $newObj = parent::saveObject();
103
104 // put here object specific stuff
105
106 // always send a message
107 ilUtil::sendSuccess($this->lng->txt("object_added"),true);
108
109 $this->ctrl->redirect($this);
110 }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.

References ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ saveSettingsObject()

ilObjSurveyAdministrationGUI::saveSettingsObject ( )

Save survey settings.

Definition at line 319 of file class.ilObjSurveyAdministrationGUI.php.

320 {
321 global $ilCtrl, $ilAccess;
322
323 if (!$ilAccess->checkAccess("write", "", $this->object->getRefId())) $ilCtrl->redirect($this, "settings");
324 $surveySetting = new ilSetting("survey");
325 $surveySetting->set("unlimited_invitation", ($_POST["unlimited_invitation"]) ? "1" : "0");
326 $surveySetting->set("use_anonymous_id", ($_POST["use_anonymous_id"]) ? "1" : "0");
327
328 if($_POST["skcust"] == "lng")
329 {
330 $surveySetting->set("skipped_is_custom", false);
331 }
332 else
333 {
334 $surveySetting->set("skipped_is_custom", true);
335 $surveySetting->set("skipped_custom_value", trim($_POST["cust_value"]));
336 }
337
338 ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true);
339 $ilCtrl->redirect($this, "settings");
340 }
ILIAS Setting Class.
$_POST['username']
Definition: cron.php:12
global $ilCtrl
Definition: ilias.php:18

References $_POST, $ilCtrl, and ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ searchObject()

ilObjSurveyAdministrationGUI::searchObject ( )

Definition at line 112 of file class.ilObjSurveyAdministrationGUI.php.

113 {
114 unset($_SESSION["survey_adm_found_users"]);
115 if (strlen($_POST["search"]) < 2)
116 {
117 ilUtil::sendInfo($this->lng->txt("adm_search_string_too_small"), TRUE);
118 }
119 else
120 {
121 include_once "./Services/User/classes/class.ilObjUser.php";
122 $found = ilObjUser::searchUsers($_POST["search"], $active = 1, $a_return_ids_only = false, $filter_settings = FALSE);
123 if (count($found))
124 {
125 $_SESSION["survey_adm_found_users"] = $found;
126 }
127 else
128 {
129 ilUtil::sendInfo($this->lng->txt("adm_no_users_found"), TRUE);
130
131 }
132 }
133 $this->ctrl->redirect($this, "specialusers");
134 }
$_SESSION["AccountId"]
static searchUsers($a_search_str, $active=1, $a_return_ids_only=false, $filter_settings=FALSE)
STATIC METHOD get the user_ids which correspond a search string.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.

References $_POST, $_SESSION, ilObjUser\searchUsers(), and ilUtil\sendInfo().

+ Here is the call graph for this function:

◆ settingsObject()

ilObjSurveyAdministrationGUI::settingsObject ( )

display survey settings form

Default settings tab for Survey settings

@access public

Definition at line 260 of file class.ilObjSurveyAdministrationGUI.php.

261 {
262 global $ilAccess, $rbacreview, $lng, $ilCtrl, $tpl, $ilTabs;
263
264 $ilTabs->activateTab("settings");
265
266 $surveySetting = new ilSetting("survey");
267 $unlimited_invitation = array_key_exists("unlimited_invitation", $_GET) ? $_GET["unlimited_invitation"] : $surveySetting->get("unlimited_invitation");
268 $use_anonymous_id = array_key_exists("use_anonymous_id", $_GET) ? $_GET["use_anonymous_id"] : $surveySetting->get("use_anonymous_id");
269
270 include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
271 $form = new ilPropertyFormGUI();
272 $form->setFormAction($ilCtrl->getFormAction($this));
273 $form->setTitle($lng->txt("survey_defaults"));
274
275 // unlimited invitation
276 $enable = new ilCheckboxInputGUI($lng->txt("survey_unlimited_invitation"), "unlimited_invitation");
277 $enable->setChecked($unlimited_invitation);
278 $enable->setInfo($lng->txt("survey_unlimited_invitation_desc"));
279 $form->addItem($enable);
280
281 // Survey Code
282 $code = new ilCheckboxInputGUI($lng->txt("use_anonymous_id"), "use_anonymous_id");
283 $code->setChecked($use_anonymous_id);
284 $code->setInfo($lng->txt("use_anonymous_id_desc"));
285 $form->addItem($code);
286
287 // Skipped
288 $eval_skipped = new ilRadioGroupInputGUI($lng->txt("svy_eval_skipped_value"), "skcust");
289 $eval_skipped->setRequired(true);
290 $form->addItem($eval_skipped);
291
292 $eval_skipped->setValue($surveySetting->get("skipped_is_custom", false)
293 ? "cust"
294 : "lng");
295
296 $skipped_lng = new ilRadioOption($lng->txt("svy_eval_skipped_value_lng"), "lng");
297 $skipped_lng->setInfo(sprintf($lng->txt("svy_eval_skipped_value_lng_info"), $lng->txt("skipped")));
298 $eval_skipped->addOption($skipped_lng);
299 $skipped_cust = new ilRadioOption($lng->txt("svy_eval_skipped_value_custom"), "cust");
300 $skipped_cust->setInfo($lng->txt("svy_eval_skipped_value_custom_info"));
301 $eval_skipped->addOption($skipped_cust);
302
303 $skipped_cust_value = new ilTextInputGUI($lng->txt("svy_eval_skipped_value_custom_value"), "cust_value");
304 $skipped_cust_value->setSize(15);
305 $skipped_cust_value->setValue($surveySetting->get("skipped_custom_value", ""));
306 $skipped_cust->addSubItem($skipped_cust_value);
307
308 if ($ilAccess->checkAccess("write", "", $this->object->getRefId()))
309 {
310 $form->addCommandButton("saveSettings", $lng->txt("save"));
311 }
312
313 $tpl->setVariable("ADM_CONTENT", $form->getHTML());
314 }
$_GET["client_id"]
This class represents a checkbox property in a property form.
This class represents a property form user interface.
This class represents a property in a property form.
This class represents an option in a radio group.
This class represents a text property in a property form.
$code
Definition: example_050.php:99

References $_GET, $code, $ilCtrl, ilObjectGUI\$lng, and ilObjectGUI\$tpl.

◆ specialusersObject()

ilObjSurveyAdministrationGUI::specialusersObject ( )

Add/remove users who may run a survey multiple times.

@access public

Definition at line 183 of file class.ilObjSurveyAdministrationGUI.php.

184 {
185 global $ilAccess, $ilTabs;
186
187 // #7927: special users are deprecated
188 exit();
189
190 /*
191 $ilTabs->activateTab("specialusers");
192
193 $a_write_access = ($ilAccess->checkAccess("write", "", $this->object->getRefId())) ? true : false;
194 $this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.il_svy_adm_specialusers.html", "Modules/Survey");
195 $found_users = "";
196 if (array_key_exists("survey_adm_found_users", $_SESSION))
197 {
198 if (count($_SESSION["survey_adm_found_users"]))
199 {
200 $data = $_SESSION["survey_adm_found_users"];
201 include_once("./Modules/Survey/classes/tables/class.ilFoundUsersTableGUI.php");
202 $table_gui = new ilFoundUsersTableGUI($this, "specialusers");
203 $table_gui->setPrefix("fu");
204
205 $table_gui->setTitle($this->lng->txt("found_users"));
206 $table_gui->setData($data);
207
208 if ($a_write_access)
209 {
210 $table_gui->addCommandButton("addSpecialUser", $this->lng->txt("add"));
211 $table_gui->setSelectAllCheckbox("user_id");
212 }
213 $found_users = $table_gui->getHTML();
214 }
215 }
216
217 if (strlen($found_users))
218 {
219 $this->tpl->setCurrentBlock("search_results");
220 $this->tpl->setVariable("SEARCH_RESULTS", $found_users);
221 $this->tpl->parseCurrentBlock();
222 }
223 $this->tpl->setCurrentBlock("adm_content");
224 $this->tpl->setVariable("TXT_SEARCH_USER", $this->lng->txt("search_users"));
225 $this->tpl->setVariable("TXT_SEARCH", $this->lng->txt("search"));
226 $this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this, "search"));
227
228 $special_users = $this->object->getSpecialUsers();
229 if (count($special_users))
230 {
231 include_once("./Modules/Survey/classes/tables/class.ilSpecialUsersTableGUI.php");
232 $table_gui = new ilSpecialUsersTableGUI($this, "specialusers", $a_write_access);
233 $table_gui->setPrefix("su");
234
235 $table_gui->setTitle($this->lng->txt("adm_special_users"));
236 $table_gui->setData($special_users);
237
238 if ($a_write_access)
239 {
240 $table_gui->addCommandButton("removeSpecialUser", $this->lng->txt("remove"));
241 $table_gui->setSelectAllCheckbox("special_user_id");
242 }
243 $this->tpl->setVariable("SPECIAL_USERS", $table_gui->getHTML());
244 }
245 else
246 {
247 $this->tpl->setVariable("SPECIAL_USERS", $this->lng->txt("adm_no_special_users"));
248 }
249 $this->tpl->parseCurrentBlock();
250 */
251 }

References exit.

Field Documentation

◆ $conditions

ilObjSurveyAdministrationGUI::$conditions

Constructor @access public.

Definition at line 44 of file class.ilObjSurveyAdministrationGUI.php.


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