19 declare(strict_types=1);
    42         $this->db = $DIC[
'ilDB'];
    43         $this->
logger = $DIC[
"ilLoggerFactory"];
    55         $this->
lng->loadLanguageModule(
"tstv");
    57         $this->tabs_gui->setBackTarget(
    58             $this->
lng->txt(
"back"),
    59             $this->
ctrl->getLinkTarget($this, 
"cancel")
    63         $this->tpl->setContent($table->getHTML());
    66     public function save(): void
    79             $userCertificatePresentation = $userCertificateRepository->fetchActiveCertificateForPresentation(
    80                 (
int) $this->
user->getId(),
    86                 $newObj = $certificateVerificationFileService->
createFile($userCertificatePresentation);
    88                 $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"));
   109         $file = $this->
object->getFilePath();
   115     public function render(
bool $a_return = 
false, 
string $a_url = 
''): string
   121             $wsp_id = 
$tree->lookupNodeId($this->
object->getId());
   122             $caption = $this->
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>';
   156         $this->error->raiseError($this->
lng->txt(
'permission_denied'), 
$ilErr->MESSAGE);
   159     public static function _goto(
string $a_target): void
   162         $id = explode(
"_", $a_target);
   163         $DIC->ctrl()->setParameterByClass(
'ilsharedresourceGUI', 
'wsp_id', 
$id[0]);
   164         $DIC->ctrl()->redirectByClass(
'ilsharedresourceGUI');
   174         if (isset($this->request->getQueryParams()[
$key])) {
   175             return $this->request->getQueryParams()[
$key];
   178         if (isset($this->request->getParsedBody()[
$key])) {
   179             return $this->request->getParsedBody()[
$key];
   182         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)
 
New implementation of ilObjectGUI. 
 
getRequestValue(string $key, $default=null)
 
Provides fluid interface to LoggingServices. 
 
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='')
 
__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...
 
afterSave(ilObject $new_object)
Post (successful) object creation hook. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
GUI class for test verification. 
 
List all completed tests for current user.