4 include_once
"./Modules/Group/classes/class.ilObjGroupListGUI.php";
45 return ilObject::_getIcon(
79 $this->copy_enabled =
true;
80 $this->static_link_enabled =
false;
81 $this->delete_enabled =
true;
82 $this->cut_enabled =
true;
83 $this->subscribe_enabled =
true;
84 $this->link_enabled =
false;
85 $this->info_screen_enabled =
true;
87 $this->gui_class_name =
"ilobjgroupgui";
89 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDSubstitution.php');
91 if ($this->substitutions->isActive()) {
92 $this->substitutions_enabled =
true;
101 public function initItem($a_ref_id, $a_obj_id,
$type, $a_title =
"", $a_description =
"")
105 $ilAccess = $DIC[
'ilAccess'];
106 $tree = $DIC[
'tree'];
108 $this->reference_ref_id = $a_ref_id;
109 $this->reference_obj_id = $a_obj_id;
112 include_once(
'./Services/ContainerReference/classes/class.ilContainerReference.php');
116 $target_ref_id = current($target_ref_ids);
120 $this->deleted =
$tree->isDeleted($target_ref_id);
125 parent::initItem($target_ref_id, $target_obj_id,
$type, $target_title, $target_description);
128 include_once(
'./Modules/GroupReference/classes/class.ilObjGroupReferenceAccess.php');
131 if ($ilAccess->checkAccess(
'write',
'', $this->reference_ref_id) or
$this->deleted) {
132 $this->info_screen_enabled =
false;
134 $this->info_screen_enabled =
true;
144 $tree = $DIC[
'tree'];
146 $props = parent::getProperties();
149 if ($this->deleted) {
150 $props[] = array(
"alert" =>
true,
"property" =>
$lng->txt(
"status"),
151 "value" =>
$lng->txt(
"reference_deleted"));
154 return $props ? $props : array();
166 case 'editReference':
167 return parent::checkCommandAccess($a_permission, $a_cmd, $this->
getCommandId(),
$a_type, $a_obj_id);
170 switch ($a_permission) {
174 return parent::checkCommandAccess($a_permission, $a_cmd, $this->
getCommandId(),
$a_type, $a_obj_id);
178 return parent::checkCommandAccess($a_permission, $a_cmd, $a_ref_id,
$a_type, $a_obj_id);
196 case 'editReference':
198 $cmd_link =
$ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
199 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
203 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $this->ref_id);
204 $cmd_link =
$ilCtrl->getLinkTargetByClass(
"ilrepositorygui", $a_cmd);
205 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
__construct()
Constructor.
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
initItem($a_ref_id, $a_obj_id, $type, $a_title="", $a_description="")
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
static _lookupTitle($a_obj_id)
Overwitten from base class.
static _lookupDescription($a_id)
lookup object description
static _lookupObjId($a_id)
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
getCommandId()
get command id
getCommandLink($a_cmd)
get command link
insertTimingsCommand()
no activation for links
__construct(Container $dic, ilPlugin $plugin)
static _lookupTargetId($a_obj_id)
lookup target id