ILIAS  release_4-4 Revision
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 ()
 
 saveObject ()
 save object 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)
 
 getTabs (&$tabs_gui)
 get tabs public More...
 
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor 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 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...
 
 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 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 public More...
 
 setAdminTabs ()
 set admin tabs 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...
 
 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)
 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...
 

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.

References exit.

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

◆ executeCommand()

& ilObjSurveyAdministrationGUI::executeCommand ( )

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

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

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.
$cmd
Definition: sahs_server.php:35
prepareOutput()
prepare output
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjSurveyAdministrationGUI::getAdminTabs ( $tabs_gui)

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

References getTabs().

343  {
344  $this->getTabs($tabs_gui);
345  }
+ 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 386 of file class.ilObjSurveyAdministrationGUI.php.

References ilObjectGUI\$lng, ilSettingsTemplateConfig\BOOL, and ilSettingsTemplateConfig\SELECT.

Referenced by executeCommand().

387  {
388  global $lng;
389 
390  $lng->loadLanguageModule("survey");
391 
392  include_once("./Services/Administration/classes/class.ilSettingsTemplateConfig.php");
393  $config = new ilSettingsTemplateConfig("svy");
394 
395  $config->addHidableTab("survey_question_editor", $lng->txt("survey_question_editor_settings_template"));
396  $config->addHidableTab("constraints", $lng->txt("constraints"));
397  $config->addHidableTab("invitation", $lng->txt("invitation"));
398  $config->addHidableTab("meta_data", $lng->txt("meta_data"));
399  $config->addHidableTab("export", $lng->txt("export"));
400 
401  $config->addSetting(
402  "use_pool",
404  $lng->txt("survey_question_pool_usage"),
405  true
406  );
407 
408  $config->addSetting(
409  "anonymization_options",
411  $lng->txt("survey_auth_mode"),
412  true,
413  'personalized',
414  array('personalized' => $this->lng->txt("anonymize_personalized"),
415  'anonymize_without_code' => $this->lng->txt("anonymize_without_code"),
416  'anonymize_with_code' => $this->lng->txt("anonymize_with_code"))
417  );
418 
419  $config->addSetting(
420  "rte_switch",
422  $lng->txt("set_edit_mode"),
423  true,
424  0,
425  array(0 => $this->lng->txt("rte_editor_disabled"),
426  1 => $this->lng->txt("rte_editor_enabled"))
427  );
428 
429  $config->addSetting(
430  "enabled_start_date",
432  $lng->txt("start_date"),
433  true
434  );
435 
436  $config->addSetting(
437  "enabled_end_date",
439  $lng->txt("end_date"),
440  true
441  );
442 
443  $config->addSetting(
444  "show_question_titles",
446  $lng->txt("svy_show_questiontitles"),
447  true
448  );
449 
450  return $config;
451  }
Settings template config class.
+ Here is the caller graph for this function:

◆ getTabs()

ilObjSurveyAdministrationGUI::getTabs ( $tabs_gui)

get tabs public

Parameters
objecttabs gui object

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

References ilObjectGUI\$lng.

Referenced by getAdminTabs().

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  $tabs_gui->addTab("templates",
370  $lng->txt("adm_settings_templates"),
371  $this->ctrl->getLinkTargetByClass("ilsettingstemplategui", ""));
372  }
373  if ($ilAccess->checkAccess("edit_permission",'',$this->object->getRefId()))
374  {
375  $tabs_gui->addTab("perm_settings",
376  $lng->txt("perm_settings"),
377  $this->ctrl->getLinkTargetByClass('ilpermissiongui', "perm"));
378  }
379  }
+ 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.

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

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 public.
+ Here is the call graph for this function:

◆ removeSpecialUserObject()

ilObjSurveyAdministrationGUI::removeSpecialUserObject ( )

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

References exit.

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  }
exit
Definition: login.php:54

◆ saveObject()

ilObjSurveyAdministrationGUI::saveObject ( )

save object public

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

References ilUtil\sendSuccess().

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.
+ Here is the call graph for this function:

◆ saveSettingsObject()

ilObjSurveyAdministrationGUI::saveSettingsObject ( )

Save survey settings.

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

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

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  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
ILIAS Setting Class.
$_POST['username']
Definition: cron.php:12
global $ilCtrl
Definition: ilias.php:18
+ Here is the call graph for this function:

◆ searchObject()

ilObjSurveyAdministrationGUI::searchObject ( )

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

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

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  }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']
$_POST['username']
Definition: cron.php:12
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
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.
+ Here is the call graph for this function:

◆ settingsObject()

ilObjSurveyAdministrationGUI::settingsObject ( )

display survey settings form

Default settings tab for Survey settings

public

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

References $_GET, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilCheckboxInputGUI\setChecked(), ilRadioOption\setInfo(), ilFormPropertyGUI\setRequired(), and ilTextInputGUI\setSize().

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  }
This class represents an option in a radio group.
ILIAS Setting Class.
This class represents a property form user interface.
$_GET["client_id"]
This class represents a checkbox property in a property form.
setInfo($a_info)
Set Info.
global $ilCtrl
Definition: ilias.php:18
setChecked($a_checked)
Set Checked.
This class represents a property in a property form.
setSize($a_size)
Set Size.
This class represents a text property in a property form.
setRequired($a_required)
Set Required.
+ Here is the call graph for this function:

◆ specialusersObject()

ilObjSurveyAdministrationGUI::specialusersObject ( )

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

public

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

References exit.

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  }
exit
Definition: login.php:54

Field Documentation

◆ $conditions

ilObjSurveyAdministrationGUI::$conditions

Constructor public.

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


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