ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
CertificateSettingsTestFormRepository.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
31 {
32  private readonly \ilCertificateSettingsFormRepository $settings_form_factory;
33 
34  public function __construct(
35  int $object_id,
36  string $certificate_path,
37  bool $has_additional_elements,
38  \ilLanguage $language,
39  \ilCtrlInterface $ctrl,
40  \ilAccess $access,
41  \ilToolbarGUI $toolbar,
42  \ilCertificatePlaceholderDescription $placeholder_description_object,
43  ?\ilCertificateSettingsFormRepository $settings_form_repository = null
44  ) {
45  global $DIC;
46 
47  $this->settings_form_factory = $settings_form_repository ?? new \ilCertificateSettingsFormRepository(
48  $object_id,
49  $certificate_path,
50  $has_additional_elements,
51  $language,
52  $ctrl,
53  $access,
54  $toolbar,
55  $placeholder_description_object,
56  $DIC->ui()->factory(),
57  $DIC->ui()->renderer()
58  );
59  }
60 
69  public function createForm(\ilCertificateGUI $certificateGUI): \ilPropertyFormGUI
70  {
71  return $this->settings_form_factory->createForm($certificateGUI);
72  }
73 
74  public function save(array $formFields): void
75  {
76  }
77 
81  public function fetchFormFieldData(string $content): array
82  {
83  return $this->settings_form_factory->fetchFormFieldData($content);
84  }
85 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(int $object_id, string $certificate_path, bool $has_additional_elements, \ilLanguage $language, \ilCtrlInterface $ctrl, \ilAccess $access, \ilToolbarGUI $toolbar, \ilCertificatePlaceholderDescription $placeholder_description_object, ?\ilCertificateSettingsFormRepository $settings_form_repository=null)
global $DIC
Definition: shib_login.php:22