ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 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 96 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 110 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 143 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 156 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 195 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 208 of file class.ilCloudPluginService.php.
ilCloudPluginService::formatBytes | ( | $bytes | ) |
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 120 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 133 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 240 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 86 of file class.ilCloudPluginService.php.
ilCloudPluginService::getServiceObject | ( | ) |
Definition at line 75 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 170 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 185 of file class.ilCloudPluginService.php.
|
protected |
Definition at line 18 of file class.ilCloudPluginService.php.
Referenced by getPluginObject().