19 declare(strict_types=1);
    36         $this->
ctrl->setParameter($this, 
'view', $this->viewSettings->getCurrentView());
    47         $user_table->disablePermissionCheck(
true);
    48         $rows = $user_table->fetchSingleUserRootAssignments($this->
user->getId());
    51         foreach ($rows as $row) {
    53             if (!$this->
isReadable($prg) || !$prg->isActive()) {
    58                 $this->
lng->txt(
'prg_dash_label_minimum') => $row->getPointsRequired(),
    59                 $this->
lng->txt(
'prg_dash_label_gain') => $row->getPointsCurrent(),
    60                 $this->
lng->txt(
'prg_dash_label_status') => $row->getStatus(),
    66                 $properties[$this->
lng->txt(
'prg_dash_label_valid')] = $row->getExpiryDate() ?: $row->getValidity();
    70                     $longest_lasting = $repo_assignment->getLongestValidAssignment($prg->getId(), $this->
user->getId());
    71                     if ($longest_lasting === null
    72                         || $row->getAssignmentId() === $longest_lasting->getId()) {
    73                         $properties[$this->
lng->txt(
'certificate')] = $cert_link;
    77                 $properties[$this->
lng->txt(
'prg_dash_label_finish_until')] = $row->getDeadline();
    85                 $prg->getDescription(),
   105         if (is_null($this->visible_on_pd_mode)) {
   106             $this->visible_on_pd_mode =
   133         if ($cert_validator->isCertificateDownloadable($usr_id, $prg_obj_id)) {
   134             $this->
ctrl->setParameterByClass(
'ilObjStudyProgrammeGUI', 
'ref_id', $prg_ref_id);
   135             $target = $this->
ctrl->getLinkTargetByClass(
"ilObjStudyProgrammeGUI", 
"deliverCertificate");
   136             $this->
ctrl->setParameterByClass(
'ilObjStudyProgrammeGUI', 
'ref_id', null);
   137             $this->
lng->loadLanguageModule(
'certificate');
   138             return $this->renderer->render($this->factory->link()->standard($this->
lng->txt(
'download_certificate'), $target));
 
const SETTING_VISIBLE_ON_PD_ALLWAYS
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
const VIEW_MY_STUDYPROGRAMME
 
const SETTING_VISIBLE_ON_PD_READ
 
string $visible_on_pd_mode
 
Validates if an active certificate is stored in the database and can be downloaded by the user...
 
const SETTING_VISIBLE_ON_PD
 
isReadable(ilObjStudyProgramme $prg)
 
static getInstanceByObjId(int $obj_id)
 
getRemoveMultipleActionText()
 
maybeGetCertificateLink(int $usr_id, int $prg_obj_id, int $prg_ref_id)