ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilCloudPluginGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("class.ilCloudConnector.php");
5
16abstract class ilCloudPluginGUI
17{
21 protected $service = null;
22
27 public function __construct($plugin_service_class)
28 {
29 $this->service = $plugin_service_class;
30 }
31
35 public function getPluginObject()
36 {
37 return $this->service->getPluginObject();
38 }
39
43 public function getPluginHookObject()
44 {
45 return $this->getPluginObject()->getPluginHookObject();
46 }
47
48 public function getAdminConfigObject()
49 {
50 return $this->getPluginObject()->getAdminConfigObject();
51 }
52
56 public function getService()
57 {
58 return $this->service;
59 }
60
64 public function txt($var = "")
65 {
66 return $this->getPluginHookObject()->txt($var);
67 }
68
69 public function executeCommand()
70 {
71 global $DIC;
72 $ilCtrl = $DIC['ilCtrl'];
73
74 $cmd = $ilCtrl->getCmd();
75
76 switch ($cmd)
77 {
78 default:
79 $this->$cmd();
80 break;
81 }
82 }
83}
84
85?>
An exception for terminatinating execution or to throw for unit testing.
Class ilCloudPluginGUI.
__construct($plugin_service_class)
global $ilCtrl
Definition: ilias.php:18
$cmd
Definition: sahs_server.php:35
global $DIC