ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilCertificateSettingsTestFormRepository.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
8 {
13 
17  private $language;
18 
22  private $testObject;
23 
36  public function __construct(
37  int $objectId,
38  string $certificatePath,
39  bool $hasAdditionalElements,
42  ilCtrl $controller,
43  ilAccess $access,
44  ilToolbarGUI $toolbar,
45  ilCertificatePlaceholderDescription $placeholderDescriptionObject,
46  ilCertificateSettingsFormRepository $settingsFormRepository = null
47  ) {
48  $this->testObject = $testObject;
49  $this->language = $language;
50 
51  if (null === $settingsFormRepository) {
52  $settingsFormRepository = new ilCertificateSettingsFormRepository(
53  $objectId,
54  $certificatePath,
55  $hasAdditionalElements,
56  $language,
57  $controller,
58  $access,
59  $toolbar,
60  $placeholderDescriptionObject
61  );
62  }
63  $this->settingsFromFactory = $settingsFormRepository;
64  }
65 
78  public function createForm(ilCertificateGUI $certificateGUI)
79  {
80  $form = $this->settingsFromFactory->createForm($certificateGUI);
81 
82  return $form;
83  }
84 
88  public function save(array $formFields)
89  {
90  }
91 
96  public function fetchFormFieldData(string $content)
97  {
98  $formFields = $this->settingsFromFactory->fetchFormFieldData($content);
99 
100  return $formFields;
101  }
102 }
This class provides processing control methods.
Class ilAccessHandler.
GUI class to create PDF certificates.
__construct(int $objectId, string $certificatePath, bool $hasAdditionalElements, ilObjTest $testObject, ilLanguage $language, ilCtrl $controller, ilAccess $access, ilToolbarGUI $toolbar, ilCertificatePlaceholderDescription $placeholderDescriptionObject, ilCertificateSettingsFormRepository $settingsFormRepository=null)
language handling
language()
Definition: language.php:2