ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilObjCourseReferenceGUI.php
Go to the documentation of this file.
1 <?php
2 /*
3  +-----------------------------------------------------------------------------+
4  | ILIAS open source |
5  +-----------------------------------------------------------------------------+
6  | Copyright (c) 1998-2006 ILIAS open source, University of Cologne |
7  | |
8  | This program is free software; you can redistribute it and/or |
9  | modify it under the terms of the GNU General Public License |
10  | as published by the Free Software Foundation; either version 2 |
11  | of the License, or (at your option) any later version. |
12  | |
13  | This program is distributed in the hope that it will be useful, |
14  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16  | GNU General Public License for more details. |
17  | |
18  | You should have received a copy of the GNU General Public License |
19  | along with this program; if not, write to the Free Software |
20  | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21  +-----------------------------------------------------------------------------+
22 */
23 
24 include_once('./Services/ContainerReference/classes/class.ilContainerReferenceGUI.php');
37 {
38  protected $target_type = 'crs';
39  protected $reference_type = 'crsr';
40 
46  public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true)
47  {
48  parent::__construct($a_data, $a_id, true, false);
49  }
50 
57  public function executeCommand()
58  {
59  parent::executeCommand();
60  }
61 
62 
69  public function getTabs()
70  {
71  global $ilAccess, $ilHelp;
72 
73  $ilHelp->setScreenIdComponent("crsr");
74 
75  if ($ilAccess->checkAccess('write', '', $this->object->getRefId())) {
76  $this->tabs_gui->addTarget(
77  "settings",
78  $this->ctrl->getLinkTarget($this, "edit"),
79  array(),
80  ""
81  );
82  }
83  if ($ilAccess->checkAccess('edit_permission', '', $this->object->getRefId())) {
84  $this->tabs_gui->addTarget(
85  "perm_settings",
86  $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"),
87  array("perm","info","owner"),
88  'ilpermissiongui'
89  );
90  }
91  }
92 
99  public static function _goto($a_target)
100  {
101  global $ilAccess, $ilErr, $lng;
102 
103  include_once('./Services/ContainerReference/classes/class.ilContainerReference.php');
105 
106  include_once('./Modules/Course/classes/class.ilObjCourseGUI.php');
107  ilObjCourseGUI::_goto($target_ref_id);
108  }
109 }
static _goto($a_target, $a_add="")
goto target course
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
Constructor.
static _lookupObjId($a_id)
Create styles array
The data for the language used.
static _goto($a_target)
Support for goto php.
static _lookupTargetRefId($a_obj_id)
Lookup target ref_id.