ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilObjCategoryReferenceGUI.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
24include_once('./Services/ContainerReference/classes/class.ilContainerReferenceGUI.php');
35{
39 protected $help;
40
41 protected $target_type = 'cat';
42 protected $reference_type = 'catr';
43
49 public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true)
50 {
51 global $DIC;
52
53 $this->access = $DIC->access();
54 $this->help = $DIC["ilHelp"];
55 parent::__construct($a_data, $a_id, true, false);
56 }
57
64 public function executeCommand()
65 {
66 parent::executeCommand();
67 }
68
75 public static function _goto($a_target)
76 {
77 global $DIC;
78
79 $ilAccess = $DIC->access();
80 $ilErr = $DIC["ilErr"];
81 $lng = $DIC->language();
82
83 include_once('./Services/ContainerReference/classes/class.ilContainerReference.php');
85
86 include_once('./Modules/Category/classes/class.ilObjCategoryGUI.php');
87 ilObjCategoryGUI::_goto($target_ref_id);
88 }
89}
An exception for terminatinating execution or to throw for unit testing.
static _lookupTargetRefId($a_obj_id)
Lookup target ref_id.
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
Constructor.
static _goto($a_target)
Support for goto php.
static _lookupObjId($a_id)
help()
Definition: help.php:2
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$DIC
Definition: xapitoken.php:46