ILIAS
Release_4_4_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
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
{
64
throw
new
ilCloudException
(
ilCloudException::PLUGIN_HOOK_COULD_NOT_BE_INSTANTIATED
);
65
}
66
$this->admin_config_object =
new
ilCloudPluginConfig
($this->plugin_hook_object->getPluginConfigTableName());
67
if
(!$this->
read
())
68
{
69
$this->
create
();
70
}
71
72
if
(!
$cloud_modul_object
)
73
{
74
$cloud_modul_object
=
new
ilObjCloud
(
$obj_id
,
false
);
75
}
76
$this->
setCloudModulObject
(
$cloud_modul_object
);
77
}
78
82
public
function
setObjId
(
$obj_id
)
83
{
84
$this->obj_id =
$obj_id
;
85
}
86
90
public
function
getObjId
()
91
{
92
return
$this->obj_id
;
93
}
94
98
public
function
getPluginHookObject
()
99
{
100
return
$this->plugin_hook_object
;
101
}
102
106
public
function
getAdminConfigObject
()
107
{
108
return
$this->admin_config_object
;
109
}
110
114
public
function
setPluginHookObject
(
$plugin_hook_object
)
115
{
116
$this->plugin_hook_object =
$plugin_hook_object
;
117
}
118
122
public
function
getTableName
()
123
{
124
return
$this->
getPluginHookObject
()->getPluginTableName();
125
}
126
127
147
155
163
171
179
Modules
Cloud
classes
class.ilCloudPlugin.php
Generated on Wed Apr 27 2016 20:01:10 for ILIAS by
1.8.1.2 (using
Doxyfile
)