ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Survey\Mode\AbstractUIModifier Class Reference
+ Inheritance diagram for ILIAS\Survey\Mode\AbstractUIModifier:
+ Collaboration diagram for ILIAS\Survey\Mode\AbstractUIModifier:

Public Member Functions

 __construct (InternalGUIService $gui)
 
 setInternalService (InternalService $internal_service)
 
 getInternalService ()
 
 getSurveySettingsGeneral (\ilObjSurvey $survey)
 
 getSurveySettingsReminderTargets (\ilObjSurvey $survey, InternalGUIService $ui_service)
 
 getSurveySettingsResults (\ilObjSurvey $survey, InternalGUIService $ui_service)
 
 setValuesFromForm (\ilObjSurvey $survey, \ilPropertyFormGUI $form)
 
 setResultsOverviewToolbar (\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id, \ilTemplate $eval_tpl)
 
 setResultsCompetenceToolbar (\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id)
 
 setResultsDetailToolbar (\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id, \ilTemplate $eval_tpl)
 
 addApprSelectionToToolbar (\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id)
 
 getDetailPanels (array $participants, \ILIAS\Survey\Evaluation\EvaluationGUIRequest $request, \SurveyQuestionEvaluation $a_eval)
 

Protected Member Functions

 addExportAndPrintButton (\ilObjSurvey $survey, \ilToolbarGUI $toolbar, bool $details, \ilTemplate $eval_tpl)
 
 buildExportButtonAndModal (\ilTemplate $eval_tpl, string $export_cmd)
 
 getExportModal ()
 
 getPanelTable (array $participants, \ILIAS\Survey\Evaluation\EvaluationGUIRequest $request, \SurveyQuestionEvaluation $a_eval)
 
 getPanelChart (\ILIAS\Survey\Evaluation\EvaluationGUIRequest $request, \SurveyQuestionEvaluation $a_eval)
 
 getPanelText (\ILIAS\Survey\Evaluation\EvaluationGUIRequest $request, \SurveyQuestionEvaluation $a_eval, \ilSurveyEvaluationResults $question_res)
 
 getPanelCard (\ilSurveyEvaluationResults $question_res)
 

Protected Attributes

InternalGUIService $gui
 
InternalService $service = null
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 32 of file class.AbstractUIModifier.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Survey\Mode\AbstractUIModifier::__construct ( InternalGUIService  $gui)

Definition at line 37 of file class.AbstractUIModifier.php.

References ILIAS\Survey\Mode\AbstractUIModifier\$gui.

38  {
39  $this->gui = $gui;
40  }

Member Function Documentation

◆ addApprSelectionToToolbar()

ILIAS\Survey\Mode\AbstractUIModifier::addApprSelectionToToolbar ( \ilObjSurvey  $survey,
\ilToolbarGUI  $toolbar,
int  $user_id 
)

Definition at line 288 of file class.AbstractUIModifier.php.

References $lng, XapiProxy\$req, ilToolbarGUI\addInputItem(), ilToolbarGUI\addSeparator(), and ilUserUtil\getNamePresentation().

Referenced by ILIAS\Survey\Mode\AbstractUIModifier\setResultsCompetenceToolbar(), ILIAS\Survey\Mode\IndividualFeedback\UIModifier\setResultsCompetenceToolbar(), ILIAS\Survey\Mode\AbstractUIModifier\setResultsDetailToolbar(), ILIAS\Survey\Mode\IndividualFeedback\UIModifier\setResultsDetailToolbar(), and ILIAS\Survey\Mode\AbstractUIModifier\setResultsOverviewToolbar().

