ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilCertificateSettingsStudyProgrammeFormRepository.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
5 {
9  private $language;
10 
15 
19  private $object;
20 
32  public function __construct(
34  string $certificatePath,
35  bool $hasAdditionalElements,
37  ilCtrl $controller,
38  ilAccess $access,
39  ilToolbarGUI $toolbar,
40  ilCertificatePlaceholderDescription $placeholderDescriptionObject,
41  ilCertificateSettingsFormRepository $settingsFormRepository = null,
42  ilSetting $setting = null
43  ) {
44  $this->object = $object;
45  $this->language = $language;
46 
47  if (null === $settingsFormFactory) {
48  $settingsFormFactory = new ilCertificateSettingsFormRepository(
49  $object->getId(),
50  $certificatePath,
51  $hasAdditionalElements,
52  $language,
53  $controller,
54  $access,
55  $toolbar,
56  $placeholderDescriptionObject
57  );
58  }
59 
60  $this->settingsFromFactory = $settingsFormFactory;
61  if (null === $setting) {
62  $setting = new ilSetting('prg');
63  }
64  $this->setting = $setting;
65  }
66 
76  public function createForm(ilCertificateGUI $certificateGUI)
77  {
78  $form = $this->settingsFromFactory->createForm($certificateGUI);
79  return $form;
80  }
81 
85  public function save(array $formFields)
86  {
87  }
88 
93  public function fetchFormFieldData(string $content)
94  {
95  $formFields = $this->settingsFromFactory->fetchFormFieldData($content);
96  return $formFields;
97  }
98 }
This class provides processing control methods.
__construct(ilObject $object, string $certificatePath, bool $hasAdditionalElements, ilLanguage $language, ilCtrl $controller, ilAccess $access, ilToolbarGUI $toolbar, ilCertificatePlaceholderDescription $placeholderDescriptionObject, ilCertificateSettingsFormRepository $settingsFormRepository=null, ilSetting $setting=null)
Class ilAccessHandler.
getId()
get object id public
GUI class to create PDF certificates.
language handling
language()
Definition: language.php:2