class DropboxStorageProvider extends StorageProvider

Class DropboxStorageProvider

Properties

Controller $mod from  StorageProvider
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 Dropbox $client
protected Account $accountInfo
protected array $storageInfo

Methods

bool
do_download(string $cloud_source_path, string $destination_dir_path)

Initialize and executes the download of a selected remote file.

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()

No description

int
get_account_quota_used()

No description

int
get_account_quota_used_percent()

Returns the account used storage quota in percent.

get_content(string $path)

No description

string
get_icon_class_name()

No description

string
get_provider_name()

No description

string
get_provider_title()

No description

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)

No description

on_download(string $cloud_source_path, string $destination_dir_path)

No description

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

No description

Details

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

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

at line 85
int get_account_quota_total()

No description

Return Value

int

at line 92
int get_account_quota_used()

No description

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

at line 108
StorageContent get_content(string $path)

No description

Parameters

string $path

A provider specific remote file path.

Return Value

StorageContent

at line 78
string get_icon_class_name()

No description

Return Value

string

at line 71
string get_provider_name()

No description

Return Value

string

at line 64
string get_provider_title()

No description

Return Value

string

in StorageProvider at line 113
bool hideWhenDisconnected()

No description

Return Value

bool

at line 33
init_provider()

No description

Exceptions

Exception

at line 101
bool isAvailable()

Returns true if this hook is available otherwise false.

Return Value

bool

at line 57
bool is_connected()

Returns true if the provider is connected.

Return Value

bool

at line 150
array on_browse_tree(string $path = null)

No description

Parameters

string $path

A provider specific remote file path.

Return Value

array

at line 218
protected on_download(string $cloud_source_path, string $destination_dir_path)

No description

Parameters

string $cloud_source_path
string $destination_dir_path

at line 208
on_upload(string $cloud_path, string $fileName, resource $fileStream)

No description

Parameters

string $cloud_path
string $fileName
resource $fileStream