292  : void {
293  $lng = $this->service->gui()->lng();
294  $ctrl = $this->service->gui()->ctrl();
295  $req = $this->service->gui()->evaluation($survey)->request();
296 
297  $evaluation_manager = $this->service->domain()->evaluation(
298  $survey,
299  $user_id,
300  $req->getAppraiseeId(),
301  $req->getRaterId()
302  );
303 
304  if ($evaluation_manager->isMultiParticipantsView()) {
305  $appr_id = $evaluation_manager->getCurrentAppraisee();
306  $options = array();
307  if (!$appr_id) {
308  $options[""] = $lng->txt("please_select");
309  }
310 
311  foreach ($evaluation_manager->getSelectableAppraisees() as $appraisee_usr_id) {
312  $options[$appraisee_usr_id] = \ilUserUtil::getNamePresentation(
313  $appraisee_usr_id,
314  false,
315  false,
316  "",
317  true
318  );
319  }
320 
321  $appr = new \ilSelectInputGUI($lng->txt("survey_360_appraisee"), "appr_id");
322  $appr->setOptions($options);
323  $appr->setValue($appr_id);
324  $toolbar->addInputItem($appr, true);
325 
326  $this->gui->button(
327  $lng->txt("survey_360_select_appraisee"),
328  $ctrl->getCmd()
329  )->submit()->toToolbar(false, $toolbar);
330 
331  if ($appr_id) {
332  $toolbar->addSeparator();
333  }
334  }
335  }
catch(\Exception $e) $req
Definition: xapiproxy.php:91
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path='ilpublicuserprofilegui')
Default behaviour is:
global $lng
Definition: privfeed.php:31
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addExportAndPrintButton()

ILIAS\Survey\Mode\AbstractUIModifier::addExportAndPrintButton ( \ilObjSurvey  $survey,
\ilToolbarGUI  $toolbar,
bool  $details,
\ilTemplate  $eval_tpl 
)
protected

Definition at line 170 of file class.AbstractUIModifier.php.

References ilToolbarGUI\addComponent(), ilToolbarGUI\addSeparator(), ILIAS\Survey\Mode\AbstractUIModifier\buildExportButtonAndModal(), and ilObject\getRefId().

Referenced by ILIAS\Survey\Mode\AbstractUIModifier\setResultsDetailToolbar(), ILIAS\Survey\Mode\IndividualFeedback\UIModifier\setResultsDetailToolbar(), and ILIAS\Survey\Mode\AbstractUIModifier\setResultsOverviewToolbar().

175  : void {
176  $this->buildExportButtonAndModal($eval_tpl, $details ? "exportDetailData" : "exportData");
177 
178  $toolbar->addSeparator();
179 
180  if ($details) {
181  $pv = $this->service->gui()->print()->resultsDetails($survey->getRefId());
182  $this->service->gui()->ctrl()->setParameterByClass(
183  "ilSurveyEvaluationGUI",
184  "vw",
185  $this->service->gui()->evaluation($survey)->request()->getVW()
186  );
187  $this->service->gui()->ctrl()->setParameterByClass(
188  "ilSurveyEvaluationGUI",
189  "cp",
190  $this->service->gui()->evaluation($survey)->request()->getCP()
191  );
192  $modal_elements = $pv->getModalElements(
193  $this->service->gui()->ctrl()->getLinkTargetByClass(
194  "ilSurveyEvaluationGUI",
195  "printResultsDetailsSelection"
196  )
197  );
198  } else {
199  $pv = $this->service->gui()->print()->resultsOverview($survey->getRefId());
200  $modal_elements = $pv->getModalElements(
201  $this->service->gui()->ctrl()->getLinkTargetByClass(
202  "ilSurveyEvaluationGUI",
203  "printResultsOverviewSelection"
204  )
205  );
206  }
207 
208  $toolbar->addComponent($modal_elements->button);
209  $toolbar->addComponent($modal_elements->modal);
210 
211  /*
212  $button = \ilLinkButton::getInstance();
213  $button->setCaption("print");
214  $button->setOnClick("if(il.Accordion) { il.Accordion.preparePrint(); } window.print(); return false;");
215  $button->setOmitPreventDoubleSubmission(true);
216  $toolbar->addButtonInstance($button);*/
217  }
buildExportButtonAndModal(\ilTemplate $eval_tpl, string $export_cmd)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildExportButtonAndModal()

ILIAS\Survey\Mode\AbstractUIModifier::buildExportButtonAndModal ( \ilTemplate  $eval_tpl,
string  $export_cmd 
)
protected

Definition at line 219 of file class.AbstractUIModifier.php.

References $lng, ILIAS\Survey\Mode\AbstractUIModifier\getExportModal(), and HTML_Template_IT\setVariable().

Referenced by ILIAS\Survey\Mode\AbstractUIModifier\addExportAndPrintButton().

