56 {
58
60 $objectId = $object->
getId();
61
62 $logger =
$DIC->logger()->cert();
63
67
68 $certificatePath = $pathFactory->create($object);
69
70 switch ($type) {
71 case 'tst':
74
76 $objectId,
77 $certificatePath,
78 false,
83 $placeholderDescriptionObject
84 );
85
87 $deleteAction
88 );
89
90 break;
91 case 'crs':
94
96 $object,
97 $certificatePath,
98 false,
103 $placeholderDescriptionObject
104 );
105
106 break;
107 case 'exc':
110
112 $object,
113 $certificatePath,
114 false,
119 $placeholderDescriptionObject
120 );
121
122 break;
123 case 'sahs':
126
128 $object,
129 $certificatePath,
130 true,
135 $placeholderDescriptionObject
136 );
137
138 break;
139 case 'lti':
142
144 $object,
145 $certificatePath,
146 true,
151 $placeholderDescriptionObject
152 );
153
154 break;
155 case 'cmix':
158
160 $object,
161 $certificatePath,
162 true,
167 $placeholderDescriptionObject
168 );
169
170 break;
171 case 'prg':
175 $object,
176 $certificatePath,
177 true,
182 $placeholderDescriptionObject
183 );
184
185 break;
186 default:
187 throw new ilException(sprintf(
'The type "%s" is currently not defined for certificates', $type));
188 }
189
191 $placeholderDescriptionObject,
192 $placeholderValuesObject,
193 $objectId,
194 $certificatePath,
195 $formFactory,
196 $deleteAction
197 );
198 }
GUI class to create PDF certificates.
Base class for ILIAS Exception handling.