63 header(
"Location: " . htmlspecialchars_decode($callback_url));
132 $unit =
array(
'B',
'KB',
'MB',
'GB',
'TB');
133 $bytes = max($bytes, 0);
134 $pow = floor(($bytes ? log($bytes) : 0) / log(1024));
135 $pow = min($pow, count($unit) - 1);
136 $bytes /= pow(1024, $pow);
137 return round($bytes, 2) .
' ' . $unit[$pow];
146 return isset(
$_SERVER[
'HTTPS']) &&
$_SERVER[
'HTTPS'] !=
'off' ?
'HTTPS' :
'HTTP';
afterAuthService()
Place were the callback should lead to after authentication.
getPluginHookObject()
For shorter access.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
getAdminConfigObject()
For shorter access.
getProtokol()
A little helper function returning the currently used protocol as string.
addToFileTree(ilCloudFileTree $file_tree, $parent_folder="/")
Updates the file tree when the user navigates through files and folders.
getRootId($root_path)
Called when RootId (id of the folder which is set to root) is needed.
__construct($service_name, $obj_id)
deleteItem($path=null, ilCloudFileTree $file_tree=null)
Called when an item is deleted by the user.
static getPluginClass($service_name, $obj_id)
getFile($path=null, ilCloudFileTree $file_tree=null)
Called when a file is accessed for download by the user.
Add a drawing to the header
Class ilCloudPluginService.
Create styles array
The data for the language used.
authService($callback_url="")
Called after the cloud object is created to authenticate the service if needed.
createFolder($path=null, ilCloudFileTree $file_tree=null)
Called when a folder is created by the user.
isCaseSensitive()
by default false