ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilCloudPluginService. More...
Public Member Functions | |
__construct ($service_name, $obj_id) | |
getPluginObject () | |
getPluginHookObject () | |
For shorter access. More... | |
getAdminConfigObject () | |
For shorter access. More... | |
authService ($callback_url="") | |
Called after the cloud object is created to authenticate the service if needed. More... | |
afterAuthService () | |
Place were the callback should lead to after authentication. More... | |
getServiceObject () | |
getRootId ($root_path) | |
Called when RootId (id of the folder which is set to root) is needed. More... | |
addToFileTree (ilCloudFileTree $file_tree, $parent_folder="/") | |
Updates the file tree when the user navigates through files and folders. More... | |
addToFileTreeWithId (ilCloudFileTree $file_tree, $id) | |
Updates the file tree when the user navigates through files and folders. More... | |
getFile ($path=null, ilCloudFileTree $file_tree=null) | |
Called when a file is accessed for download by the user. More... | |
getFileById ($id) | |
Called when a file is accessed for download by the user Uses the id instead of the path. More... | |
createFolder ($path=null, ilCloudFileTree $file_tree=null) | |
Called when a folder is created by the user. More... | |
createFolderById ($parent_id, $folder_name) | |
Called when a folder is created by the user Uses the id instead of the path. More... | |
putFile ($file, $name, $path='', ilCloudFileTree $file_tree=null) | |
Called when a file is uploaded by the user. More... | |
putFileById ($tmp_name, $file_name, $id) | |
Called when a file is uploaded by the user Uses the id instead of the path. More... | |
deleteItem ($path=null, ilCloudFileTree $file_tree=null) | |
Called when an item is deleted by the user. More... | |
deleteItemById ($id) | |
Called when an item is deleted by the user Uses the id instead of the path. More... | |
isCaseSensitive () | |
by default false More... | |
formatBytes ($bytes) | |
getProtokol () | |
A little helper function returning the currently used protocol as string. More... | |
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 26 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 111 of file class.ilCloudPluginService.php.
ilCloudPluginService::addToFileTreeWithId | ( | ilCloudFileTree | $file_tree, |
$id | |||
) |
Updates the file tree when the user navigates through files and folders.
Uses the id instead of the path.
ilCloudFileTree | $file_tree | |
string | $id |
Definition at line 126 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 80 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 69 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 162 of file class.ilCloudPluginService.php.
ilCloudPluginService::createFolderById | ( | $parent_id, | |
$folder_name | |||
) |
Called when a folder is created by the user Uses the id instead of the path.
string | $parent_id | |
string | $folder_name |
Definition at line 176 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 216 of file class.ilCloudPluginService.php.
ilCloudPluginService::deleteItemById | ( | $id | ) |
Called when an item is deleted by the user Uses the id instead of the path.
string | $id |
Definition at line 230 of file class.ilCloudPluginService.php.
ilCloudPluginService::formatBytes | ( | $bytes | ) |
ilCloudPluginService::getAdminConfigObject | ( | ) |
For shorter access.
Definition at line 57 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 137 of file class.ilCloudPluginService.php.
ilCloudPluginService::getFileById | ( | $id | ) |
Called when a file is accessed for download by the user Uses the id instead of the path.
string | $id |
Definition at line 151 of file class.ilCloudPluginService.php.
ilCloudPluginService::getPluginHookObject | ( | ) |
For shorter access.
Definition at line 46 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 35 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 268 of file class.ilCloudPluginService.php.
References $_SERVER.
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 99 of file class.ilCloudPluginService.php.
ilCloudPluginService::getServiceObject | ( | ) |
Definition at line 86 of file class.ilCloudPluginService.php.
ilCloudPluginService::isCaseSensitive | ( | ) |
ilCloudPluginService::putFile | ( | $file, | |
$name, | |||
$path = '' , |
|||
ilCloudFileTree | $file_tree = null |
||
) |
Called when a file is uploaded by the user.
$file | ||
$name | ||
string | $path | |
ilCloudFileTree | $file_tree |
Definition at line 190 of file class.ilCloudPluginService.php.
ilCloudPluginService::putFileById | ( | $tmp_name, | |
$file_name, | |||
$id | |||
) |
Called when a file is uploaded by the user Uses the id instead of the path.
string | $tmp_name | |
string | $file_name | |
string | $id |
Definition at line 205 of file class.ilCloudPluginService.php.
|
protected |
Definition at line 19 of file class.ilCloudPluginService.php.
Referenced by getPluginObject().