ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilCertificateSettingsExerciseRepository.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
8 {
12  private $language;
13 
18 
22  private $object;
23 
34  public function __construct(
36  string $certificatePath,
37  bool $hasAdditionalElements,
39  ilCtrl $controller,
40  ilAccessHandler $access,
41  ilToolbarGUI $toolbar,
42  ilCertificatePlaceholderDescription $placeholderDescriptionObject,
43  ilCertificateSettingsFormRepository $settingsFormFactory = null
44  ) {
45  $this->object = $object;
46  $this->language = $language;
47 
48  if (null === $settingsFormFactory) {
49  $settingsFormFactory = new ilCertificateSettingsFormRepository(
50  $object->getId(),
51  $certificatePath,
52  $hasAdditionalElements,
53  $language,
54  $controller,
55  $access,
56  $toolbar,
57  $placeholderDescriptionObject
58  );
59  }
60 
61  $this->settingsFromFactory = $settingsFormFactory;
62  }
63 
76  public function createForm(ilCertificateGUI $certificateGUI)
77  {
78  $form = $this->settingsFromFactory->createForm($certificateGUI);
79 
80  return $form;
81  }
82 
86  public function save(array $formFields)
87  {
88  }
89 
94  public function fetchFormFieldData(string $content)
95  {
96  $formFields = $this->settingsFromFactory->fetchFormFieldData($content);
97 
98  return $formFields;
99  }
100 }
This class provides processing control methods.
getId()
get object id public
GUI class to create PDF certificates.
__construct(ilObject $object, string $certificatePath, bool $hasAdditionalElements, ilLanguage $language, ilCtrl $controller, ilAccessHandler $access, ilToolbarGUI $toolbar, ilCertificatePlaceholderDescription $placeholderDescriptionObject, ilCertificateSettingsFormRepository $settingsFormFactory=null)
language()
Definition: language.php:2