ILIAS  release_7 Revision v7.30-3-g800a261c036
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
14abstract class ilCloudPluginGUI
15{
16
20 protected $service = null;
21
22
27 public function __construct($plugin_service_class)
28 {
29 $this->service = $plugin_service_class;
30 }
31
32
36 public function getPluginObject()
37 {
38 return $this->service->getPluginObject();
39 }
40
41
45 public function getPluginHookObject()
46 {
47 return $this->getPluginObject()->getPluginHookObject();
48 }
49
50
51 public function getAdminConfigObject()
52 {
53 return $this->getPluginObject()->getAdminConfigObject();
54 }
55
56
60 public function getService()
61 {
62 return $this->service;
63 }
64
65
69 public function txt($var = "")
70 {
71 return $this->getPluginHookObject()->txt($var);
72 }
73
74
75 public function executeCommand()
76 {
77 global $DIC;
78 $ilCtrl = $DIC['ilCtrl'];
79
80 $cmd = $ilCtrl->getCmd();
81
82 switch ($cmd) {
83 default:
84 $this->$cmd();
85 break;
86 }
87 }
88}
An exception for terminatinating execution or to throw for unit testing.
Class ilCloudPluginGUI.
__construct($plugin_service_class)
global $DIC
Definition: goto.php:24