ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilCloudPlugin Class Reference

Class ilCloudPlugin. More...

+ Collaboration diagram for ilCloudPlugin:

Public Member Functions

 __construct ($service_name, $obj_id, $cloud_modul_object=null)
 setObjId ($obj_id)
 getObjId ()
 getPluginHookObject ()
 getAdminConfigObject ()
 setPluginHookObject ($plugin_hook_object)
 getTableName ()
 setMaxFileSize ($max_file_size)
 getMaxFileSize ()
 setCloudModulObject ($cloud_modul_object)
 getCloudModulObject ()
 getOwnerId ()
 $return integer
 read ()
 create ()
 doUpdate ()
 doDelete ()

Protected Attributes

 $obj_id
 $plugin_hook_object
 $table_name = ""
 $admin_config_object
 $cloud_modul_object
 $max_file_size = 25

Detailed Description

Class ilCloudPlugin.

Base Class for the model of the plugin. Probably will be extended by most plugins.

Author
Timon Amstutz timon.nosp@m..ams.nosp@m.tutz@.nosp@m.ilub.nosp@m..unib.nosp@m.e.ch
Version
$Id$

Definition at line 17 of file class.ilCloudPlugin.php.

Constructor & Destructor Documentation

ilCloudPlugin::__construct (   $service_name,
  $obj_id,
  $cloud_modul_object = null 
)
Parameters
$obj_id

Definition at line 57 of file class.ilCloudPlugin.php.

References $cloud_modul_object, $obj_id, create(), ilCloudConnector\getPluginHookClass(), ilCloudException\PLUGIN_HOOK_COULD_NOT_BE_INSTANTIATED, read(), setCloudModulObject(), and setObjId().

{
$this->setObjId($obj_id);
$this->plugin_hook_object = ilCloudConnector::getPluginHookClass($service_name);
if (!is_object($this->plugin_hook_object))
{
}
$this->admin_config_object = new ilCloudPluginConfig($this->plugin_hook_object->getPluginConfigTableName());
if (!$this->read())
{
$this->create();
}
{
}
}

+ Here is the call graph for this function:

Member Function Documentation

ilCloudPlugin::create ( )

Definition at line 188 of file class.ilCloudPlugin.php.

Referenced by __construct().

{}

+ Here is the caller graph for this function:

ilCloudPlugin::doDelete ( )

Definition at line 192 of file class.ilCloudPlugin.php.

{}
ilCloudPlugin::doUpdate ( )

Definition at line 190 of file class.ilCloudPlugin.php.

{}
ilCloudPlugin::getAdminConfigObject ( )
Returns

Definition at line 106 of file class.ilCloudPlugin.php.

References $admin_config_object.

ilCloudPlugin::getCloudModulObject ( )
Returns
ilObjCloud

Definition at line 171 of file class.ilCloudPlugin.php.

ilCloudPlugin::getMaxFileSize ( )
Returns
int

Definition at line 155 of file class.ilCloudPlugin.php.

{
}
ilCloudPlugin::getObjId ( )
Returns

Definition at line 90 of file class.ilCloudPlugin.php.

References $obj_id.

{
return $this->obj_id;
}
ilCloudPlugin::getOwnerId ( )

$return integer

Definition at line 179 of file class.ilCloudPlugin.php.

{
include_once("./Modules/Cloud/classes/class.ilObjCloud.php");
$cloud_object = new ilObjCloud($this->getObjId(), false);
return $cloud_object->getOwnerId();
}
ilCloudPlugin::getPluginHookObject ( )
Returns

Definition at line 98 of file class.ilCloudPlugin.php.

References $plugin_hook_object.

Referenced by getTableName().

+ Here is the caller graph for this function:

ilCloudPlugin::getTableName ( )
Returns
string

Definition at line 122 of file class.ilCloudPlugin.php.

References getPluginHookObject().

{
return $this->getPluginHookObject()->getPluginTableName();
}

+ Here is the call graph for this function:

ilCloudPlugin::read ( )

Definition at line 186 of file class.ilCloudPlugin.php.

Referenced by __construct().

{}

+ Here is the caller graph for this function:

ilCloudPlugin::setCloudModulObject (   $cloud_modul_object)
Parameters
$cloud_modul_object

Definition at line 163 of file class.ilCloudPlugin.php.

Referenced by __construct().

{
$this->cloud_modul_object = $cloud_modul_object;
}

+ Here is the caller graph for this function:

ilCloudPlugin::setMaxFileSize (   $max_file_size)
Parameters
boolean$async_drawingpublic function setAsyncDrawing($async_drawing) { $this->async_drawing = $async_drawing; }

/**

Returns
boolean

public function getAsyncDrawing() { return $this->async_drawing; }

Parameters
int$max_file_size

Definition at line 147 of file class.ilCloudPlugin.php.

{
$this->max_file_size = $max_file_size;
}
ilCloudPlugin::setObjId (   $obj_id)
Parameters
$obj_id

Definition at line 82 of file class.ilCloudPlugin.php.

References $obj_id.

Referenced by __construct().

{
$this->obj_id = $obj_id;
}

+ Here is the caller graph for this function:

ilCloudPlugin::setPluginHookObject (   $plugin_hook_object)
Parameters
\ilCloudHookPlugin$plugin_hook_object

Definition at line 114 of file class.ilCloudPlugin.php.

References $plugin_hook_object.

{
$this->plugin_hook_object = $plugin_hook_object;
}

Field Documentation

ilCloudPlugin::$admin_config_object
protected

Definition at line 37 of file class.ilCloudPlugin.php.

Referenced by getAdminConfigObject().

ilCloudPlugin::$cloud_modul_object
protected

Definition at line 42 of file class.ilCloudPlugin.php.

Referenced by __construct().

ilCloudPlugin::$max_file_size = 25
protected

Definition at line 47 of file class.ilCloudPlugin.php.

ilCloudPlugin::$obj_id
protected

Definition at line 22 of file class.ilCloudPlugin.php.

Referenced by __construct(), getObjId(), and setObjId().

ilCloudPlugin::$plugin_hook_object
protected

Definition at line 27 of file class.ilCloudPlugin.php.

Referenced by getPluginHookObject(), and setPluginHookObject().

ilCloudPlugin::$table_name = ""
protected

Definition at line 32 of file class.ilCloudPlugin.php.


The documentation for this class was generated from the following file: