ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilCertificateSettingsExerciseRepository Class Reference
+ Inheritance diagram for ilCertificateSettingsExerciseRepository:
+ Collaboration diagram for ilCertificateSettingsExerciseRepository:

Public Member Functions

 __construct (ilObject $object, string $certificatePath, ilLanguage $language, ilTemplate $template, ilCtrl $controller, ilAccess $access, ilToolbarGUI $toolbar, ilCertificatePlaceholderDescription $placeholderDescriptionObject, ilCertificateSettingsFormRepository $settingsFormFactory=null)
 
 createForm (ilCertificateGUI $certificateGUI, ilCertificate $certificateObject)
 
 save (array $formFields)
 
 fetchFormFieldData (string $content)
 

Private Attributes

 $language
 
 $settingsFromFactory
 
 $object
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilCertificateSettingsExerciseRepository::__construct ( ilObject  $object,
string  $certificatePath,
ilLanguage  $language,
ilTemplate  $template,
ilCtrl  $controller,
ilAccess  $access,
ilToolbarGUI  $toolbar,
ilCertificatePlaceholderDescription  $placeholderDescriptionObject,
ilCertificateSettingsFormRepository  $settingsFormFactory = null 
)
Parameters
ilObject$object
string$certificatePath
ilLanguage$language
ilTemplate$template
ilCtrl$controller
ilAccess$access
ilToolbarGUI$toolbar
ilCertificatePlaceholderDescription$placeholderDescriptionObject
ilCertificateSettingsFormRepository | null$settingsFormFactory

Definition at line 35 of file class.ilCertificateSettingsExerciseRepository.php.

References $language, $object, $template, and ilObject\getId().

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  }
$template
getId()
get object id public
+ Here is the call graph for this function:

Member Function Documentation

◆ createForm()

ilCertificateSettingsExerciseRepository::createForm ( ilCertificateGUI  $certificateGUI,
ilCertificate  $certificateObject 
)
Parameters
ilCertificateGUI$certificateGUI
ilCertificate$certificateObject
Returns
ilPropertyFormGUI
Exceptions
ilException
ilWACException

Implements ilCertificateFormRepository.

Definition at line 74 of file class.ilCertificateSettingsExerciseRepository.php.

References $form.

75  {
76  $form = $this->settingsFromFactory->createForm($certificateGUI, $certificateObject);
77 
78  return $form;
79  }
if(isset($_POST['submit'])) $form

◆ fetchFormFieldData()

ilCertificateSettingsExerciseRepository::fetchFormFieldData ( string  $content)
Parameters
$content
Returns
array|mixed

Implements ilCertificateFormRepository.

Definition at line 92 of file class.ilCertificateSettingsExerciseRepository.php.

93  {
94  $formFields = $this->settingsFromFactory->fetchFormFieldData($content);
95 
96  return $formFields;
97  }

◆ save()

ilCertificateSettingsExerciseRepository::save ( array  $formFields)
Parameters
array$formFields

Implements ilCertificateFormRepository.

Definition at line 84 of file class.ilCertificateSettingsExerciseRepository.php.

85  {
86  }

Field Documentation

◆ $language

ilCertificateSettingsExerciseRepository::$language
private

Definition at line 12 of file class.ilCertificateSettingsExerciseRepository.php.

Referenced by __construct().

◆ $object

ilCertificateSettingsExerciseRepository::$object
private

Definition at line 22 of file class.ilCertificateSettingsExerciseRepository.php.

Referenced by __construct().

◆ $settingsFromFactory

ilCertificateSettingsExerciseRepository::$settingsFromFactory
private

The documentation for this class was generated from the following file: