19 declare(strict_types=1);
44 $this->
lng->loadLanguageModule(
"cmxv");
46 $ilTabs->setBackTarget(
47 $this->
lng->txt(
"back"),
48 $this->
ctrl->getLinkTarget($this,
"cancel")
51 $this->tpl->setContent($table->getHTML());
57 public function save(): void
66 $DIC->logger()->root(),
72 $userCertificatePresentation = $userCertificateRepository->fetchActiveCertificateForPresentation(
73 $DIC->user()->getId(),
79 $newObj = $certificateVerificationFileService->createFile($userCertificatePresentation);
81 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'error_creating_certificate_pdf'));
85 if ($newObj !==
null) {
87 $this->node_id =
null;
92 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"msg_failed"));
95 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"select_one"));
103 $file = $this->
object->getFilePath();
113 public function render(
bool $a_return =
false,
bool $a_url =
false): string
115 global $ilUser,
$lng;
122 $wsp_id =
$tree->lookupNodeId($this->
object->getId());
124 $caption = $lng->txt(
"wsp_type_cmxv") .
' "' . $this->
object->getTitle() .
'"';
128 if (!file_exists($this->
object->getFilePath())) {
130 $message = $lng->txt(
"url_not_found");
135 $message = $lng->txt(
"permission_denied");
143 return '<div><a href="' . $a_url .
'">' . $caption .
'</a></div>';
145 return '<div>' . $caption .
' (' .
$message .
')</div>';
157 $ilErr->raiseError($this->
lng->txt(
'permission_denied'), $ilErr->MESSAGE);
160 public static function _goto($a_target): void
163 $ctrl = $DIC->ctrl();
164 $id = explode(
"_", $a_target);
167 "ilsharedresourceGUI",
181 if (isset($this->request->getQueryParams()[$key])) {
182 return $this->request->getQueryParams()[$key];
185 if (isset($this->request->getParsedBody()[$key])) {
186 return $this->request->getParsedBody()[$key];
189 return $default ??
null;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
render(bool $a_return=false, bool $a_url=false)
Render content.
New implementation of ilObjectGUI.
static isInPortfolioPage(ilPortfolioPage $a_page, string $a_type, int $a_id)
getRequestValue(string $key, mixed $default=null)
downloadFromPortfolioPage(ilPortfolioPage $a_page)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setParameterByClass(string $a_class, string $a_parameter, $a_value)
redirectByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
putObjectInTree(ilObject $obj, ?int $parent_node_id=null)
Add object to tree at given position.
afterSave(ilObject $new_object)
Post (successful) object creation hook.
create()
List all tests in which current user participated.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
save()
create new instance and save it