222  : void {
223  $lng = $this->gui->lng();
224  $ctrl = $this->gui->ctrl();
225  $toolbar = $this->gui->toolbar();
226  $ui_fac = $this->gui->ui()->factory();
227  $ui_ren = $this->gui->ui()->renderer();
228  $ui_request = $this->gui->http()->request();
229 
230  $ctrl->setParameterByClass("ilsurveyevaluationgui", "export_cmd", $export_cmd);
231  $modal = $this->getExportModal();
232  $button = $ui_fac->button()->standard(
233  $lng->txt("export"),
234  "#"
235  )->withOnClick($modal->getShowSignal());
236 
237  $toolbar->addComponent($button);
238  if ("POST" === $ui_request->getMethod()
239  && isset($ui_request->getQueryParams()["fallbackCmd"])
240  && $ui_request->getQueryParams()["fallbackCmd"] === "validateAndSubmitExportForm") {
241  $modal = $modal->withRequest($ui_request);
242  $eval_tpl->setVariable("MODAL", $ui_ren->render($modal->withOnLoad($modal->getShowSignal())));
243  } else {
244  $eval_tpl->setVariable("MODAL", $ui_ren->render($modal));
245  }
246  }
global $lng
Definition: privfeed.php:31
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDetailPanels()

ILIAS\Survey\Mode\AbstractUIModifier::getDetailPanels ( array  $participants,
\ILIAS\Survey\Evaluation\EvaluationGUIRequest  $request,
\SurveyQuestionEvaluation  $a_eval 
)

Implements ILIAS\Survey\Mode\UIModifier.

Definition at line 338 of file class.AbstractUIModifier.php.

References ILIAS\Survey\Mode\AbstractUIModifier\getPanelCard(), ILIAS\Survey\Mode\AbstractUIModifier\getPanelChart(), ILIAS\Survey\Mode\AbstractUIModifier\getPanelTable(), ILIAS\Survey\Mode\AbstractUIModifier\getPanelText(), and SurveyQuestionEvaluation\getResults().

342  : array {
343  $a_results = $a_eval->getResults();
344  $panels = [];
345  $ui_factory = $this->service->gui()->ui()->factory();
346 
347  $a_tpl = new \ilTemplate("tpl.svy_results_details_panel.html", true, true, "components/ILIAS/Survey/Evaluation");
348 
349  $question_res = $a_results;
350  $matrix = false;
351  if (is_array($question_res)) {
352  $question_res = $question_res[0][1];
353  $matrix = true;
354  }
355 
356  // see #28507 (matrix question without a row)
357  if (!is_object($question_res)) {
358  return [];
359  }
360 
361  $question = $question_res->getQuestion();
362 
363  // question "overview"
364  $qst_title = $question->getTitle();
365  $svy_text = nl2br($question->getQuestiontext());
366 
367  // Question title anchor
368  $anchor_id = "svyrdq" . $question->getId();
369  $title = "<span id='$anchor_id'>$qst_title</span>";
370  $panel_qst_card = $ui_factory->panel()->sub($title, $ui_factory->legacy()->content($svy_text))
371  ->withFurtherInformation($this->getPanelCard($question_res));
372 
373  $panels[] = $panel_qst_card;
374 
375  $a_tpl->setVariable("TABLE", $this->getPanelTable(
376  $participants,
377  $request,
378  $a_eval
379  ));
380 
381  $a_tpl->setVariable("TEXT", $this->getPanelText(
382  $request,
383  $a_eval,
384  $question_res
385  ));
386 
387  $a_tpl->setVariable("CHART", $this->getPanelChart(
388  $request,
389  $a_eval
390  ));
391 
392 
393  $panels[] = $ui_factory->panel()->sub("", $ui_factory->legacy()->content($a_tpl->get()));
394  return $panels;
395  }
getPanelTable(array $participants, \ILIAS\Survey\Evaluation\EvaluationGUIRequest $request, \SurveyQuestionEvaluation $a_eval)
getPanelCard(\ilSurveyEvaluationResults $question_res)
getPanelChart(\ILIAS\Survey\Evaluation\EvaluationGUIRequest $request, \SurveyQuestionEvaluation $a_eval)
getPanelText(\ILIAS\Survey\Evaluation\EvaluationGUIRequest $request, \SurveyQuestionEvaluation $a_eval, \ilSurveyEvaluationResults $question_res)
+ Here is the call graph for this function:

◆ getExportModal()

ILIAS\Survey\Mode\AbstractUIModifier::getExportModal ( )
protected

Definition at line 248 of file class.AbstractUIModifier.php.

References ILIAS\UI\Implementation\Component\Input\$inputs, $lng, null, ilSurveyEvaluationGUI\TYPE_SPSS, and ilSurveyEvaluationGUI\TYPE_XLS.

