18 $this->static_link_enabled =
true;
19 $this->delete_enabled =
true;
20 $this->cut_enabled =
true;
21 $this->subscribe_enabled =
false;
22 $this->link_enabled =
true;
23 $this->copy_enabled =
true;
24 $this->progress_enabled =
true;
25 $this->notice_properties_enabled =
true;
26 $this->info_screen_enabled =
true;
28 $this->gui_class_name =
"ilObjLTIConsumerGUI";
42 $this->tpl->setCurrentBlock(
"check");
43 $this->tpl->setVariable(
"VAL_ID", $this->
getCommandId());
44 $this->tpl->parseCurrentBlock();
47 $this->tpl->setCurrentBlock(
"check_download");
49 $this->tpl->setVariable(
"VAL_ID", $this->
getCommandId());
51 $this->tpl->setVariable(
"VAL_VISIBILITY",
"visibility: hidden;\" disabled=\"disabled");
53 $this->tpl->parseCurrentBlock();
56 $this->tpl->setCurrentBlock(
'expand');
59 $this->ctrl->setParameter($this->container_obj,
'expand', -1 * $this->obj_id);
61 $this->tpl->setVariable(
'EXP_HREF', $this->ctrl->getLinkTarget($this->container_obj,
'view', $this->getUniqueItemId(
true)));
62 $this->ctrl->clearParameters($this->container_obj);
64 $this->tpl->setVariable(
'EXP_ALT', $this->lng->txt(
'collapse'));
66 $this->ctrl->setParameter($this->container_obj,
'expand', $this->obj_id);
68 $this->tpl->setVariable(
'EXP_HREF', $this->ctrl->getLinkTarget($this->container_obj,
'view', $this->getUniqueItemId(
true)));
69 $this->ctrl->clearParameters($this->container_obj);
71 $this->tpl->setVariable(
'EXP_ALT', $this->lng->txt(
'expand'));
74 $this->tpl->parseCurrentBlock();
80 $this->tpl->touchBlock(
"i_1");
84 if ($this->title_link_disabled || !$this->default_command || (!$this->
getCommandsStatus() && !$this->restrict_to_goto)) {
86 $this->tpl->setCurrentBlock(
"icon_link_s");
88 if ($this->default_command[
"frame"] !=
"") {
89 $this->tpl->setVariable(
"ICON_TAR",
"target='" . $this->default_command[
"frame"] .
"'");
92 $this->tpl->setVariable(
94 $this->default_command[
"link"]
96 $this->tpl->parseCurrentBlock();
97 $this->tpl->touchBlock(
"icon_link_e");
100 $this->tpl->setCurrentBlock(
"icon");
101 if (!$objDefinition->isPlugin($this->getIconImageType())) {
104 include_once(
"Services/Component/classes/class.ilPlugin.php");
105 $this->tpl->setVariable(
"ALT_ICON",
$lng->txt(
"icon") .
" " .
109 $this->tpl->setVariable(
"SRC_ICON", $this->
getIconHref());
110 $this->tpl->parseCurrentBlock();
114 $this->tpl->touchBlock(
"d_" . $cnt);
122 if ($object->getProvider()->hasProviderIcon()) {
123 return $object->getProvider()->getProviderIcon()->getAbsoluteFilePath();
126 return ilObject::_getIcon($this->obj_id,
"small", $this->
getIconImageType());
136 $props[] = array(
"alert" =>
true,
"property" => $DIC->language()->txt(
"status"),
137 "value" => $DIC->language()->txt(
"offline"));
141 'alert' =>
false,
'property' => $DIC->language()->txt(
'type'),
142 'value' => $DIC->language()->txt(
'obj_lti')
146 if ($validator->isCertificateDownloadable((
int) $DIC->user()->getId(), (int) $this->obj_id)) {
147 $DIC->ctrl()->setParameterByClass(ilLTIConsumerSettingsGUI::class,
'ref_id', $this->ref_id);
149 $certLink = $DIC->ui()->factory()->link()->standard(
150 $DIC->language()->txt(
'download_certificate'),
151 $DIC->ctrl()->getLinkTargetByClass(
152 [ilObjLTIConsumerGUI::class, ilLTIConsumerSettingsGUI::class],
158 'alert' =>
false,
'property' => $DIC->language()->txt(
'certificate'),
159 'value' => $DIC->ui()->renderer()->render($certLink)
170 $a_cmd = explode(
'::', $a_cmd);
172 if (count($a_cmd) == 2) {
173 $cmd_link = $DIC->ctrl()->getLinkTargetByClass(array(
'ilRepositoryGUI',
'ilObjLTIConsumerGUI', $a_cmd[0]), $a_cmd[1]);
175 $cmd_link = $DIC->ctrl()->getLinkTargetByClass(array(
'ilRepositoryGUI',
'ilObjLTIConsumerGUI'), $a_cmd[0]);
insertIconsAndCheckboxes()
Insert icons and checkboxes.
getIconStatus()
Are icons enabled?
static lookupTxtById($plugin_id, $lang_var)
getCheckboxStatus()
Are checkboxes enabled?
static _isOffline($a_obj_id)
Type-specific implementation of general status, has to be overwritten if object type does not support...
getCommandId()
get command id Normally the ref id.
getDownloadCheckboxState()
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Validates if an active certificate is stored in the database and can be downloaded by the user...
getIconImageType()
Returns the icon image type.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
const CMD_DELIVER_CERTIFICATE
getExpandStatus()
Is expand/collapse enabled.