ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilCloudPluginService. More...
Public Member Functions | |
__construct ($service_name, $obj_id) | |
getPluginObject () | |
getPluginHookObject () | |
For shorter access. | |
getAdminConfigObject () | |
For shorter access. | |
authService ($callback_url="") | |
Called after the cloud object is created to authenticate the service if needed. | |
afterAuthService () | |
Place were the callback should lead to after authentication. | |
getServiceObject () | |
getRootId ($root_path) | |
Called when RootId (id of the folder which is set to root) is needed. | |
addToFileTree (ilCloudFileTree &$file_tree, $parent_folder="/") | |
Updates the file tree when the user navigates through files and folders. | |
getFile ($path=null, ilCloudFileTree $file_tree=null) | |
Called when a file is accessed for download by the user. | |
createFolder ($path=null, ilCloudFileTree $file_tree=null) | |
Called when a folder is created by the user. | |
deleteItem ($path=null, ilCloudFileTree $file_tree=null) | |
Called when an item is deleted by the user. | |
isCaseSensitive () | |
by default false | |
formatBytes ($bytes) | |
getProtokol () | |
A little helper function returning the currently used protocol as string. |
Protected Attributes | |
$plugin_object = null |
Class ilCloudPluginService.
Basic frame for the plugin service class probably needs to be overwritten
Definition at line 13 of file class.ilCloudPluginService.php.
ilCloudPluginService::__construct | ( | $service_name, | |
$obj_id | |||
) |
$service_name | |
$obj_id |
Definition at line 24 of file class.ilCloudPluginService.php.
References ilCloudConnector\getPluginClass().
ilCloudPluginService::addToFileTree | ( | ilCloudFileTree & | $file_tree, |
$parent_folder = "/" |
|||
) |
Updates the file tree when the user navigates through files and folders.
ilCloudFileTree | $file_tree | |
string | $parent_folder |
Definition at line 94 of file class.ilCloudPluginService.php.
ilCloudPluginService::afterAuthService | ( | ) |
Place were the callback should lead to after authentication.
Can be used to updated plugin settings.
Definition at line 70 of file class.ilCloudPluginService.php.
ilCloudPluginService::authService | ( | $callback_url = "" | ) |
Called after the cloud object is created to authenticate the service if needed.
The callback can be used to get back to the correct place in ILIAS (the afterAuth Method) after the remote authentication.
string | $callback_url |
Definition at line 61 of file class.ilCloudPluginService.php.
ilCloudPluginService::createFolder | ( | $path = null , |
|
ilCloudFileTree | $file_tree = null |
||
) |
Called when a folder is created by the user.
null | $path | |
ilCloudFileTree | $file_tree |
Definition at line 108 of file class.ilCloudPluginService.php.
ilCloudPluginService::deleteItem | ( | $path = null , |
|
ilCloudFileTree | $file_tree = null |
||
) |
Called when an item is deleted by the user.
null | $path | |
ilCloudFileTree | $file_tree |
Definition at line 115 of file class.ilCloudPluginService.php.
ilCloudPluginService::formatBytes | ( | $bytes | ) |
int | $bytes |
Definition at line 130 of file class.ilCloudPluginService.php.
ilCloudPluginService::getAdminConfigObject | ( | ) |
For shorter access.
Definition at line 50 of file class.ilCloudPluginService.php.
References getPluginObject().
ilCloudPluginService::getFile | ( | $path = null , |
|
ilCloudFileTree | $file_tree = null |
||
) |
Called when a file is accessed for download by the user.
null | $path | |
ilCloudFileTree | $file_tree |
Definition at line 101 of file class.ilCloudPluginService.php.
ilCloudPluginService::getPluginHookObject | ( | ) |
For shorter access.
Definition at line 41 of file class.ilCloudPluginService.php.
References getPluginObject().
Referenced by ilCloudConnector\getActionListGUIClass(), ilCloudConnector\getCreateFolderGUIClass(), ilCloudConnector\getCreationGUIClass(), ilCloudConnector\getDeleteGUIClass(), ilCloudConnector\getFileTreeGUIClass(), ilCloudConnector\getHeaderActionGUIClass(), ilCloudConnector\getInfoScreenGUIClass(), ilCloudConnector\getInitGUIClass(), ilCloudConnector\getItemCreationListGUIClass(), ilCloudConnector\getSettingsGUIClass(), and ilCloudConnector\getUploadGUIClass().
ilCloudPluginService::getPluginObject | ( | ) |
Definition at line 32 of file class.ilCloudPluginService.php.
References $plugin_object.
Referenced by getAdminConfigObject(), and getPluginHookObject().
ilCloudPluginService::getProtokol | ( | ) |
A little helper function returning the currently used protocol as string.
Definition at line 144 of file class.ilCloudPluginService.php.
ilCloudPluginService::getRootId | ( | $root_path | ) |
Called when RootId (id of the folder which is set to root) is needed.
Mostly after the base directory is changed by the user or after creating the cloud Obect
$root_path |
Definition at line 84 of file class.ilCloudPluginService.php.
ilCloudPluginService::getServiceObject | ( | ) |
Definition at line 75 of file class.ilCloudPluginService.php.
ilCloudPluginService::isCaseSensitive | ( | ) |
by default false
Definition at line 121 of file class.ilCloudPluginService.php.
|
protected |
Definition at line 18 of file class.ilCloudPluginService.php.
Referenced by getPluginObject().