ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilCloudPlugin.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(
"class.ilCloudPluginConfig.php"
);
5
include_once(
"class.ilObjCloud.php"
);
6
17
class
ilCloudPlugin
18
{
22
protected
$obj_id
;
23
27
protected
$plugin_hook_object
;
28
32
protected
$table_name
=
""
;
33
37
protected
$admin_config_object
;
38
42
protected
$cloud_modul_object
;
43
47
protected
$max_file_size
= 25;
48
52
//protected $async_drawing = false;
53
57
public
function
__construct
($service_name,
$obj_id
,
$cloud_modul_object
= null)
58
{
59
$this->
setObjId
(
$obj_id
);
60
61
$this->plugin_hook_object =
ilCloudConnector::getPluginHookClass
($service_name);
62
if
(!is_object($this->plugin_hook_object)) {
63
throw
new
ilCloudException
(
ilCloudException::PLUGIN_HOOK_COULD_NOT_BE_INSTANTIATED
);
64
}
65
$this->admin_config_object =
new
ilCloudPluginConfig
($this->plugin_hook_object->getPluginConfigTableName());
66
if
(!$this->
read
()) {
67
$this->
create
();
68
}
69
70
if
(!
$cloud_modul_object
) {
71
// in the context of deleting, it's possible that the ilObjCloud with this obj_id is already pushing up the daisies
72
// so instantiating it would lead to an error
73
if
(
$obj_id
== 0 ||
ilObjCloud::_exists
(
$obj_id
,
false
,
'cld'
)) {
74
$cloud_modul_object
=
new
ilObjCloud
(
$obj_id
,
false
);
75
}
76
}
77
$this->
setCloudModulObject
(
$cloud_modul_object
);
78
}
79
83
public
function
setObjId
(
$obj_id
)
84
{
85
$this->obj_id =
$obj_id
;
86
}
87
91
public
function
getObjId
()
92
{
93
return
$this->obj_id
;
94
}
95
99
public
function
getPluginHookObject
()
100
{
101
return
$this->plugin_hook_object
;
102
}
103
107
public
function
getAdminConfigObject
()
108
{
109
return
$this->admin_config_object
;
110
}
111
115
public
function
setPluginHookObject
(
$plugin_hook_object
)
116
{
117
$this->plugin_hook_object =
$plugin_hook_object
;
118
}
119
123
public
function
getTableName
()
124
{
125
return
$this->
getPluginHookObject
()->getPluginTableName();
126
}
127
128
148
156
164
172
180
ilCloudPlugin\__construct
__construct($service_name, $obj_id, $cloud_modul_object=null)
Definition:
class.ilCloudPlugin.php:57
ilCloudPlugin\setCloudModulObject
setCloudModulObject($cloud_modul_object)
Definition:
class.ilCloudPlugin.php:164
ilCloudPlugin
Class ilCloudPlugin.
Definition:
class.ilCloudPlugin.php:17
ilCloudPlugin\getAdminConfigObject
getAdminConfigObject()
Definition:
class.ilCloudPlugin.php:107
ilCloudPlugin\$obj_id
$obj_id
Definition:
class.ilCloudPlugin.php:22
ilCloudPlugin\getObjId
getObjId()
Definition:
class.ilCloudPlugin.php:91
ilCloudPlugin\setObjId
setObjId($obj_id)
Definition:
class.ilCloudPlugin.php:83
ilCloudPlugin\$admin_config_object
$admin_config_object
Definition:
class.ilCloudPlugin.php:37
ilCloudPlugin\$max_file_size
$max_file_size
Definition:
class.ilCloudPlugin.php:47
ilCloudPlugin\create
create()
Definition:
class.ilCloudPlugin.php:191
ilCloudPluginConfig
Class ilCloudPluginConfig.
Definition:
class.ilCloudPluginConfig.php:17
ilCloudException\PLUGIN_HOOK_COULD_NOT_BE_INSTANTIATED
const PLUGIN_HOOK_COULD_NOT_BE_INSTANTIATED
Definition:
class.ilCloudException.php:22
ilCloudPlugin\$plugin_hook_object
$plugin_hook_object
Definition:
class.ilCloudPlugin.php:27
ilCloudPlugin\$cloud_modul_object
$cloud_modul_object
Definition:
class.ilCloudPlugin.php:42
ilCloudPlugin\getTableName
getTableName()
Definition:
class.ilCloudPlugin.php:123
ilCloudPlugin\$table_name
$table_name
Definition:
class.ilCloudPlugin.php:32
ilCloudConnector\getPluginHookClass
static getPluginHookClass($service_name)
Definition:
class.ilCloudConnector.php:122
ilCloudPlugin\setPluginHookObject
setPluginHookObject($plugin_hook_object)
Definition:
class.ilCloudPlugin.php:115
ilCloudPlugin\getPluginHookObject
getPluginHookObject()
Definition:
class.ilCloudPlugin.php:99
ilObject2\_exists
static _exists($a_id, $a_reference=false, $a_type=null)
Definition:
class.ilObject2.php:370
ilObjCloud
Class ilObjCloud.
Definition:
class.ilObjCloud.php:16
ilCloudException
Class ilCloudException.
Definition:
class.ilCloudException.php:14
ilCloudPlugin\read
read()
Definition:
class.ilCloudPlugin.php:187
Modules
Cloud
classes
class.ilCloudPlugin.php
Generated on Sat Jan 18 2025 19:01:14 for ILIAS by
1.8.13 (using
Doxyfile
)