ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
4include_once("./Services/Component/classes/class.ilPlugin.php");
5
16abstract class ilCloudHookPlugin extends ilPlugin
17{
23 final public function getComponentType()
24 {
25 return IL_COMP_MODULE;
26 }
27
33 final public function getComponentName()
34 {
35 return "Cloud";
36 }
37
43 final public function getSlot()
44 {
45 return "CloudHook";
46 }
47
53 final public function getSlotId()
54 {
55 return "cldh";
56 }
57
61 final protected function slotInit()
62 {
63 // nothing to do here
64 }
65
66 public function getPluginTablePrefix()
67 {
68 $id = $this->getId();
69 if (!$id) {
70 $rec = ilPlugin::getPluginRecord($this->getComponentType(), $this->getComponentName(), $this->getSlotId(), $this->getPluginName());
71 $id = $rec['plugin_id'];
72 }
73 return $this->getSlotObject()->getPrefix() . "_" . $id;
74 }
75
76 public function getPluginTableName()
77 {
78 return $this->getPluginTablePrefix() . "_props";
79 }
80
81 public function getPluginConfigTableName()
82 {
83 return $this->getPluginTablePrefix() . "_config";
84 }
85}
An exception for terminatinating execution or to throw for unit testing.
const IL_COMP_MODULE
Class ilCloudHookPlugin.
slotInit()
Object initialization done by slot.
getComponentName()
Get Component Name.
getComponentType()
Get Component Type.
static getPluginRecord(string $a_ctype, string $a_cname, string $a_slot_id, string $a_pname)
getPluginName()
Get Plugin Name.