19 declare(strict_types=1);
    31     public function init(): void
    33         $this->static_link_enabled = 
true; 
    34         $this->delete_enabled = 
true;
    35         $this->cut_enabled = 
true;
    36         $this->subscribe_enabled = 
false;
    37         $this->link_enabled = 
true;
    38         $this->copy_enabled = 
true;
    39         $this->progress_enabled = 
true;
    40         $this->notice_properties_enabled = 
true;
    41         $this->info_screen_enabled = 
true;
    43         $this->gui_class_name = 
"ilObjLTIConsumerGUI";
    57             $this->tpl->setCurrentBlock(
"check");
    58             $this->tpl->setVariable(
"VAL_ID", $this->
getCommandId());
    59             $this->tpl->parseCurrentBlock();
    62             $this->tpl->setCurrentBlock(
"check_download");
    64                 $this->tpl->setVariable(
"VAL_ID", $this->
getCommandId());
    66                 $this->tpl->setVariable(
"VAL_VISIBILITY", 
"visibility: hidden;\" disabled=\"disabled");
    68             $this->tpl->parseCurrentBlock();
    71             $this->tpl->setCurrentBlock(
'expand');
    74                 $this->
ctrl->setParameter($this->container_obj, 
'expand', -1 * $this->obj_id);
    76                 $this->tpl->setVariable(
'EXP_HREF', $this->
ctrl->getLinkTarget($this->container_obj, 
'view', $this->getUniqueItemId(
true)));
    77                 $this->
ctrl->clearParameters($this->container_obj);
    79                 $this->tpl->setVariable(
'EXP_ALT', $this->
lng->txt(
'collapse'));
    81                 $this->
ctrl->setParameter($this->container_obj, 
'expand', $this->obj_id);
    83                 $this->tpl->setVariable(
'EXP_HREF', $this->
ctrl->getLinkTarget($this->container_obj, 
'view', $this->getUniqueItemId(
true)));
    84                 $this->
ctrl->clearParameters($this->container_obj);
    86                 $this->tpl->setVariable(
'EXP_ALT', $this->
lng->txt(
'expand'));
    89             $this->tpl->parseCurrentBlock();
    95                 $this->tpl->touchBlock(
"i_1");  
    99             if ($this->title_link_disabled || !$this->default_command || (!$this->
getCommandsStatus() && !$this->restrict_to_goto)) {
   101                 $this->tpl->setCurrentBlock(
"icon_link_s");
   103                 if ($this->default_command[
"frame"] != 
"") {
   104                     $this->tpl->setVariable(
"ICON_TAR", 
"target='" . $this->default_command[
"frame"] . 
"'");
   107                 $this->tpl->setVariable(
   109                     $this->default_command[
"link"]
   111                 $this->tpl->parseCurrentBlock();
   112                 $this->tpl->touchBlock(
"icon_link_e");
   115             $this->tpl->setCurrentBlock(
"icon");
   116             if (!$objDefinition->isPlugin($this->getIconImageType())) {
   119                 $this->tpl->setVariable(
"ALT_ICON", 
$lng->
txt(
"icon") . 
" " .
   123             $this->tpl->setVariable(
"SRC_ICON", $this->
getIconHref());
   124             $this->tpl->parseCurrentBlock();
   128         $this->tpl->touchBlock(
"d_" . $cnt);    
   136         if ($object !== null && $object->getProvider() !== null && $object->getProvider()->hasProviderIcon()) {
   137             return $object->getProvider()->getProviderIcon()->getAbsoluteFilePath();
   154             $props[] = array(
"alert" => 
true, 
"property" => $DIC->language()->txt(
"status"),
   155                 "value" => $DIC->language()->txt(
"offline"));
   159             'alert' => 
false, 
'property' => $DIC->language()->txt(
'type'),
   160             'value' => $DIC->language()->txt(
'obj_lti')
   164         if ($validator->isCertificateDownloadable($DIC->user()->getId(), 
$this->obj_id)) {
   165             $DIC->ctrl()->setParameterByClass(ilLTIConsumerSettingsGUI::class, 
'ref_id', $this->ref_id);
   167             $certLink = $DIC->ui()->factory()->link()->standard(
   168                 $DIC->language()->txt(
'download_certificate'),
   169                 $DIC->ctrl()->getLinkTargetByClass(
   170                     [ilObjLTIConsumerGUI::class, ilLTIConsumerSettingsGUI::class],
   176                 'alert' => 
false, 
'property' => $DIC->language()->txt(
'certificate'),
   177                 'value' => $DIC->ui()->renderer()->render($certLink)
   193         $DIC->ctrl()->setParameterByClass(
'ilLTIConsumerSettingsGUI', 
'ref_id', $this->ref_id);
   196             $cmd_link = $DIC->ctrl()->getLinkTargetByClass(
   199                     'ilObjLTIConsumerGUI',
   205             $cmd_link = $DIC->ctrl()->getLinkTargetByClass([
'ilRepositoryGUI', 
'ilObjLTIConsumerGUI'], 
$commands[0]);
 
insertIconsAndCheckboxes()
Insert icons and checkboxes. 
 
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item. 
 
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...
 
getCommandId()
get command id Normally the ref id. 
 
getDownloadCheckboxState()
 
Validates if an active certificate is stored in the database and can be downloaded by the user...
 
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory) 
 
getIconImageType()
Returns the icon image type. 
 
static lookupTxtById(string $plugin_id, string $lang_var)
 
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id 
 
const CMD_DELIVER_CERTIFICATE
 
static _isOffline(int $obj_id)
Type-specific implementation of general status, has to be overwritten if object type does not support...
 
getCommandLink(string $cmd)
 
ilObjectDefinition $obj_definition