Documentation

Cloud_Controller extends Core_Servant_Properties
in package

AbstractYes

Cloud Controller

Tags
subpackage

Cloud

version
7.x
author

Hostmake LLC

copyright

© 2005-2024 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

Properties

$_allowedProperties  : array<string|int, mixed>
Allowed object properties
$_config  : array<string|int, mixed>
Config
$_instance  : array<string|int, mixed>
Instance
$_oCloud  : object|null
Cloud_Model object
$_propertiesValues  : array<string|int, mixed>
Properties values
$_timeout  : array<string|int, mixed>
Timeout
$_token  : mixed
Token
$_unlimitedProperties  : bool
Object has unlimited number of properties

Methods

__construct()  : mixed
Constructor
addAllowedProperties()  : self
Add additional allowed properties
addAllowedProperty()  : self
Add additional allowed property
delete()  : bool
Delete file from cloud
download()  : bool
Download file from cloud
factory()  : object
Create and return an object
getAccessToken()  : string
Get access token
getBreadCrumbs()  : array<string|int, mixed>
Ger breadcrumbs
getClouds()  : array<string|int, mixed>
Get clouds
getOauthCodeUrl()  : string
Get OAuth url
listDir()  : mixed
listDir Cache
set()  : self
Run when writing data to inaccessible properties
setUnlimitedProperties()  : self
Set unlimitedProperties
upload()  : bool
Upload file into cloud

Properties

$_allowedProperties

Allowed object properties

protected array<string|int, mixed> $_allowedProperties = array('dirId', 'dir', 'percent', 'chunkSize')

$_config

Config

protected array<string|int, mixed> $_config = array()

$_instance

Instance

protected static array<string|int, mixed> $_instance = array()

$_oCloud

Cloud_Model object

protected object|null $_oCloud = \NULL

$_propertiesValues

Properties values

protected array<string|int, mixed> $_propertiesValues = array()

$_timeout

Timeout

protected array<string|int, mixed> $_timeout = array()

$_unlimitedProperties

Object has unlimited number of properties

protected bool $_unlimitedProperties = \FALSE

Methods

addAllowedProperties()

Add additional allowed properties

public addAllowedProperties(array<string|int, mixed> $array) : self
Parameters
$array : array<string|int, mixed>

array of properties' names

Return values
self

addAllowedProperty()

Add additional allowed property

public addAllowedProperty(string $property) : self
Parameters
$property : string

property name

Return values
self

delete()

Delete file from cloud

public abstract delete(object $oObjectData) : bool
Parameters
$oObjectData : object

file object

Return values
bool

download()

Download file from cloud

public abstract download(string $sFileName, mixed $sTargetDirectory[, array<string|int, mixed> $aParams = array() ]) : bool
Parameters
$sFileName : string

file name

$sTargetDirectory : mixed
$aParams : array<string|int, mixed> = array()

options, e.g. for export add 'mimeType' => 'application/pdf'

Return values
bool

factory()

Create and return an object

public static factory([int $iCloudId = 0 ]) : object
Parameters
$iCloudId : int = 0

cloud id

Return values
object

getAccessToken()

Get access token

public abstract getAccessToken() : string
Return values
string

getBreadCrumbs()

Ger breadcrumbs

public abstract getBreadCrumbs() : array<string|int, mixed>
Return values
array<string|int, mixed>

getClouds()

Get clouds

public static getClouds() : array<string|int, mixed>
Return values
array<string|int, mixed>

getOauthCodeUrl()

Get OAuth url

public abstract getOauthCodeUrl() : string
Return values
string

listDir()

listDir Cache

public abstract listDir() : mixed

set()

Run when writing data to inaccessible properties

public set(string $property, string $value) : self
Parameters
$property : string

property name

$value : string

property value

Return values
self

setUnlimitedProperties()

Set unlimitedProperties

public setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
$value : bool = TRUE

default TRUR

Return values
self

upload()

Upload file into cloud

public abstract upload(string $sSourcePath[, string $sDestinationFileName = NULL ][, array<string|int, mixed> $aParams = array() ]) : bool
Parameters
$sSourcePath : string

file name

$sDestinationFileName : string = NULL
$aParams : array<string|int, mixed> = array()

options, e.g. 'mimeType' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'

Return values
bool

        
On this page

Search results