◆ __construct()
ILIAS\Survey\PrintView\ResultsPerUserPrintViewProviderGUI::__construct |
( |
\ilLanguage |
$lng, |
|
|
\ilCtrl |
$ctrl, |
|
|
int |
$ref_id |
|
) |
| |
◆ getPages()
ILIAS\Survey\PrintView\ResultsPerUserPrintViewProviderGUI::getPages |
( |
| ) |
|
◆ getPrintHeader()
ILIAS\Survey\PrintView\ResultsPerUserPrintViewProviderGUI::getPrintHeader |
( |
| ) |
|
|
protected |
Definition at line 148 of file class.ResultsPerUserPrintViewProviderGUI.php.
References $data, Vendor\Package\$f, $path, $r, ilLink\_getStaticLink(), ilDatePresentation\formatDate(), IL_CAL_UNIX, ILIAS\Repository\lng(), and ilDatePresentation\setUseRelativeDates().
Referenced by ILIAS\Survey\PrintView\ResultsPerUserPrintViewProviderGUI\getPages().
150 $head =
"<h2>" . $this->survey->getTitle() .
"</h2>\n";
152 $path_full = $this->tree->getPathFull($this->survey->getRefId());
153 foreach ($path_full as
$data) {
154 $path .=
" » ";
155 $path .= $data[
'title'];
165 $f = $this->gui->ui()->factory();
166 $r = $this->gui->ui()->renderer();
167 $l = $f->listing()->descriptive($props);
169 return $head .
$r->render($l);
static array static setUseRelativeDates(bool $a_status)
set use relative dates
static _getStaticLink(?int $a_ref_id, string $a_type='', bool $a_fallback_goto=true, string $append="")
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
◆ getSelectionForm()
ILIAS\Survey\PrintView\ResultsPerUserPrintViewProviderGUI::getSelectionForm |
( |
| ) |
|
form which is featured in the modal form target is modified to open in new window (not yet possible with ks forms) the print/pdf message is added automatically
- Returns
- ilPropertyFormGUI|null
Implements ILIAS\Export\PrintViewProvider.
Definition at line 84 of file class.ResultsPerUserPrintViewProviderGUI.php.
References ILIAS\Survey\PrintView\ResultsPerUserPrintViewProviderGUI\$ctrl, and ILIAS\Survey\PrintView\ResultsPerUserPrintViewProviderGUI\$lng.
89 $form = new \ilPropertyFormGUI();
91 $radg = new \ilRadioGroupInputGUI(
$lng->
txt(
"svy_selection"),
"print_selection");
92 $radg->setValue(
"all");
93 $op1 = new \ilRadioOption(
$lng->
txt(
"svy_all_participants"),
"all");
94 $radg->addOption($op1);
95 $op2 = new \ilRadioOption(
$lng->
txt(
"svy_selected_participants"),
"selected");
96 $radg->addOption($op2);
98 $nl = new \ilNestedListInputGUI(
"",
"active_ids");
99 $op2->addSubItem($nl);
101 foreach ($this->access_manager->canReadResultOfParticipants() as $participant) {
103 $participant[
"active_id"],
104 $participant[
"fullname"],
111 $form->addItem($radg);
112 $form->addCommandButton(
"printResultsPerUser",
$lng->
txt(
"print_view"));
114 $form->setTitle(
$lng->
txt(
"svy_print_selection"));
115 $form->setFormAction($ilCtrl->getFormActionByClass(
116 "ilSurveyEvaluationGUI",
117 "printResultsPerUser" txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
◆ getTemplateInjectors()
ILIAS\Survey\PrintView\ResultsPerUserPrintViewProviderGUI::getTemplateInjectors |
( |
| ) |
|
◆ $access_manager
◆ $ctrl
ilCtrl ILIAS\Survey\PrintView\ResultsPerUserPrintViewProviderGUI::$ctrl |
|
protected |
◆ $evaluation_manager
◆ $gui
◆ $lng
ilLanguage ILIAS\Survey\PrintView\ResultsPerUserPrintViewProviderGUI::$lng |
|
protected |
◆ $ref_id
int ILIAS\Survey\PrintView\ResultsPerUserPrintViewProviderGUI::$ref_id |
|
protected |
◆ $request
◆ $survey
ilObjSurvey ILIAS\Survey\PrintView\ResultsPerUserPrintViewProviderGUI::$survey |
|
protected |
◆ $tree
ilTree ILIAS\Survey\PrintView\ResultsPerUserPrintViewProviderGUI::$tree |
|
protected |
The documentation for this class was generated from the following file: