19declare(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);
80 }
catch (\Exception $exception) {
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");
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
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
redirectByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
save()
create new instance and save it
downloadFromPortfolioPage(ilPortfolioPage $a_page)
create()
List all tests in which current user participated.
getType()
Functions that must be overwritten.
render(bool $a_return=false, bool $a_url=false)
Render content.
getRequestValue(string $key, mixed $default=null)
New implementation of ilObjectGUI.
putObjectInTree(ilObject $obj, ?int $parent_node_id=null)
Add object to tree at given position.
afterSave(ilObject $new_object)
Post (successful) object creation hook.
static isInPortfolioPage(ilPortfolioPage $a_page, string $a_type, int $a_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...