ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
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 
4 include_once "./Services/Repository/classes/class.ilObjectPluginListGUI.php";
5 
15 {
19  public function init()
20  {
21  global $lng;
22 
23  $this->copy_enabled = false;
24  $this->delete_enabled = true;
25  $this->cut_enabled = false;
26  $this->subscribe_enabled = true;
27  $this->link_enabled = false;
28  $this->payment_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 $lng;
47 
48  $props = array();
49  include_once('./Modules/Cloud/classes/class.ilObjCloudAccess.php');
50  if (!ilObjCloudAccess::checkAuthStatus($this->obj_id))
51  {
52  $props[] = array("alert" => true, "property" => $lng->txt("status"),
53  "value" => $lng->txt("cld_not_authenticated_offline"));
54  }
55  else if (!ilObjCloudAccess::checkOnline($this->obj_id))
56  {
57  $props[] = array("alert" => true, "property" => $lng->txt("status"),
58  "value" => $lng->txt("offline"));
59  }
60 
61  return $props;
62  }
63 }
64 ?>
Class ilObjCloudListGUI.
Class ilObjectListGUI.
global $lng
Definition: privfeed.php:40