ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
CertificateSettingsTestFormRepository.php
Go to the documentation of this file.
1<?php
2
19declare(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}
Indicates that a file is missing or not found.
Indicates general problems with the input or output operations.
Definition: IOException.php:28
__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)
Class ilAccessHandler Checks access for ILIAS objects.
GUI class to create PDF certificates.
language handling
This class represents a property form user interface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26