19declare(strict_types=1);
32 $this->db =
$DIC->database();
40 $query =
"SELECT organization FROM " . $this->db->quoteIdentifier(
43 " WHERE obj_id = " . $this->db->quote($a_obj_id,
'integer') .
" ";
44 $res = $this->db->query($query);
46 return $row->organization ??
'';
53 $this->
ctrl->setReturnByClass(
64 $shy_modal = $consent_gui->getTitleLink();
65 if ($shy_modal ===
'') {
66 parent::insertTitle();
70 $this->tpl->setCurrentBlock(
"item_title");
71 $this->tpl->setVariable(
"TXT_TITLE", $consent_gui->getTitleLink());
72 $this->tpl->parseCurrentBlock();
88 if ($consent_gui->hasConsented()) {
92 $this->
ctrl->setReturnByClass(
98 return $consent_gui->addConsentModalToCard($card);
105 $classname = $this->getGUIClassname();
107 $this->
user->getId(),
111 $command = parent::createDefaultCommand($command);
112 if ($consent_gui->hasConsented()) {
115 $command[
'link'] =
'';
116 $command[
'frame'] =
'';
122 $classname = $this->obj_definition->getClassName($this->type);
123 return 'ilObj' . $classname .
'GUI';
createDefaultCommand(array $command)
Get default command link Overwritten for e.g categories,courses => they return a goto link If search ...
getAsCard(int $ref_id, int $obj_id, string $type, string $title, string $description)
Get card object.
_lookupOrganization(string $table, int $a_obj_id)
lookup organization
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc