ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilCertificateSettingsExerciseRepository.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
24 
29 {
31 
32  public function __construct(
33  ilObject $object,
34  string $certificatePath,
35  bool $hasAdditionalElements,
36  ilLanguage $language,
37  ilCtrlInterface $ctrl,
38  ilAccessHandler $access,
39  ilToolbarGUI $toolbar,
40  ilCertificatePlaceholderDescription $placeholderDescriptionObject,
41  ?ilCertificateSettingsFormRepository $settingsFormFactory = null
42  ) {
43  global $DIC;
44 
45  $this->settingsFormFactory = $settingsFormFactory ?? new ilCertificateSettingsFormRepository(
46  $object->getId(),
47  $certificatePath,
48  $hasAdditionalElements,
49  $language,
50  $ctrl,
51  $access,
52  $toolbar,
53  $placeholderDescriptionObject,
54  $DIC->ui()->factory(),
55  $DIC->ui()->renderer()
56  );
57  }
58 
67  public function createForm(ilCertificateGUI $certificateGUI): ilPropertyFormGUI
68  {
69  return $this->settingsFormFactory->createForm($certificateGUI);
70  }
71 
72  public function save(array $formFields): void
73  {
74  }
75 
76  public function fetchFormFieldData(string $content): array
77  {
78  return $this->settingsFormFactory->fetchFormFieldData($content);
79  }
80 }
global $DIC
Definition: feed.php:28
GUI class to create PDF certificates.
readonly ilCertificateSettingsFormRepository $settingsFormFactory
__construct(ilObject $object, string $certificatePath, bool $hasAdditionalElements, ilLanguage $language, ilCtrlInterface $ctrl, ilAccessHandler $access, ilToolbarGUI $toolbar, ilCertificatePlaceholderDescription $placeholderDescriptionObject, ?ilCertificateSettingsFormRepository $settingsFormFactory=null)