ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilCertificateSettingsExerciseRepository.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 {
12  private $language;
13 
18 
22  private $object;
23 
35  public function __construct(
37  string $certificatePath,
40  ilCtrl $controller,
41  ilAccess $access,
42  ilToolbarGUI $toolbar,
43  ilCertificatePlaceholderDescription $placeholderDescriptionObject,
44  ilCertificateSettingsFormRepository $settingsFormFactory = null
45  ) {
46  $this->object = $object;
47  $this->language = $language;
48 
49  if (null === $settingsFormFactory) {
50  $settingsFormFactory = new ilCertificateSettingsFormRepository(
51  $object->getId(),
52  $certificatePath,
53  $language,
54  $template,
55  $controller,
56  $access,
57  $toolbar,
58  $placeholderDescriptionObject
59  );
60  }
61 
62  $this->settingsFromFactory = $settingsFormFactory;
63  }
64 
74  public function createForm(ilCertificateGUI $certificateGUI, ilCertificate $certificateObject)
75  {
76  $form = $this->settingsFromFactory->createForm($certificateGUI, $certificateObject);
77 
78  return $form;
79  }
80 
84  public function save(array $formFields)
85  {
86  }
87 
92  public function fetchFormFieldData(string $content)
93  {
94  $formFields = $this->settingsFromFactory->fetchFormFieldData($content);
95 
96  return $formFields;
97  }
98 }
This class provides processing control methods.
createForm(ilCertificateGUI $certificateGUI, ilCertificate $certificateObject)
__construct(ilObject $object, string $certificatePath, ilLanguage $language, ilTemplate $template, ilCtrl $controller, ilAccess $access, ilToolbarGUI $toolbar, ilCertificatePlaceholderDescription $placeholderDescriptionObject, ilCertificateSettingsFormRepository $settingsFormFactory=null)
$template
Class ilAccessHandler.
if(isset($_POST['submit'])) $form
getId()
get object id public
special template class to simplify handling of ITX/PEAR
GUI class to create PDF certificates.
Create PDF certificates.
language handling