OnedriveBusinessStorageProvider
class OnedriveBusinessStorageProvider extends OnedriveStorageProvider
Class OnedriveBusinessStorageProvider
Constants
EP_DRIVE |
Graph endpoints |
EP_DRIVE_ROOT |
|
EP_DRIVE_ITEMS |
|
EP_XELOSDRIVE |
|
Properties
ApiMicrosoftController | $mod | from OnedriveStorageProvider | |
array | $_hook_info | Hook Information "id" => "4914" "instance_id" => "api_microsoft" "name" => "oauth_client" "hook" => "webservice.oauth_client" "type" => "object" "registry_name" => "oauth_client" "function_name" => "" "internal" => "no" "dep_mode" => "local" "active" => "yes" "title" => "Basic functions" "description" => "" "options" => "" |
from BaseHook |
protected Graph | $graph | from OnedriveStorageProvider | |
protected Drive | $drive | from OnedriveStorageProvider |
Methods
Delete the driveItemId from OneDrive
Initialize and executes the download of a selected remote file.
Download the requested remote file and save the content to temp path
Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name
Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)
Returns size in bytes of total space of the storage.
Returns size in bytes of used space of the storage.
Returns the account used storage quota in percent.
Returns an instance of StorageContent that contains all files requested by the given path which is provider specific
Returns the xelos icon class name which presents the provider storage service.
Returns a name identifier of the provider storage service.
Returns the title of the provider storage service.
No description
No description
Returns true if this hook is available otherwise false.
Returns an array which contains the content of the requested path. This array is used by xui_tree.
Download the requested remote file and save the content to the destination path.
Executes the provider specific file upload from xelos to the remote storage space.
Executes the provider specific file upload from xelos to the remote storage space.
Details
in
OnedriveStorageProvider at line 418
bool
deleteDriveItem(string $driveItemId)
Delete the driveItemId from OneDrive
This can fail for many many reasons (e.g. existing sharing link)
in
StorageProvider at line 146
bool
do_download(string $cloud_source_path, string $destination_dir_path)
Initialize and executes the download of a selected remote file.
in
OnedriveStorageProvider at line 444
bool|string
downloadDriveItem(string $driveItemId)
Download the requested remote file and save the content to temp path
in
BaseHook at line 76
string
getHookDescription()
No description
in
BaseHook at line 55
string
getHookIdentifier()
Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name
in
BaseHook at line 45
array
getHookInfoValue(bool $key = false)
Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)
in
BaseHook at line 69
string
getHookInstance()
No description
in
BaseHook at line 62
string
getHookName()
No description
in
BaseHook at line 83
string
getHookTitle()
No description
in
BaseHook at line 88
getObject()
No description
in
StorageProvider at line 122
int
get_account_quota_free()
Returns the account free storage quota in bytes.
in
OnedriveStorageProvider at line 114
int
get_account_quota_total()
Returns size in bytes of total space of the storage.
in
OnedriveStorageProvider at line 123
int
get_account_quota_used()
Returns size in bytes of used space of the storage.
in
StorageProvider at line 131
int
get_account_quota_used_percent()
Returns the account used storage quota in percent.
in
OnedriveStorageProvider at line 136
StorageContent
get_content(string $path)
Returns an instance of StorageContent that contains all files requested by the given path which is provider specific
.
in
OnedriveStorageProvider at line 105
string
get_icon_class_name()
Returns the xelos icon class name which presents the provider storage service.
at line 80
string
get_provider_name()
Returns a name identifier of the provider storage service.
at line 54
string
get_provider_title()
Returns the title of the provider storage service.
at line 70
bool
hideWhenDisconnected()
No description
at line 21
init_provider()
No description
at line 63
bool
isAvailable()
Returns true if this hook is available otherwise false.
in
OnedriveStorageProvider at line 77
bool
is_connected()
Returns true if the provider is connected.
in
OnedriveStorageProvider at line 185
array
on_browse_tree(string $path = null)
Returns an array which contains the content of the requested path. This array is used by xui_tree.
in
OnedriveStorageProvider at line 371
on_download(string $cloud_source_path, string $destination_dir_path)
Download the requested remote file and save the content to the destination path.
in
OnedriveStorageProvider at line 261
on_upload(string $cloud_path, string $fileName, resource $fileStream)
Executes the provider specific file upload from xelos to the remote storage space.
in
OnedriveStorageProvider at line 481
false|array
uploadAndCreateLink(string $fileName, resource $fileStream)
Executes the provider specific file upload from xelos to the remote storage space.