CKFinder 3 – PHP Connector Documentation
All Classes Functions Variables Pages
Dropbox Class Reference
Inheritance diagram for Dropbox:

Public Member Functions

 __construct (DropboxClient $client, array $backendConfig)
 
 getFileUrl ($path)
 
 getMimeType ($path)
 
 getMetadata ($path)
 

Protected Attributes

 $backendConfig
 

Detailed Description

The Dropbox class.

Extends the default Dropbox adapter to add some extra features.

Constructor & Destructor Documentation

◆ __construct()

__construct ( DropboxClient  $client,
array  $backendConfig 
)

Constructor.

Member Function Documentation

◆ getFileUrl()

getFileUrl (   $path)

Returns a direct link to a file stored in Dropbox.

Parameters
string$path
Exceptions

Exception

◆ getMetadata()

getMetadata (   $path)

Returns file metadata, including the guessed MIME type.

Parameters
string$path

◆ getMimeType()

getMimeType (   $path)

Returns the file MIME type.

The Dropbox API v2 does not support MIME types, but it is required by some connector features, so this method tries to guess one using the file extension.

Parameters
string$path
Returns
null|array|false|string

The documentation for this class was generated from the following file: