45 {
47
49 $objectId = $object->
getId();
50
51 $logger =
$DIC->logger()->cert();
52
56
57 $certificatePath = $pathFactory->create($object);
58
60 case 'tst':
63
65 $objectId,
66 $certificatePath,
67 false,
68 $object,
73 $placeholderDescriptionObject
74 );
75
77 $deleteAction,
79 );
80
81 break;
82 case 'crs':
83 $hasAdditionalElements = true;
84
87
89 $object,
90 $certificatePath,
91 false,
96 $placeholderDescriptionObject
97 );
98
99 break;
100 case 'exc':
103
105 $object,
106 $certificatePath,
107 false,
112 $placeholderDescriptionObject
113 );
114
115 break;
116 case 'sahs':
119
121 $object,
122 $certificatePath,
123 true,
128 $placeholderDescriptionObject
129 );
130 break;
131 case 'lti':
134
136 $object,
137 $certificatePath,
138 true,
143 $placeholderDescriptionObject
144 );
145 break;
146 case 'cmix':
149
151 $object,
152 $certificatePath,
153 true,
158 $placeholderDescriptionObject
159 );
160 break;
161 case 'prg':
162 $placeholderDescriptionObject =
164 $placeholderValuesObject =
167 $object,
168 $certificatePath,
169 false,
174 $placeholderDescriptionObject
175 );
176 break;
177 default:
178 throw new ilException(sprintf(
'The type "%s" is currently not defined for certificates',
$type));
179 }
180
182 $placeholderDescriptionObject,
183 $placeholderValuesObject,
184 $objectId,
185 $certificatePath,
186 $formFactory,
187 $deleteAction
188 );
189 }
GUI class to create PDF certificates.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...