ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilObjCloudListGUI.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 "./Services/Repository/classes/class.ilObjectPluginListGUI.php";
5
15{
19 public function init()
20 {
21 global $DIC;
22 $lng = $DIC['lng'];
23
24 $this->copy_enabled = false;
25 $this->delete_enabled = true;
26 $this->cut_enabled = false;
27 $this->subscribe_enabled = true;
28 $this->link_enabled = false;
29 $this->info_screen_enabled = true;
30 $this->timings_enabled = true;
31 $this->type = "cld";
32 $this->gui_class_name = "ilobjcloudgui";
33
34 // general commands array
35 include_once('./Modules/Cloud/classes/class.ilObjCloudAccess.php');
36 $this->commands = ilObjCloudAccess::_getCommands();
37 $lng->loadLanguageModule("cld");
38 }
39
40
44 function getProperties()
45 {
46 global $DIC;
47 $lng = $DIC['lng'];
48
49 $props = array();
50 include_once('./Modules/Cloud/classes/class.ilObjCloudAccess.php');
51 if (!ilObjCloudAccess::checkAuthStatus($this->obj_id))
52 {
53 $props[] = array("alert" => true, "property" => $lng->txt("status"),
54 "value" => $lng->txt("cld_not_authenticated_offline"));
55 }
56 else if (!ilObjCloudAccess::checkOnline($this->obj_id))
57 {
58 $props[] = array("alert" => true, "property" => $lng->txt("status"),
59 "value" => $lng->txt("offline"));
60 }
61
62 return $props;
63 }
64}
65?>
An exception for terminatinating execution or to throw for unit testing.
static _getCommands()
get commands
Class ilObjCloudListGUI.
Class ilObjectListGUI.
global $lng
Definition: privfeed.php:17
global $DIC