ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilCloudHookPlugin.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/Component/classes/class.ilPlugin.php");
5 
16 abstract class ilCloudHookPlugin extends ilPlugin
17 {
18 
24  final public function getComponentType()
25  {
26  return IL_COMP_MODULE;
27  }
28 
29 
35  final public function getComponentName()
36  {
37  return "Cloud";
38  }
39 
40 
46  final public function getSlot()
47  {
48  return "CloudHook";
49  }
50 
51 
57  final public function getSlotId()
58  {
59  return "cldh";
60  }
61 
62 
66  final protected function slotInit()
67  {
68  // nothing to do here
69  }
70 
71 
72  public function getPluginTablePrefix()
73  {
74  $id = $this->getId();
75  if (!$id) {
76  $rec = ilPlugin::getPluginRecord($this->getComponentType(), $this->getComponentName(), $this->getSlotId(), $this->getPluginName());
77  $id = $rec['plugin_id'];
78  }
79 
80  return $this->getSlotObject()->getPrefix() . "_" . $id;
81  }
82 
83 
84  public function getPluginTableName()
85  {
86  return $this->getPluginTablePrefix() . "_props";
87  }
88 
89 
90  public function getPluginConfigTableName()
91  {
92  return $this->getPluginTablePrefix() . "_config";
93  }
94 }
static getPluginRecord(string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname)
getComponentName()
Get Component Name.
slotInit()
Object initialization done by slot.
const IL_COMP_MODULE
getComponentType()
Get Component Type.
getPluginName()
Get Plugin Name.
Class ilCloudHookPlugin.