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

bool
deleteDriveItem(string $driveItemId)

Delete the driveItemId from OneDrive

bool
do_download(string $cloud_source_path, string $destination_dir_path)

Initialize and executes the download of a selected remote file.

bool|string
downloadDriveItem(string $driveItemId)

Download the requested remote file and save the content to temp path

string
getHookDescription()

No description

from  BaseHook
string
getHookIdentifier()

Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name

from  BaseHook
array
getHookInfoValue(bool $key = false)

Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)

from  BaseHook
string
getHookInstance()

No description

from  BaseHook
string
getHookName()

No description

from  BaseHook
string
getHookTitle()

No description

from  BaseHook
getObject()

No description

from  BaseHook
int
get_account_quota_free()

Returns the account free storage quota in bytes.

int
get_account_quota_total()

Returns size in bytes of total space of the storage.

int
get_account_quota_used()

Returns size in bytes of used space of the storage.

int
get_account_quota_used_percent()

Returns the account used storage quota in percent.

get_content(string $path)

Returns an instance of StorageContent that contains all files requested by the given path which is provider specific

string
get_icon_class_name()

Returns the xelos icon class name which presents the provider storage service.

string
get_provider_name()

Returns a name identifier of the provider storage service.

string
get_provider_title()

Returns the title of the provider storage service.

bool
hideWhenDisconnected()

No description

init_provider()

No description

bool
isAvailable()

Returns true if this hook is available otherwise false.

bool
is_connected()

Returns true if the provider is connected.

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.

on_download(string $cloud_source_path, string $destination_dir_path)

Download the requested remote file and save the content to the destination path.

on_upload(string $cloud_path, string $fileName, resource $fileStream)

Executes the provider specific file upload from xelos to the remote storage space.

false|array
uploadAndCreateLink(string $fileName, resource $fileStream)

Executes the provider specific file upload from xelos to the remote storage space.

Details

bool deleteDriveItem(string $driveItemId)

Delete the driveItemId from OneDrive

This can fail for many many reasons (e.g. existing sharing link)

Parameters

string $driveItemId

Return Value

bool

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.

Parameters

string $cloud_source_path
string $destination_dir_path

Return Value

bool

bool|string downloadDriveItem(string $driveItemId)

Download the requested remote file and save the content to temp path

Parameters

string $driveItemId

Return Value

bool|string

path to file

in BaseHook at line 76
string getHookDescription()

No description

Return Value

string

in BaseHook at line 55
string getHookIdentifier()

Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name

Return Value

string

in BaseHook at line 45
array getHookInfoValue(bool $key = false)

Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)

Parameters

bool $key

Return Value

array

in BaseHook at line 69
string getHookInstance()

No description

Return Value

string

in BaseHook at line 62
string getHookName()

No description

Return Value

string

in BaseHook at line 83
string getHookTitle()

No description

Return Value

string

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.

Return Value

int

int get_account_quota_total()

Returns size in bytes of total space of the storage.

Return Value

int

int get_account_quota_used()

Returns size in bytes of used space of the storage.

Return Value

int

in StorageProvider at line 131
int get_account_quota_used_percent()

Returns the account used storage quota in percent.

Return Value

int

StorageContent get_content(string $path)

Returns an instance of StorageContent that contains all files requested by the given path which is provider specific

.

Parameters

string $path

A provider specific remote file path.

Return Value

StorageContent

string get_icon_class_name()

Returns the xelos icon class name which presents the provider storage service.

Return Value

string

at line 80
string get_provider_name()

Returns a name identifier of the provider storage service.

Return Value

string

at line 54
string get_provider_title()

Returns the title of the provider storage service.

Return Value

string

at line 70
bool hideWhenDisconnected()

No description

Return Value

bool

at line 21
init_provider()

No description

at line 63
bool isAvailable()

Returns true if this hook is available otherwise false.

Return Value

bool

bool is_connected()

Returns true if the provider is connected.

Return Value

bool

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.

Parameters

string $path

A provider specific remote file path.

Return Value

array

on_download(string $cloud_source_path, string $destination_dir_path)

Download the requested remote file and save the content to the destination path.

Parameters

string $cloud_source_path
string $destination_dir_path

on_upload(string $cloud_path, string $fileName, resource $fileStream)

Executes the provider specific file upload from xelos to the remote storage space.

Parameters

string $cloud_path
string $fileName
resource $fileStream

Executes the provider specific file upload from xelos to the remote storage space.

Parameters

string $fileName
resource $fileStream

Return Value

false|array