ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Survey\PrintView\ListPrintViewProviderGUI Class Reference
+ Inheritance diagram for ILIAS\Survey\PrintView\ListPrintViewProviderGUI:
+ Collaboration diagram for ILIAS\Survey\PrintView\ListPrintViewProviderGUI:

Public Member Functions

 __construct (\ilLanguage $lng, \ilCtrl $ctrl, int $ref_id)
 
 getTemplateInjectors ()
 @inheritDoc More...
 
 getSelectionForm ()
 @inheritDoc More...
 
 getPages ()
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\Export\AbstractPrintViewProvider
 setOffline (bool $offline)
 Set output mode. More...
 
 getOnSubmitCode ()
 
 autoPageBreak ()
 
 getSelectionForm ()
 @inheritDoc More...
 
 getPages ()
 @inheritDoc More...
 
 getTemplateInjectors ()
 @inheritDoc More...
 
 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 More...
 
 getOnSubmitCode ()
 
 autoPageBreak ()
 
 getPages ()
 
 getTemplateInjectors ()
 

Protected Attributes

ILIAS Survey Editing EditingGUIRequest $request
 
ilObjSurvey $survey
 
int $ref_id
 
ilLanguage $lng
 
ilCtrl $ctrl
 
- Protected Attributes inherited from ILIAS\Export\AbstractPrintViewProvider
 $offline = false
 

Additional Inherited Members

- Data Fields inherited from ILIAS\Export\AbstractPrintViewProvider
const PRINT = "print"
 
const OFFLINE = "offline"
 
- Protected Member Functions inherited from ILIAS\Export\AbstractPrintViewProvider
 getOutputMode ()
 Get output mode. More...
 

Detailed Description

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

Definition at line 28 of file class.ListPrintViewProviderGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Survey\PrintView\ListPrintViewProviderGUI::__construct ( \ilLanguage  $lng,
\ilCtrl  $ctrl,
int  $ref_id 
)

Definition at line 36 of file class.ListPrintViewProviderGUI.php.

40 {
41 global $DIC;
42
43 $this->request = $DIC->survey()
44 ->internal()
45 ->gui()
46 ->editing()
47 ->request();
48
49 $this->lng = $lng;
50 $this->ctrl = $ctrl;
51 $this->ref_id = $ref_id;
52 $this->survey = new \ilObjSurvey($this->ref_id);
53 }
global $DIC
Definition: shib_login.php:26

References ILIAS\Survey\PrintView\ListPrintViewProviderGUI\$ctrl, $DIC, ILIAS\Survey\PrintView\ListPrintViewProviderGUI\$lng, ILIAS\Survey\PrintView\ListPrintViewProviderGUI\$ref_id, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ getPages()

ILIAS\Survey\PrintView\ListPrintViewProviderGUI::getPages ( )

@inheritDoc

Reimplemented from ILIAS\Export\AbstractPrintViewProvider.

Definition at line 91 of file class.ListPrintViewProviderGUI.php.

91 : array
92 {
93 $print_pages = [];
94
95
96 $pages = $this->survey->getSurveyPages();
97
98 $question_title_mode = $this->request->getIncludeLables()
99 ? 3
100 : 1;
101
102 foreach ($pages as $page) {
103 $page_renderer = new PageRenderer(
104 $this->survey,
105 $page,
106 [],
107 [],
108 $question_title_mode
109 );
110 $print_pages[] = $page_renderer->render();
111 }
112 return $print_pages;
113 }

◆ getSelectionForm()

ILIAS\Survey\PrintView\ListPrintViewProviderGUI::getSelectionForm ( )

@inheritDoc

Reimplemented from ILIAS\Export\AbstractPrintViewProvider.

Definition at line 64 of file class.ListPrintViewProviderGUI.php.

65 {
67 $ilCtrl = $this->ctrl;
68
69 $form = new \ilPropertyFormGUI();
70
71 // include labels in print view
72 if ($this->survey->getShowQuestionTitles()) {
73 $cb = new \ilCheckboxInputGUI($lng->txt("svy_print_show_labels"), "include_labels");
74 $form->addItem($cb);
75 }
76
77 $form->addCommandButton("printListView", $lng->txt("print_view"));
78
79 //$form->setTitle($lng->txt("svy_print_selection"));
80 //$ilCtrl->setParameterByClass("ilSurveyEditorGUI", "pg", $this->request->getPage());
81 $form->setFormAction(
82 $ilCtrl->getFormActionByClass(
83 "ilSurveyEditorGUI",
84 "printListView"
85 )
86 );
87
88 return $form;
89 }
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...
This class represents a property form user interface.

References ILIAS\Survey\PrintView\ListPrintViewProviderGUI\$ctrl, ILIAS\Survey\PrintView\ListPrintViewProviderGUI\$lng, and ilLanguage\txt().

+ Here is the call graph for this function:

◆ getTemplateInjectors()

ILIAS\Survey\PrintView\ListPrintViewProviderGUI::getTemplateInjectors ( )

@inheritDoc

Reimplemented from ILIAS\Export\AbstractPrintViewProvider.

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

55 : array
56 {
57 return [
58 static function (\ilGlobalTemplate $tpl): void {
59 //$tpl add js/css
60 }
61 ];
62 }
special template class to simplify handling of ITX/PEAR

Field Documentation

◆ $ctrl

ilCtrl ILIAS\Survey\PrintView\ListPrintViewProviderGUI::$ctrl
protected

◆ $lng

ilLanguage ILIAS\Survey\PrintView\ListPrintViewProviderGUI::$lng
protected

◆ $ref_id

int ILIAS\Survey\PrintView\ListPrintViewProviderGUI::$ref_id
protected

◆ $request

ILIAS Survey Editing EditingGUIRequest ILIAS\Survey\PrintView\ListPrintViewProviderGUI::$request
protected

Definition at line 30 of file class.ListPrintViewProviderGUI.php.

◆ $survey

ilObjSurvey ILIAS\Survey\PrintView\ListPrintViewProviderGUI::$survey
protected

Definition at line 31 of file class.ListPrintViewProviderGUI.php.


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