ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilCertificateSettingsCmiXapiFormRepository.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
31 {
32  private \ilCertificateSettingsFormRepository $settingsFormRepository;
33 
34  public function __construct(
35  ilObjCmiXapi $object,
36  string $certificatePath,
37  bool $hasAdditionalElements,
38  ilLanguage $language,
39  ilCtrl $controller,
40  ilAccess $access,
41  ilToolbarGUI $toolbar,
42  ilCertificatePlaceholderDescription $placeholderDescriptionObject,
43  ?ilCertificateSettingsFormRepository $settingsFormRepository = null
44  ) {
45  if (null === $settingsFormRepository) {
46  $settingsFormRepository = new ilCertificateSettingsFormRepository(
47  $object->getId(),
48  $certificatePath,
49  $hasAdditionalElements,
50  $language,
51  $controller,
52  $access,
53  $toolbar,
54  $placeholderDescriptionObject
55  );
56  }
57  $this->settingsFormRepository = $settingsFormRepository;
58  }
59 
60  public function createForm(ilCertificateGUI $certificateGUI): ilPropertyFormGUI
61  {
62  return $this->settingsFormRepository->createForm($certificateGUI);
63  }
64 
65 
66  public function save(array $formFields): void
67  {
68  }
69 
73  public function fetchFormFieldData(string $content): array
74  {
75  return $this->settingsFormRepository->fetchFormFieldData($content);
76  }
77 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(ilObjCmiXapi $object, string $certificatePath, bool $hasAdditionalElements, ilLanguage $language, ilCtrl $controller, ilAccess $access, ilToolbarGUI $toolbar, ilCertificatePlaceholderDescription $placeholderDescriptionObject, ?ilCertificateSettingsFormRepository $settingsFormRepository=null)