85     public function init(): void
    87         $this->copy_enabled = 
true;
    88         $this->static_link_enabled = 
false;
    89         $this->delete_enabled = 
true;
    90         $this->cut_enabled = 
true;
    91         $this->subscribe_enabled = 
true;
    92         $this->link_enabled = 
false;
    93         $this->info_screen_enabled = 
true;
    95         $this->gui_class_name = 
"ilobjcoursegui";
    98         if ($this->substitutions->isActive()) {
    99             $this->substitutions_enabled = 
true;
   117         $ilAccess = $DIC->access();
   118         $tree = $DIC->repositoryTree();
   120         $this->reference_ref_id = 
$ref_id;
   121         $this->reference_obj_id = 
$obj_id;
   127         $target_ref_id = current($target_ref_ids);
   131         $this->deleted = !$target_ref_id || 
$tree->
isDeleted($target_ref_id);
   133         parent::initItem((
int) $target_ref_id, $target_obj_id, $type, $target_title, $target_description);
   138         if ($ilAccess->checkAccess(
'write', 
'', $this->reference_ref_id) or 
$this->deleted) {
   139             $this->info_screen_enabled = 
false;
   141             $this->info_screen_enabled = 
true;
   149         $props = parent::getProperties();
   152         if ($this->deleted) {
   153             $props[] = array(
"alert" => 
true, 
"property" => $lng->txt(
"status"),
   154                 "value" => $lng->txt(
"reference_deleted"));
   157         return $props ? $props : array();
   174             case 'editReference':
   175                 return parent::checkCommandAccess($permission, $cmd, $this->
getCommandId(), $type, 
$obj_id);
   178         switch ($permission) {
   182                 return parent::checkCommandAccess($permission, $cmd, $this->
getCommandId(), $type, 
$obj_id);
   186                 return parent::checkCommandAccess($permission, $cmd, $ref_id, $type, 
$obj_id);
   201             case 'editReference':
   202                 $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", $this->
getCommandId());
   203                 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $cmd);
   204                 $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", 
$_GET[
"ref_id"] ?? null);
   208                 $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", $this->ref_id);
   209                 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $cmd);
   210                 $ilCtrl->setParameterByClass(
"ilrepositorygui", 
"ref_id", 
$_GET[
"ref_id"] ?? null);
 
__construct()
Constructor. 
 
static _lookupTitle(int $obj_id)
 
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item. 
 
static _getAllReferences(int $id)
get all reference ids for object ID 
 
isDeleted(int $a_node_id)
This is a wrapper for isSaved() with a more useful name. 
 
insertTimingsCommand()
no activation for links 
 
getCommandId()
get command id 
 
static _lookupObjId(int $ref_id)
 
initItem(int $ref_id, int $obj_id, string $type, string $title="", string $description="")
 
static _getCommands()
get commands 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _lookupDescription(int $obj_id)
 
getCommandLink(string $cmd)
get command link 
 
__construct(Container $dic, ilPlugin $plugin)
 
static _lookupTargetId(int $a_obj_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
checkCommandAccess(string $permission, string $cmd, int $ref_id, string $type, ?int $obj_id=null)
 
static _getInstanceByObjectType(string $a_type)