Method |
Description |
|
_abspath ( string $path ) : string |
Convert path related to root dir into real path. |
|
_archive ( string $dir, array $files, string $name, array $arc ) : string | boolean |
Create archive and return its path. |
|
_basename ( string $path ) : string |
Return file name. |
|
_bd_curlExec ( resource $curl, boolean | string $decodeOrParent = true, array $headers = [] ) : mixed |
Call curl_exec(). |
|
_bd_fetch ( $url, $contents = false ) : resource |
Creates a base cURL object which is compatible with the Box.com API. |
|
_bd_getRawItem ( string $path ) : array |
Get dat(box metadata) from Box.com. |
|
_bd_getThumbnail ( string $path ) : string | boolean |
Get thumbnail from Box.com. |
|
_bd_obtainAccessToken ( $client_id, $client_secret, string $code ) |
Obtains a new access token from OAuth. This token is valid for one hour. |
|
_bd_parseRaw ( string $raw ) : array |
Parse line from box metadata output and return file stat (array). |
|
_bd_prepareCurl ( array $options = [] ) : resource |
Creates a base cURL object which is compatible with the Box.com API. |
|
_bd_query ( $itemId, $fetch_self = false, $recursive = false ) : boolean | array |
Drive query and fetchAll. |
|
_bd_refreshToken ( ) : true | string |
Get token and auto refresh. |
|
_bd_splitPath ( string $path ) : array |
Get Parent ID, Item ID, Parent Path as an array from path. |
|
_bd_unlink ( string $path, $type = null ) : boolean |
Remove item. |
|
_checkArchivers ( ) |
Detect available archivers. |
|
_chmod ( $path, $mode ) : boolean |
chmod implementation. |
|
_copy ( string $source, string $targetDir, string $name ) : string | false |
Copy file into another file. |
|
_dimensions ( string $path, string $mime ) : string |
Return object width and height
Ususaly used for images, but can be realize for video etc. |
|
_dirname ( string $path ) : string |
Return parent directory path. |
|
_extract ( string $path, array $arc ) : true |
Extract files from archive. |
|
_fclose ( resource $fp, $path = '' ) : boolean |
Close opened file. |
|
_filePutContents ( string $path, string $content ) : boolean |
Write a string to a file. |
|
_findSymlinks ( string $path ) : boolean |
Recursive symlinks search. |
|
_fopen ( string $path, $mode = 'rb' ) : resource | false |
Open file and return file pointer. |
|
_getContents ( string $path ) : string | false |
Get file contents. |
|
_inpath ( string $path, string $parent ) : boolean |
Return true if $path is children of $parent. |
|
_joinPath ( string $dir, string $name ) : string |
Join dir name and file name and retur full path. |
|
_mkdir ( string $path, string $name ) : string | boolean |
Create dir and return created dir path or false on failed. |
|
_mkfile ( string $path, string $name ) : string | boolean |
Create file and return it's path or false on failed. |
|
_move ( string $source, $targetDir, string $name ) : string | boolean |
Move file into another parent dir. |
|
_normpath ( string $path ) : string |
Return normalized path, this works the same as os.path.normpath() in Python. |
|
_path ( string $path ) : string |
Return fake path started from root dir. |
|
_relpath ( string $path ) : string |
Return file path related to root dir. |
|
_rmdir ( string $path ) : boolean |
Remove dir. |
|
_save ( resource $fp, $path, string $name, array $stat ) : boolean | string |
Create new file and write into it from file pointer. |
|
_scandir ( string $path ) : array |
Return files list in directory. |
|
_stat ( string $path ) : array | false |
Return stat for given path. |
|
_subdirs ( string $path ) : boolean |
Return true if path is dir and has at least one childs directory. |
|
_symlink ( string $target, string $path, $name ) : boolean |
Create symlink. FTP driver does not support symlinks. |
|
_unlink ( string $path ) : boolean |
Remove file. |
|
_unpack ( string $path, array $arc ) : true |
Unpack archive. |
|
cacheDir ( string $path ) |
Cache dir contents. |
|
configure ( ) |
Configure after successfull mount. |
|
copy ( string $src, string $dst, string $name ) : string | false |
Copy file/recursive copy dir only in current volume. |
|
createTmb ( string $path, $stat ) : string | false |
Create thumnbnail and return it's URL on success. |
|
getSharedWebContentLink ( array $raw ) : array |
Return content URL. |
|
init ( ) : boolean |
Prepare FTP connection
Connect to remote server and check if credentials are correct, if so, store the connection id in $ftp_conn. |
|
isNameExists ( string $path ) : array |
Return fileinfo based on filename
For item ID based path file system
Please override if needed on each drivers. |
|
remove ( string $path, boolean $force = false ) : boolean |
Remove file/ recursive remove dir. |
|
tmbname ( array $stat ) : string |
Return thumbnail file name for required file. |
|