4 include_once
"./Modules/Group/classes/class.ilObjGroupListGUI.php";
28 parent::__construct();
66 $this->copy_enabled =
false;
67 $this->static_link_enabled =
false;
68 $this->delete_enabled =
true;
69 $this->cut_enabled =
true;
70 $this->subscribe_enabled =
true;
71 $this->link_enabled =
false;
72 $this->info_screen_enabled =
true;
74 $this->gui_class_name =
"ilobjgroupgui";
76 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDSubstitution.php');
78 if($this->substitutions->isActive())
80 $this->substitutions_enabled =
true;
95 function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
99 $this->reference_ref_id = $a_ref_id;
100 $this->reference_obj_id = $a_obj_id;
103 include_once(
'./Services/ContainerReference/classes/class.ilContainerReference.php');
107 $target_ref_id = current($target_ref_ids);
111 $this->deleted = $tree->isDeleted($target_ref_id);
113 $ilBench->start(
"ilObjGroupListGUI",
"1000_checkAllConditions");
115 $ilBench->stop(
"ilObjGroupListGUI",
"1000_checkAllConditions");
118 parent::initItem($target_ref_id, $target_obj_id,$target_title,$target_description);
121 include_once(
'./Modules/GroupReference/classes/class.ilObjGroupReferenceAccess.php');
124 if($ilAccess->checkAccess(
'write',
'',$this->reference_ref_id)
or $this->deleted)
126 $this->info_screen_enabled =
false;
130 $this->info_screen_enabled =
true;
138 $props = parent::getProperties();
143 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
144 "value" => $lng->txt(
"reference_deleted"));
147 return $props ? $props :
array();
160 case 'editReference':
161 return parent::checkCommandAccess($a_permission, $a_cmd, $this->
getCommandId(),
$a_type, $a_obj_id);
164 switch($a_permission)
169 return parent::checkCommandAccess($a_permission, $a_cmd, $this->
getCommandId(),
$a_type, $a_obj_id);
173 return parent::checkCommandAccess($a_permission, $a_cmd, $a_ref_id,
$a_type, $a_obj_id);
190 case 'editReference':
191 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->
getCommandId());
192 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
193 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
197 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
198 $cmd_link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
199 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
__construct()
Constructor.
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
static _getAllReferences($a_id)
get all reference ids of object
static _getInstanceByObjectType($a_type)
Singleton: use this method to get an instance.
static _getCommands()
get commands
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item Group reference inits the group item
static _lookupTitle($a_obj_id)
Overwitten from base class.
static _lookupDescription($a_id)
lookup object description
static _checkAllConditionsOfTarget($a_target_ref_id, $a_target_id, $a_target_type="", $a_usr_id=0)
checks wether all conditions of a target object are fulfilled
Create styles array
The data for the language used.
getCommandId()
get command id
getCommandLink($a_cmd)
get command link
insertTimingsCommand()
no activation for links
static _lookupTargetId($a_obj_id)
lookup target id