ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilCertificateSettingsTestFormRepository.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
24 
29 {
33 
34  public function __construct(
35  int $objectId,
36  string $certificatePath,
37  bool $hasAdditionalElements,
38  ilObjTest $testObject,
39  ilLanguage $language,
40  ilCtrlInterface $ctrl,
41  ilAccess $access,
42  ilToolbarGUI $toolbar,
43  ilCertificatePlaceholderDescription $placeholderDescriptionObject,
44  ?ilCertificateSettingsFormRepository $settingsFormRepository = null
45  ) {
46  $this->testObject = $testObject;
47  $this->language = $language;
48 
49  if (null === $settingsFormRepository) {
50  $settingsFormRepository = new ilCertificateSettingsFormRepository(
51  $objectId,
52  $certificatePath,
53  $hasAdditionalElements,
54  $language,
55  $ctrl,
56  $access,
57  $toolbar,
58  $placeholderDescriptionObject
59  );
60  }
61  $this->settingsFormFactory = $settingsFormRepository;
62  }
63 
74  public function createForm(ilCertificateGUI $certificateGUI): ilPropertyFormGUI
75  {
76  return $this->settingsFormFactory->createForm($certificateGUI);
77  }
78 
79  public function save(array $formFields): void
80  {
81  }
82 
83  public function fetchFormFieldData(string $content): array
84  {
85  return $this->settingsFormFactory->fetchFormFieldData($content);
86  }
87 }
GUI class to create PDF certificates.
__construct(int $objectId, string $certificatePath, bool $hasAdditionalElements, ilObjTest $testObject, ilLanguage $language, ilCtrlInterface $ctrl, ilAccess $access, ilToolbarGUI $toolbar, ilCertificatePlaceholderDescription $placeholderDescriptionObject, ?ilCertificateSettingsFormRepository $settingsFormRepository=null)