3 declare(strict_types=0);
35 public function __construct(
int $a_id = 0,
int $a_id_type = self::REPOSITORY_NODE_ID,
int $a_parent_node_id = 0)
39 $this->error = $DIC->error();
40 $this->
tabs = $DIC->tabs();
52 $this->
lng->loadLanguageModule(
"crsv");
54 $this->
tabs->setBackTarget(
55 $this->
lng->txt(
"back"),
56 $this->
ctrl->getLinkTarget($this,
"cancel")
60 $this->tpl->setContent($table->getHTML());
63 public function save(): void
70 $this->dic->language(),
71 $this->dic->database(),
72 $this->dic->logger()->root(),
78 $userCertificatePresentation = $userCertificateRepository->fetchActiveCertificateForPresentation(
85 $newObj = $certificateVerificationFileService->
createFile($userCertificatePresentation);
87 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'error_creating_certificate_pdf'));
94 $this->node_id = null;
99 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"msg_failed"));
102 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"select_one"));
110 $file = $this->
object->getFilePath();
116 public function render(
bool $a_return =
false,
string $a_url =
''): string
119 $lng = $this->dic->language();
125 $wsp_id =
$tree->lookupNodeId($this->
object->getId());
127 $caption =
$lng->
txt(
"wsp_type_crsv") .
' "' . $this->
object->getTitle() .
'"';
131 if (!file_exists($this->
object->getFilePath())) {
146 return '<div><a href="' . $a_url .
'">' . $caption .
'</a></div>';
149 return '<div>' . $caption .
' (' .
$message .
')</div>';
160 $this->error->raiseError($this->
lng->txt(
'permission_denied'), $this->error->MESSAGE);
163 public static function _goto(
string $a_target): void
167 $ctrl = $DIC->ctrl();
169 $id = explode(
"_", $a_target);
172 ilSharedResourceGUI::class,
185 if (isset($this->request->getQueryParams()[
$key])) {
186 return $this->request->getQueryParams()[
$key];
189 if (isset($this->request->getParsedBody()[
$key])) {
190 return $this->request->getParsedBody()[
$key];
193 return $default ?? null;
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...
__construct(int $a_id=0, int $a_id_type=self::REPOSITORY_NODE_ID, int $a_parent_node_id=0)
New implementation of ilObjectGUI.
List all completed course for current user.
static isInPortfolioPage(ilPortfolioPage $a_page, string $a_type, int $a_id)
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...
setParameterByClass(string $a_class, string $a_parameter, $a_value)
createFile(ilUserCertificatePresentation $userCertificatePresentation)
putObjectInTree(ilObject $obj, int $parent_node_id=null)
Add object to tree at given position.
Customizing of pimple-DIC for ILIAS.
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)
GUI class for course verification.
getRequestValue(string $key, $default=null)
static _goto(string $a_target)
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.
downloadFromPortfolioPage(ilPortfolioPage $a_page)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Error Handling & global info handling uses PEAR error class.
__construct(Container $dic, ilPlugin $plugin)