19 declare(strict_types=1);
32 public function init(): void
36 $this->static_link_enabled =
true;
37 $this->delete_enabled =
true;
38 $this->cut_enabled =
true;
39 $this->subscribe_enabled =
false;
40 $this->link_enabled =
true;
41 $this->copy_enabled =
true;
42 $this->progress_enabled =
true;
43 $this->notice_properties_enabled =
true;
44 $this->info_screen_enabled =
true;
46 $this->gui_class_name =
"ilObjCmiXapiGUI";
50 $DIC->language()->loadLanguageModule(
'cmix');
63 $props[] = array(
"alert" =>
true,
"property" => $DIC->language()->txt(
"status"),
64 "value" => $DIC->language()->txt(
"offline"));
68 'alert' =>
false,
'property' => $DIC->language()->txt(
'type'),
69 'value' => $DIC->language()->txt(
'obj_cmix')
73 if ($validator->isCertificateDownloadable((
int) $DIC->user()->getId(),
$this->obj_id)) {
74 $DIC->ctrl()->setParameterByClass(ilCmiXapiSettingsGUI::class,
'ref_id', $this->ref_id);
76 $certLink = $DIC->ui()->factory()->link()->standard(
77 $DIC->language()->txt(
'download_certificate'),
78 $DIC->ctrl()->getLinkTargetByClass(
79 [ilObjCmiXapiGUI::class, ilCmiXapiSettingsGUI::class],
85 'alert' =>
false,
'property' => $DIC->language()->txt(
'certificate'),
86 'value' => $DIC->ui()->renderer()->render($certLink)
97 $cmd = explode(
'::', $cmd);
99 if (count($cmd) == 2) {
100 $cmd_link = $ilCtrl->getLinkTargetByClass(array(
'ilRepositoryGUI',
'ilObjCmiXapiGUI', $cmd[0]), $cmd[1]);
102 $cmd_link = $ilCtrl->getLinkTargetByClass(array(
'ilRepositoryGUI',
'ilObjCmiXapiGUI'), $cmd[0]);
const CMD_DELIVER_CERTIFICATE
Validates if an active certificate is stored in the database and can be downloaded by the user...
static _isOffline(int $obj_id)
Type-specific implementation of general status, has to be overwritten if object type does not support...
getCommandLink(string $cmd)