Referenced by ILIAS\Survey\Mode\AbstractUIModifier\buildExportButtonAndModal().

248  : Modal\RoundTrip | Form\Standard
249  {
250  $lng = $this->gui->lng();
251  $ctrl = $this->gui->ctrl();
252  $ui_fac = $this->gui->ui()->factory();
253 
254  $post_url = $ctrl->getFormActionByClass("ilsurveyevaluationgui", "validateAndSubmitExportForm");
255 
256  $inputs["export_format"] = $ui_fac->input()->field()->select(
257  $lng->txt("filetype"),
258  [
259  \ilSurveyEvaluationGUI::TYPE_XLS => $lng->txt("exp_type_excel"),
260  \ilSurveyEvaluationGUI::TYPE_SPSS => $lng->txt("exp_type_csv")
261  ]
262  )
263  //->withValue(\ilSurveyEvaluationGUI::TYPE_XLS)
264  ->withRequired(true);
265 
266  $inputs["export_label"] = $ui_fac->input()->field()->select(
267  $lng->txt("title"),
268  [
269  "label_only" => $lng->txt("export_label_only"),
270  "title_only" => $lng->txt("export_title_only"),
271  "title_label" => $lng->txt("export_title_label")
272  ]
273  )
274  //->withValue("label_only")
275  ->withRequired(true);
276 
277  $modal = $ui_fac->modal()->roundtrip(
278  $lng->txt("svy_export_format"),
279  null,
280  $inputs,
281  $post_url
282  )
283  ->withSubmitLabel($lng->txt("export"));
284 
285  return $modal;
286  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $lng
Definition: privfeed.php:31
+ Here is the caller graph for this function:

◆ getInternalService()

ILIAS\Survey\Mode\AbstractUIModifier::getInternalService ( )

◆ getPanelCard()

ILIAS\Survey\Mode\AbstractUIModifier::getPanelCard ( \ilSurveyEvaluationResults  $question_res)
protected

Definition at line 518 of file class.AbstractUIModifier.php.

References $lng, SurveyQuestion\_getQuestionTypeName(), ilSurveyEvaluationResults\getMean(), ilSurveyEvaluationResults\getMedian(), ilSurveyEvaluationResults\getMedianAsText(), ilSurveyEvaluationResults\getModeNrOfSelections(), ilSurveyEvaluationResults\getModeValue(), ilSurveyEvaluationResults\getModeValueAsText(), ilSurveyEvaluationResults\getQuestion(), ilSurveyEvaluationResults\getUsersAnswered(), ilSurveyEvaluationResults\getUsersSkipped(), and null.

Referenced by ILIAS\Survey\Mode\AbstractUIModifier\getDetailPanels().

520  : \ILIAS\UI\Component\Card\Card {
521  $ui_factory = $this->service->gui()->ui()->factory();
522  $lng = $this->service->gui()->lng();
523 
524  $question = $question_res->getQuestion();
525  $kv = array();
526  $kv["users_answered"] = $question_res->getUsersAnswered();
527  $kv["users_skipped"] = $question_res->getUsersSkipped();
528 
529  $card_table_tpl = new \ilTemplate(
530  "tpl.svy_results_details_card.html",
531  true,
532  true,
533  "components/ILIAS/Survey/Evaluation"
534  );
535 
536  if (true) { // formerly check for matrix type, shouldnt be needed
537  if ($question_res->getModeValue() !== null) {
538  $kv["mode"] = wordwrap($question_res->getModeValueAsText(), 50, "<br />");
539  $kv["mode_nr_of_selections"] = $question_res->getModeNrOfSelections();
540  }
541  if ($question_res->getMedian() !== null) {
542  $kv["median"] = $question_res->getMedianAsText();
543  }
544  if ($question_res->getMean() !== null) {
545  $kv["arithmetic_mean"] = $question_res->getMean();
546  }
547  }
548 
549  foreach ($kv as $key => $value) {
550  $card_table_tpl->setCurrentBlock("question_statistics_card");
551  $card_table_tpl->setVariable("QUESTION_STATISTIC_KEY", $lng->txt($key));
552  $card_table_tpl->setVariable("QUESTION_STATISTIC_VALUE", $value);
553  $card_table_tpl->parseCurrentBlock();
554  }
555 
556  $svy_type_title = \SurveyQuestion::_getQuestionTypeName($question->getQuestionType());
557 
558  return $ui_factory->card()
559  ->standard($svy_type_title)
560  ->withSections(
561  array($ui_factory->legacy()->content($card_table_tpl->get()))
562  );
563  }
static _getQuestionTypeName(string $type_tag)
Return the translation for a given question type.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $lng
Definition: privfeed.php:31
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPanelChart()

ILIAS\Survey\Mode\AbstractUIModifier::getPanelChart ( \ILIAS\Survey\Evaluation\EvaluationGUIRequest  $request,
\SurveyQuestionEvaluation  $a_eval 
)
protected

Definition at line 437 of file class.AbstractUIModifier.php.

References Vendor\Package\$b, $r, SurveyQuestionEvaluation\getChart(), and SurveyQuestionEvaluation\getResults().

Referenced by ILIAS\Survey\Mode\AbstractUIModifier\getDetailPanels().

440  : string {
441  $a_results = $a_eval->getResults();
442 
443  $a_tpl = new \ilTemplate("tpl.svy_results_details_chart.html", true, true, "components/ILIAS/Survey/Evaluation");
444  // chart
445  if ($request->getShowChart()) {
446  $chart = $a_eval->getChart($a_results);
447  if ($chart) {
448  if (is_array($chart)) {
449  // legend
450  if (is_array($chart[1])) {
451  foreach ($chart[1] as $legend_item) {
452  $r = hexdec(substr($legend_item[1], 1, 2));
453  $g = hexdec(substr($legend_item[1], 3, 2));
454  $b = hexdec(substr($legend_item[1], 5, 2));
455 
456  $a_tpl->setCurrentBlock("legend_bl");
457  $a_tpl->setVariable("LEGEND_CAPTION", $legend_item[0]);
458  $a_tpl->setVariable("LEGEND_COLOR", $legend_item[1]);
459  $a_tpl->setVariable("LEGEND_COLOR_SVG", $r . "," . $g . "," . $b);
460  $a_tpl->parseCurrentBlock();
461  }
462  }
463 
464  $chart = $chart[0];
465  }
466 
467  $a_tpl->setVariable("CHART", $chart);
468  }
469  }
470 
471  return $a_tpl->get();
472  }
$r
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPanelTable()

ILIAS\Survey\Mode\AbstractUIModifier::getPanelTable ( array  $participants,
\ILIAS\Survey\Evaluation\EvaluationGUIRequest  $request,
\SurveyQuestionEvaluation  $a_eval 
)
protected

Definition at line 397 of file class.AbstractUIModifier.php.

References SurveyQuestionEvaluation\getGrid(), and SurveyQuestionEvaluation\getResults().

Referenced by ILIAS\Survey\Mode\AbstractUIModifier\getDetailPanels(), and ILIAS\Survey\Mode\IndividualFeedback\UIModifier\getPanelText().

401  : string {
402  $a_results = $a_eval->getResults();
403 
404  $a_tpl = new \ilTemplate("tpl.svy_results_details_table.html", true, true, "components/ILIAS/Survey/Evaluation");
405 
406  // grid
407  if ($request->getShowTable()) {
408  $grid = $a_eval->getGrid(
409  $a_results,
410  $request->getShowAbsolute(),
411  $request->getShowPercentage()
412  );
413  if ($grid) {
414  foreach ($grid["cols"] as $col) {
415  $a_tpl->setCurrentBlock("grid_col_header_bl");
416  $a_tpl->setVariable("COL_HEADER", $col);
417  $a_tpl->parseCurrentBlock();
418  }
419  foreach ($grid["rows"] as $cols) {
420  foreach ($cols as $idx => $col) {
421  if ($idx > 0) {
422  $a_tpl->touchBlock("grid_col_nowrap_bl");
423  }
424 
425  $a_tpl->setCurrentBlock("grid_col_bl");
426  $a_tpl->setVariable("COL_CAPTION", trim((string) ($col ?? "")));
427  $a_tpl->parseCurrentBlock();
428  }
429 
430  $a_tpl->touchBlock("grid_row_bl");
431  }
432  }
433  }
434  return $a_tpl->get();
435  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPanelText()

ILIAS\Survey\Mode\AbstractUIModifier::getPanelText ( \ILIAS\Survey\Evaluation\EvaluationGUIRequest  $request,
\SurveyQuestionEvaluation  $a_eval,
\ilSurveyEvaluationResults  $question_res 
)
protected

Definition at line 474 of file class.AbstractUIModifier.php.

References $lng, ilSurveyEvaluationResults\getQuestion(), SurveyQuestionEvaluation\getResults(), and SurveyQuestionEvaluation\getTextAnswers().

Referenced by ILIAS\Survey\Mode\AbstractUIModifier\getDetailPanels().

478  : string {
479  $a_results = $a_eval->getResults();
480  $question = $question_res->getQuestion();
481  $lng = $this->service->gui()->lng();
482 
483  $a_tpl = new \ilTemplate("tpl.svy_results_details_text.html", true, true, "components/ILIAS/Survey/Evaluation");
484 
485  // text answers
486  $texts = $a_eval->getTextAnswers($a_results);
487  if ($texts) {
488  if (array_key_exists("", $texts)) {
489  $a_tpl->setVariable("TEXT_HEADING", $lng->txt("given_answers"));
490  foreach ($texts[""] as $item) {
491  $a_tpl->setCurrentBlock("text_direct_item_bl");
492  $a_tpl->setVariable("TEXT_DIRECT", nl2br(htmlentities($item)));
493  $a_tpl->parseCurrentBlock();
494  }
495  } else {
496  $acc = new \ilAccordionGUI();
497  $acc->setId("svyevaltxt" . $question->getId());
498 
499  $a_tpl->setVariable("TEXT_HEADING", $lng->txt("freetext_answers"));
500 
501  foreach ($texts as $var => $items) {
502  $list = array("<ul class=\"small\">");
503  foreach ($items as $item) {
504  $list[] = "<li>" . nl2br(htmlentities($item)) . "</li>";
505  }
506  $list[] = "</ul>";
507  $acc->addItem((string) $var, implode("\n", $list));
508  }
509 
510  $a_tpl->setVariable("TEXT_ACC", $acc->getHTML());
511  }
512  }
513  return $a_tpl->get();
514  }
global $lng
Definition: privfeed.php:31
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSurveySettingsGeneral()

ILIAS\Survey\Mode\AbstractUIModifier::getSurveySettingsGeneral ( \ilObjSurvey  $survey)
Returns
[]

Implements ILIAS\Survey\Mode\UIModifier.

Definition at line 52 of file class.AbstractUIModifier.php.

54  : array {
55  return [];
56  }

◆ getSurveySettingsReminderTargets()

ILIAS\Survey\Mode\AbstractUIModifier::getSurveySettingsReminderTargets ( \ilObjSurvey  $survey,
InternalGUIService  $ui_service 
)
Returns
[]

Implements ILIAS\Survey\Mode\UIModifier.

Definition at line 58 of file class.AbstractUIModifier.php.

61  : array {
62  return [];
63  }

◆ getSurveySettingsResults()

ILIAS\Survey\Mode\AbstractUIModifier::getSurveySettingsResults ( \ilObjSurvey  $survey,
InternalGUIService  $ui_service 
)
Returns
[]

Implements ILIAS\Survey\Mode\UIModifier.

Definition at line 65 of file class.AbstractUIModifier.php.

68  : array {
69  return [];
70  }

◆ setInternalService()

ILIAS\Survey\Mode\AbstractUIModifier::setInternalService ( InternalService  $internal_service)

Implements ILIAS\Survey\Mode\UIModifier.

Definition at line 42 of file class.AbstractUIModifier.php.

42  : void
43  {
44  $this->service = $internal_service;
45  }

◆ setResultsCompetenceToolbar()

ILIAS\Survey\Mode\AbstractUIModifier::setResultsCompetenceToolbar ( \ilObjSurvey  $survey,
\ilToolbarGUI  $toolbar,
int  $user_id 
)

Implements ILIAS\Survey\Mode\UIModifier.

Definition at line 101 of file class.AbstractUIModifier.php.

References ILIAS\Survey\Mode\AbstractUIModifier\addApprSelectionToToolbar().

105  : void {
107  $survey,
108  $toolbar,
109  $user_id
110  );
111  }
addApprSelectionToToolbar(\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id)
+ Here is the call graph for this function:

◆ setResultsDetailToolbar()

ILIAS\Survey\Mode\AbstractUIModifier::setResultsDetailToolbar ( \ilObjSurvey  $survey,
\ilToolbarGUI  $toolbar,
int  $user_id,
\ilTemplate  $eval_tpl 
)

Implements ILIAS\Survey\Mode\UIModifier.

Definition at line 114 of file class.AbstractUIModifier.php.

References $lng, ILIAS\Survey\Mode\AbstractUIModifier\addApprSelectionToToolbar(), ILIAS\Survey\Mode\AbstractUIModifier\addExportAndPrintButton(), ilToolbarGUI\addInputItem(), ilToolbarGUI\addSeparator(), ILIAS\Survey\Mode\AbstractUIModifier\getInternalService(), ilObjSurvey\getMode(), and ILIAS\Survey\InternalGUIService\lng().

119  : void {
120  $request = $this->service
121  ->gui()
122  ->evaluation($survey)
123  ->request();
124 
125  $gui = $this->service->gui();
126  $lng = $gui->lng();
127 
128  $config = $this->getInternalService()->domain()->modeFeatureConfig($survey->getMode());
129  if ($config->usesAppraisees()) {
131  $survey,
132  $toolbar,
133  $user_id
134  );
135  }
136 
137  $captions = new \ilSelectInputGUI($lng->txt("svy_eval_captions"), "cp");
138  $captions->setOptions(array(
139  "ap" => $lng->txt("svy_eval_captions_abs_perc"),
140  "a" => $lng->txt("svy_eval_captions_abs"),
141  "p" => $lng->txt("svy_eval_captions_perc")
142  ));
143  $captions->setValue($request->getCP());
144  $toolbar->addInputItem($captions, true);
145 
146  $view = new \ilSelectInputGUI($lng->txt("svy_eval_view"), "vw");
147  $view->setOptions(array(
148  "tc" => $lng->txt("svy_eval_view_tables_charts"),
149  "t" => $lng->txt("svy_eval_view_tables"),
150  "c" => $lng->txt("svy_eval_view_charts")
151  ));
152  $view->setValue($request->getVW());
153  $toolbar->addInputItem($view, true);
154 
155  $this->gui->button(
156  $this->gui->lng()->txt("ok"),
157  "evaluationdetails"
158  )->submit()->toToolbar(false, $toolbar);
159 
160  $toolbar->addSeparator();
161 
163  $survey,
164  $toolbar,
165  true,
166  $eval_tpl
167  );
168  }
addExportAndPrintButton(\ilObjSurvey $survey, \ilToolbarGUI $toolbar, bool $details, \ilTemplate $eval_tpl)
addApprSelectionToToolbar(\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id)
global $lng
Definition: privfeed.php:31
+ Here is the call graph for this function:

