ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilExternalFeedHandlerGUI.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
36{
40 protected $ctrl;
41
45 protected $lng;
46
50 protected $access;
51
55 protected $tpl;
56
57 public function __construct()
58 {
59 global $DIC;
60
61 $this->lng = $DIC->language();
62 $this->access = $DIC->access();
63 $this->tpl = $DIC["tpl"];
64 $ilCtrl = $DIC->ctrl();
65
66 // initialisation stuff
67 $this->ctrl = $ilCtrl;
68 }
69
73 public function executeCommand()
74 {
76 $ilAccess = $this->access;
78
79 $cmd = $this->ctrl->getCmd();
80 $next_class = $this->ctrl->getNextClass($this);
81 if ($next_class == "") {
82 $this->ctrl->setCmdClass("ilobjexternalfeedgui");
83 $next_class = $this->ctrl->getNextClass($this);
84 }
85
86 switch ($next_class) {
87 case 'ilobjexternalfeedgui':
88 require_once "./Modules/ExternalFeed/classes/class.ilObjExternalFeedGUI.php";
89 $ef_gui = new ilObjExternalFeedGUI("", (int) $_GET["ref_id"], true, false);
90 $this->ctrl->forwardCommand($mc_gui);
91 break;
92 }
93
94 $tpl->show();
95 }
96}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Handles user interface for external feeds.
Class ilObjExternalFeedGUI.
global $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7