ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
CertificateSettingsExerciseRepository.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ilObject;
24use ilLanguage;
25use ilException;
26use ilToolbarGUI;
39
44{
46
47 public function __construct(
48 ilObject $object,
49 string $certificatePath,
50 bool $hasAdditionalElements,
51 ilLanguage $language,
52 ilCtrlInterface $ctrl,
53 ilAccessHandler $access,
54 ilToolbarGUI $toolbar,
55 ilCertificatePlaceholderDescription $placeholderDescriptionObject,
57 ) {
58 global $DIC;
59
60 $this->settingsFormFactory = $settingsFormFactory ?? new ilCertificateSettingsFormRepository(
61 $object->getId(),
62 $certificatePath,
63 $hasAdditionalElements,
64 $language,
65 $ctrl,
66 $access,
67 $toolbar,
68 $placeholderDescriptionObject,
69 $DIC->ui()->factory(),
70 $DIC->ui()->renderer()
71 );
72 }
73
82 public function createForm(ilCertificateGUI $certificateGUI): ilPropertyFormGUI
83 {
84 return $this->settingsFormFactory->createForm($certificateGUI);
85 }
86
87 public function save(array $formFields): void
88 {
89 }
90
91 public function fetchFormFieldData(string $content): array
92 {
93 return $this->settingsFormFactory->fetchFormFieldData($content);
94 }
95}
__construct(ilObject $object, string $certificatePath, bool $hasAdditionalElements, ilLanguage $language, ilCtrlInterface $ctrl, ilAccessHandler $access, ilToolbarGUI $toolbar, ilCertificatePlaceholderDescription $placeholderDescriptionObject, ?ilCertificateSettingsFormRepository $settingsFormFactory=null)
Indicates that a file is missing or not found.
Indicates general problems with the input or output operations.
Definition: IOException.php:28
GUI class to create PDF certificates.
Class ilDatabaseException.
Base class for ILIAS Exception handling.
language handling
Class ilObject Basic functions for all objects.
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...
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
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