elFinderVolumeExponent

Extends \elFinderVolumeLocalFileSystem

This is the class elFinderVolumeExponent elFinder volume driver for the Exponent CMS expFile filesystem.

author

Dave Leffler

package

elFinder

subpackage

Connectors

Methods

Copy file into another file

_copy(string $source, string $targetDir, string $name) : boolean
author

Dave Leffler

Arguments

$source

string

source file path

$targetDir

string

target directory path

$name

string

new file name

Response

boolean

Return the expFile for the given path or create new expFile

_get_expFile(string $path) : \expFile
static
author

Dave Leffler

Arguments

$path

string

Response

\expFile

Create file and return it's path or false on failed

_mkfile(string $path, string $name) : string|boolean
author

Dave Leffler

Arguments

$path

string

parent dir path

$name

string

new file name

Response

string|boolean

Move an expFile to the given path

_move_expFile(string $oldpath, string $newpath) : array|integer
author

Dave Leffler

Arguments

$oldpath

string

source file hash or path

$newpath

string

dest dir hash or path

Response

array|integer

Delete an expFile record based on the given path

_remove_expFile(string $oldpath) 
author

Dave Leffler

Arguments

$oldpath

string

source file hash

Create new file and write into it from file pointer.

_save(resource $fp, string $dir, string $name, array $stat) : boolean|string

Return new file path or false on error.

author

Dave Leffler

Arguments

$fp

resource

file pointer

$dir

string

target dir path

$name

string

file name

$stat

array

file stat (required by some virtual fs)

Response

boolean|string

Get/Set expFile Alt

alt(string $target, string $newalt = null) : \array/null

Arguments

$target

string

$newalt

string

Response

\array/null

Return debug info for client

debug() : array
author

Dmitry (dio) Levashov

Response

array

Get expFile Owner

owner(string $target, string $newowner = null) : string

Arguments

$target

string

$newowner

string

Response

string

Paste files

paste(Object $volume,  $src, string $dst, boolean $rmSrc = false, array $hashes = array()) : array|false
author

Dave Leffler

Arguments

$volume

Object

source volume

$src

$dst

string

destination dir hash

$rmSrc

boolean

remove source after copy?

$hashes

array

Response

array|false

Recursive method to move expFile record directories

scan_folder( $npath,  $opath) 

Arguments

$npath

$opath

Get/Set expFile shared status

shared(string $target, string $newshared = null) : \array/null

Arguments

$target

string

$newshared

string

Response

\array/null

Return fileinfo, also check if in expFiles table and add if missing

stat(string $path) : array
author

Dave Leffler

Arguments

$path

string

file cache

Response

array

Get/Set expFile Title

title(string $target, string $newtitle = null) : \array/null

Arguments

$target

string

$newtitle

string

Response

\array/null