ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilObjGroupReferenceGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once('./Services/ContainerReference/classes/class.ilContainerReferenceGUI.php');
12{
14 protected $target_type = 'grp';
16 protected $reference_type = 'grpr';
17
25 public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = false)
26 {
27 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
28 }
29
35 public function executeCommand()
36 {
37 parent::executeCommand();
38 }
39
40
49 public function getTabs()
50 {
51 global $ilAccess, $ilHelp;
52
53 $ilHelp->setScreenIdComponent("grpr");
54
55 if($ilAccess->checkAccess('write','',$this->object->getRefId()))
56 {
57 $this->tabs_gui->addTarget("settings",
58 $this->ctrl->getLinkTarget($this, "edit"),
59 array(),
60 "");
61 }
62 if ($ilAccess->checkAccess('edit_permission','',$this->object->getRefId()))
63 {
64 $this->tabs_gui->addTarget("perm_settings",
65 $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"),
66 array("perm","info","owner"), 'ilpermissiongui');
67 }
68 }
69
75 public static function _goto($a_target)
76 {
77 include_once('./Services/ContainerReference/classes/class.ilContainerReference.php');
79
80 include_once('./Modules/Group/classes/class.ilObjGroupGUI.php');
81 ilObjGroupGUI::_goto($target_ref_id);
82 }
83
84 }
An exception for terminatinating execution or to throw for unit testing.
static _lookupTargetRefId($a_obj_id)
Lookup target ref_id.
static _goto($a_target, $a_add="")
goto target group
static _goto($a_target)
Support for goto php.
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=false)
ilObjGroupReferenceGUI constructor.
static _lookupObjId($a_id)