3 declare(strict_types=1);
46 $ilTabs = $DIC[
'ilTabs'];
48 $this->
lng->loadLanguageModule(
"tstv");
50 $ilTabs->setBackTarget(
51 $this->
lng->txt(
"back"),
52 $this->
ctrl->getLinkTarget($this,
"cancel")
56 $this->tpl->setContent($table->getHTML());
59 public function save(): void
69 $DIC->logger()->root(),
75 $userCertificatePresentation = $userCertificateRepository->fetchActiveCertificateForPresentation(
82 $newObj = $certificateVerificationFileService->
createFile($userCertificatePresentation);
84 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'error_creating_certificate_pdf'));
90 $this->node_id = null;
95 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"msg_failed"));
98 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"select_one"));
105 $file = $this->
object->getFilePath();
111 public function render(
bool $a_return =
false,
string $a_url =
''): string
121 $wsp_id =
$tree->lookupNodeId($this->
object->getId());
122 $caption =
$lng->
txt(
"wsp_type_tstv") .
' "' . $this->
object->getTitle() .
'"';
126 if (!file_exists($this->
object->getFilePath())) {
141 return '<div><a href="' . $a_url .
'">' . $caption .
'</a></div>';
144 return '<div>' . $caption .
' (' .
$message .
')</div>';
159 $ilErr->raiseError($this->
lng->txt(
'permission_denied'),
$ilErr->MESSAGE);
162 public static function _goto(
string $a_target): void
165 $id = explode(
"_", $a_target);
166 $DIC->ctrl()->setParameterByClass(
'ilsharedresourceGUI',
'wsp_id',
$id[0]);
167 $DIC->ctrl()->redirectByClass(
'ilsharedresourceGUI');
177 if (isset($this->request->getQueryParams()[
$key])) {
178 return $this->request->getQueryParams()[
$key];
181 if (isset($this->request->getParsedBody()[
$key])) {
182 return $this->request->getParsedBody()[
$key];
185 return $default ?? null;
downloadFromPortfolioPage(ilPortfolioPage $a_page)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _goto(string $a_target)
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...
New implementation of ilObjectGUI.
getRequestValue(string $key, $default=null)
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...
createFile(ilUserCertificatePresentation $userCertificatePresentation)
putObjectInTree(ilObject $obj, int $parent_node_id=null)
Add object to tree at given position.
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)
render(bool $a_return=false, string $a_url='')
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
afterSave(ilObject $new_object)
Post (successful) object creation hook.
__construct(int $id=0, int $id_type=self::REPOSITORY_NODE_ID, int $parent_node_id=0)
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...
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...