32 {
34
35 $type = $object->getType();
36 $objectId = $object->getId();
37
38 $logger =
$DIC->logger()->cert();
39
43
44 $certificatePath = $pathFactory->create($object);
45
47 case 'tst':
50
52 $objectId,
53 $certificatePath,
54 false,
55 $object,
60 $placeholderDescriptionObject
61 );
62
64 $deleteAction,
66 );
67
68 break;
69 case 'crs':
70 $hasAdditionalElements = true;
71
74
75
77 $object,
78 $certificatePath,
79 false,
84 $placeholderDescriptionObject
85 );
86
87 break;
88 case 'exc':
91
93 $object,
94 $certificatePath,
95 false,
100 $placeholderDescriptionObject
101 );
102
103 break;
104 case 'sahs':
107
109 $object,
110 $certificatePath,
111 true,
116 $placeholderDescriptionObject
117 );
118 break;
119 case 'lti':
122
124 $object,
125 $certificatePath,
126 true,
131 $placeholderDescriptionObject
132 );
133 break;
134 case 'cmix':
137
139 $object,
140 $certificatePath,
141 true,
146 $placeholderDescriptionObject
147 );
148 break;
149 case 'prg':
150 $placeholderDescriptionObject =
152 $placeholderValuesObject =
155 $object,
156 $certificatePath,
157 true,
162 $placeholderDescriptionObject
163 );
164 break;
165 default:
166 throw new ilException(sprintf(
'The type "%s" is currently not defined for certificates',
$type));
167 break;
168 }
169
171 $placeholderDescriptionObject,
172 $placeholderValuesObject,
173 $objectId,
174 $certificatePath,
175 $formFactory,
176 $deleteAction
177 );
178
179 return $gui;
180 }
GUI class to create PDF certificates.
Base class for ILIAS Exception handling.