71        header(
"Location: " . htmlspecialchars_decode($callback_url));
 
  253        $unit = array(
'B', 
'KB', 
'MB', 
'GB', 
'TB');
 
  254        $bytes = max($bytes, 0);
 
  255        $pow = floor(($bytes ? log($bytes) : 0) / log(1024));
 
  256        $pow = min($pow, count($unit) - 1);
 
  257        $bytes /= pow(1024, $pow);
 
  259        return round($bytes, 2) . 
' ' . $unit[$pow];
 
  270        return isset(
$_SERVER[
'HTTPS']) && 
$_SERVER[
'HTTPS'] != 
'off' ? 
'HTTPS' : 
'HTTP';
 
An exception for terminatinating execution or to throw for unit testing.
static getPluginClass($service_name, $obj_id)
Class ilCloudPluginService.
authService($callback_url="")
Called after the cloud object is created to authenticate the service if needed.
getAdminConfigObject()
For shorter access.
getProtokol()
A little helper function returning the currently used protocol as string.
getFileById($id)
Called when a file is accessed for download by the user Uses the id instead of the path.
putFile($file, $name, $path='', ilCloudFileTree $file_tree=null)
Called when a file is uploaded by the user.
isCaseSensitive()
by default false
getFile($path=null, ilCloudFileTree $file_tree=null)
Called when a file is accessed for download by the user.
createFolderById($parent_id, $folder_name)
Called when a folder is created by the user Uses the id instead of the path.
getRootId($root_path)
Called when RootId (id of the folder which is set to root) is needed.
createFolder($path=null, ilCloudFileTree $file_tree=null)
Called when a folder is created by the user.
putFileById($tmp_name, $file_name, $id)
Called when a file is uploaded by the user Uses the id instead of the path.
getPluginHookObject()
For shorter access.
__construct($service_name, $obj_id)
deleteItemById($id)
Called when an item is deleted by the user Uses the id instead of the path.
addToFileTree(ilCloudFileTree $file_tree, $parent_folder="/")
Updates the file tree when the user navigates through files and folders.
afterAuthService()
Place were the callback should lead to after authentication.
addToFileTreeWithId(ilCloudFileTree $file_tree, $id)
Updates the file tree when the user navigates through files and folders.
deleteItem($path=null, ilCloudFileTree $file_tree=null)
Called when an item is deleted by the user.