◆ setResultsOverviewToolbar()

ILIAS\Survey\Mode\AbstractUIModifier::setResultsOverviewToolbar ( \ilObjSurvey  $survey,
\ilToolbarGUI  $toolbar,
int  $user_id,
\ilTemplate  $eval_tpl 
)

Implements ILIAS\Survey\Mode\UIModifier.

Definition at line 78 of file class.AbstractUIModifier.php.

References ILIAS\Survey\Mode\AbstractUIModifier\addApprSelectionToToolbar(), ILIAS\Survey\Mode\AbstractUIModifier\addExportAndPrintButton(), ILIAS\Survey\Mode\AbstractUIModifier\getInternalService(), and ilObjSurvey\getMode().

83  : void {
84  $config = $this->getInternalService()->domain()->modeFeatureConfig($survey->getMode());
85  if ($config->usesAppraisees()) {
87  $survey,
88  $toolbar,
89  $user_id
90  );
91  }
92 
94  $survey,
95  $toolbar,
96  false,
97  $eval_tpl
98  );
99  }
addExportAndPrintButton(\ilObjSurvey $survey, \ilToolbarGUI $toolbar, bool $details, \ilTemplate $eval_tpl)
addApprSelectionToToolbar(\ilObjSurvey $survey, \ilToolbarGUI $toolbar, int $user_id)
+ Here is the call graph for this function:

◆ setValuesFromForm()

ILIAS\Survey\Mode\AbstractUIModifier::setValuesFromForm ( \ilObjSurvey  $survey,
\ilPropertyFormGUI  $form 
)

Implements ILIAS\Survey\Mode\UIModifier.

Definition at line 72 of file class.AbstractUIModifier.php.

75  : void {
76  }

Field Documentation

◆ $gui

InternalGUIService ILIAS\Survey\Mode\AbstractUIModifier::$gui
protected

◆ $service

InternalService ILIAS\Survey\Mode\AbstractUIModifier::$service = null
protected

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