ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 default:
78 $this->$cmd();
79 break;
80 }
81 }
82}
An exception for terminatinating execution or to throw for unit testing.
Class ilCloudPluginGUI.
__construct($plugin_service_class)
global $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7