3 declare(strict_types=1);
33 $this->request_wrapper = $DIC->http()->wrapper()->query();
68 public function init(): void
70 $this->static_link_enabled =
false;
71 $this->delete_enabled =
true;
72 $this->cut_enabled =
false;
73 $this->info_screen_enabled =
true;
74 $this->copy_enabled =
true;
75 $this->subscribe_enabled =
false;
76 $this->link_enabled =
false;
79 $this->gui_class_name =
"ilobjstudyprogrammegui";
82 if ($this->substitutions->isActive()) {
83 $this->substitutions_enabled =
true;
104 $target_ref_id = current($target_ref_ids);
108 $this->deleted = $this->tree->isDeleted($target_ref_id);
112 parent::initItem($target_ref_id, $target_obj_id,
'prg', $target_title, $target_description);
117 $this->info_screen_enabled =
false;
119 $this->info_screen_enabled =
true;
125 $props = parent::getProperties();
128 if ($this->deleted) {
129 $props[] = array(
"alert" =>
true,
"property" => $this->
lng->txt(
"status"),
130 "value" => $this->
lng->txt(
"reference_deleted"));
133 return $props ?: array();
145 case 'editReference':
146 return parent::checkCommandAccess($permission, $cmd, $this->
getCommandId(), $type,
$obj_id);
149 return parent::checkCommandAccess($permission, $cmd, $this->
getCommandId(),
'prgr', null);
161 $ref_id = $this->request_wrapper->retrieve(
"ref_id", $this->
refinery->kindlyTo()->int());
163 case 'editReference':
164 $this->
ctrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->
getCommandId());
165 $cmd_link = $this->
ctrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
166 $this->
ctrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$ref_id);
170 $this->
ctrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
171 $cmd_link = $this->
ctrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
172 $this->
ctrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$ref_id);
181 string $a_description,
182 bool $a_use_asynch =
false,
183 bool $a_get_asynch_commands =
false,
184 string $a_asynch_url =
"",
185 int $a_context = self::CONTEXT_REPOSITORY
190 $assignments = $prg->getAssignments();
203 $a_get_asynch_commands,
static _lookupTitle(int $obj_id)
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
setAdditionalInformation(?string $val)
initItem(int $ref_id, int $obj_id, string $type, string $title="", string $description="")
initialize new item Group reference inits the group item
static _getAllReferences(int $id)
get all reference ids for object ID
ILIAS HTTP Wrapper RequestWrapper $request_wrapper
getCommandLink($a_cmd)
get command link
static _lookupObjId(int $ref_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getCommands()
get commands
insertTimingsCommand()
no activation for links
getListItemHTML(int $ref_id, int $obj_id, string $title, string $description, bool $use_async=false, bool $get_async_commands=false, string $async_url="")
Get all item information (title, commands, description) in HTML.
static _lookupDescription(int $obj_id)
static _checkAllConditionsOfTarget(int $a_target_ref_id, int $a_target_id, string $a_target_type="", int $a_usr_id=0)
checks wether all conditions of a target object are fulfilled
checkCommandAccess(string $permission, string $cmd, int $ref_id, string $type, ?int $obj_id=null)
getListItemHTML(int $a_ref_id, int $a_obj_id, string $a_title, string $a_description, bool $a_use_asynch=false, bool $a_get_asynch_commands=false, string $a_asynch_url="", int $a_context=self::CONTEXT_REPOSITORY)
__construct(Container $dic, ilPlugin $plugin)
ILIAS Refinery Factory $refinery
enableCheckbox(bool $status)
static _lookupTargetId(int $a_obj_id)
static _getInstanceByObjectType(string $a_type)