PHP 클래스 elFinder\elFinder

파일 보기 프로젝트 열기: gotcms/gotcms

공개 프로퍼티들

프로퍼티 타입 설명
$mountErrors array Errors from not mounted volumes
$netDrivers
$volumesCnt integer Mounted volumes count Required to create unique volume id

보호된 프로퍼티들

프로퍼티 타입 설명
$commands array Commands and required arguments list
$debug string Send debug to client?
$default elFinderStorageDriver Default root (storage)
$listeners array Commands listeners
$loaded boolean Is elFinder init correctly?
$time string script work time for debug
$uploadDebug string undocumented class variable
$version string API version number
$volumes array Storages (root dirs)

공개 메소드들

메소드 설명
__construct ( $opts ) : void Constructor
bind ( $cmd, $handler ) : elFinder Add handler to elFinder command
commandArgsList ( $cmd ) : array Return command required arguments info
commandExists ( $cmd ) : boolean Return true if command exists
error ( ) : array Normalize error messages
exec ( string $cmd, array $args ) : array Exec command and return result
loaded ( ) : boolean Return true if fm init correctly
realpath ( string $hash ) : string Return file real path
unbind ( $cmd, $handler ) : elFinder Remove event (command exec) handler
version ( ) : string Return version (api) number

보호된 메소드들

메소드 설명
archive ( array $args ) : array Create archive
dim ( array $args ) : array Return image dimmensions
duplicate ( array $args ) : array Duplicate file - create copy with "copy %d" suffix
extract ( array $args ) : array Extract files from archive
file ( $args ) : array Required to output file in browser when volume URL is not set Return array contains opened file pointer, root itself and required headers
filter ( array $files ) : array Remove from files list hidden files and files with required mime types
get ( array $args ) : array Return file content
getNetVolumes ( ) : array Return network volumes config.
hashes ( array $files ) : array Return fils hashes list
info ( array $args ) : array Return file info (used by client "places" ui)
ls ( $args ) : array Return dir files names list
mkdir ( $args ) : array Create directory
mkfile ( $args ) : array Create empty file
netmount ( $args )
open ( $args ) : array "Open" directory Return array with following elements - cwd - opened dir info - files - opened dir content [and dirs tree if $args[tree]] - api - api version (if $args[init]) - uplMaxSize - if $args[init] - error - on failed
parents ( $args ) : array Return parents dir for required directory
paste ( $args ) : array Copy/move files into new destination
put ( $args ) : array Save content into text file
rename ( array $args ) : array Rename file
resize ( $args ) : array Resize image
rm ( $args ) : array Remove dirs/files
saveNetVolumes ( array $volumes ) : void Save network volumes config.
search ( array $args ) : array Search files
size ( $args ) : array Count total files size
tmb ( $args ) : array Return new created thumbnails list
toArray ( array $data ) : array Return files info array
tree ( $args ) : array Return subdirs for required directory
upload ( $args ) : array Save uploaded files
utime ( )
volume ( $hash ) : elFinderStorageDriver Return root - file's owner

메소드 상세

__construct() 공개 메소드

Constructor
저자: Dmitry (dio) Levashov
public __construct ( $opts ) : void
리턴 void

archive() 보호된 메소드

Create archive
저자: Dmitry (dio) Levashov,
저자: Alexey Sukhotin
protected archive ( array $args ) : array
$args array command arguments
리턴 array

bind() 공개 메소드

Add handler to elFinder command
저자: Dmitry (dio) Levashov
public bind ( $cmd, $handler ) : elFinder
리턴 elFinder

commandArgsList() 공개 메소드

Return command required arguments info
저자: Dmitry (dio) Levashov
public commandArgsList ( $cmd ) : array
리턴 array

commandExists() 공개 메소드

Return true if command exists
저자: Dmitry (dio) Levashov
public commandExists ( $cmd ) : boolean
리턴 boolean

dim() 보호된 메소드

Return image dimmensions
저자: Dmitry (dio) Levashov
protected dim ( array $args ) : array
$args array command arguments
리턴 array

duplicate() 보호된 메소드

Duplicate file - create copy with "copy %d" suffix
저자: Dmitry (dio) Levashov
protected duplicate ( array $args ) : array
$args array command arguments
리턴 array

error() 공개 메소드

Normalize error messages
저자: Dmitry (dio) Levashov
public error ( ) : array
리턴 array

exec() 공개 메소드

Exec command and return result
저자: Dmitry (dio) Levashov
public exec ( string $cmd, array $args ) : array
$cmd string command name
$args array command arguments
리턴 array

extract() 보호된 메소드

Extract files from archive
저자: Dmitry (dio) Levashov,
저자: Alexey Sukhotin
protected extract ( array $args ) : array
$args array command arguments
리턴 array

file() 보호된 메소드

Required to output file in browser when volume URL is not set Return array contains opened file pointer, root itself and required headers
저자: Dmitry (dio) Levashov
protected file ( $args ) : array
리턴 array

filter() 보호된 메소드

Remove from files list hidden files and files with required mime types
저자: Dmitry (dio) Levashov
protected filter ( array $files ) : array
$files array files info
리턴 array

get() 보호된 메소드

Return file content
저자: Dmitry (dio) Levashov
protected get ( array $args ) : array
$args array command arguments
리턴 array

getNetVolumes() 보호된 메소드

Return network volumes config.
저자: Dmitry (dio) Levashov
protected getNetVolumes ( ) : array
리턴 array

hashes() 보호된 메소드

Return fils hashes list
저자: Dmitry (dio) Levashov
protected hashes ( array $files ) : array
$files array files info
리턴 array

info() 보호된 메소드

Return file info (used by client "places" ui)
저자: Dmitry Levashov
protected info ( array $args ) : array
$args array command arguments
리턴 array

loaded() 공개 메소드

Return true if fm init correctly
저자: Dmitry (dio) Levashov
public loaded ( ) : boolean
리턴 boolean

ls() 보호된 메소드

Return dir files names list
저자: Dmitry (dio) Levashov
protected ls ( $args ) : array
리턴 array

mkdir() 보호된 메소드

Create directory
저자: Dmitry (dio) Levashov
protected mkdir ( $args ) : array
리턴 array

mkfile() 보호된 메소드

Create empty file
저자: Dmitry (dio) Levashov
protected mkfile ( $args ) : array
리턴 array

netmount() 보호된 메소드

protected netmount ( $args )

open() 보호된 메소드

"Open" directory Return array with following elements - cwd - opened dir info - files - opened dir content [and dirs tree if $args[tree]] - api - api version (if $args[init]) - uplMaxSize - if $args[init] - error - on failed
저자: Dmitry (dio) Levashov
protected open ( $args ) : array
리턴 array

parents() 보호된 메소드

Return parents dir for required directory
저자: Dmitry (dio) Levashov
protected parents ( $args ) : array
리턴 array

paste() 보호된 메소드

Copy/move files into new destination
저자: Dmitry (dio) Levashov
protected paste ( $args ) : array
리턴 array

put() 보호된 메소드

Save content into text file
저자: Dmitry (dio) Levashov
protected put ( $args ) : array
리턴 array

realpath() 공개 메소드

Return file real path
저자: Dmitry (dio) Levashov
public realpath ( string $hash ) : string
$hash string file hash
리턴 string

rename() 보호된 메소드

Rename file
저자: Dmitry (dio) Levashov
protected rename ( array $args ) : array
$args array
리턴 array

resize() 보호된 메소드

Resize image
저자: Dmitry (dio) Levashov
저자: Alexey Sukhotin
protected resize ( $args ) : array
리턴 array

rm() 보호된 메소드

Remove dirs/files
저자: Dmitry (dio) Levashov
protected rm ( $args ) : array
리턴 array

saveNetVolumes() 보호된 메소드

Save network volumes config.
저자: Dmitry (dio) Levashov
protected saveNetVolumes ( array $volumes ) : void
$volumes array volumes config
리턴 void

size() 보호된 메소드

Count total files size
저자: Dmitry (dio) Levashov
protected size ( $args ) : array
리턴 array

tmb() 보호된 메소드

Return new created thumbnails list
저자: Dmitry (dio) Levashov
protected tmb ( $args ) : array
리턴 array

toArray() 보호된 메소드

Return files info array
저자: Dmitry (dio) Levashov
protected toArray ( array $data ) : array
$data array one file info or files info
리턴 array

tree() 보호된 메소드

Return subdirs for required directory
저자: Dmitry (dio) Levashov
protected tree ( $args ) : array
리턴 array

unbind() 공개 메소드

Remove event (command exec) handler
저자: Dmitry (dio) Levashov
public unbind ( $cmd, $handler ) : elFinder
리턴 elFinder

upload() 보호된 메소드

Save uploaded files
저자: Dmitry (dio) Levashov
protected upload ( $args ) : array
리턴 array

utime() 보호된 메소드

protected utime ( )

version() 공개 메소드

Return version (api) number
저자: Dmitry (dio) Levashov
public version ( ) : string
리턴 string

volume() 보호된 메소드

Return root - file's owner
저자: Dmitry (dio) Levashov
protected volume ( $hash ) : elFinderStorageDriver
리턴 elFinderStorageDriver

프로퍼티 상세

$commands 보호되어 있는 프로퍼티

Commands and required arguments list
protected array $commands
리턴 array

$debug 보호되어 있는 프로퍼티

Send debug to client?
protected string $debug
리턴 string

$default 보호되어 있는 프로퍼티

Default root (storage)
protected elFinderStorageDriver $default
리턴 elFinderStorageDriver

$listeners 보호되어 있는 프로퍼티

Commands listeners
protected array $listeners
리턴 array

$loaded 보호되어 있는 프로퍼티

Is elFinder init correctly?
protected bool $loaded
리턴 boolean

$mountErrors 공개적으로 프로퍼티

Errors from not mounted volumes
public array $mountErrors
리턴 array

$netDrivers 공개적으로 정적으로 프로퍼티

public static $netDrivers

$time 보호되어 있는 프로퍼티

script work time for debug
protected string $time
리턴 string

$uploadDebug 보호되어 있는 프로퍼티

undocumented class variable
protected string $uploadDebug
리턴 string

$version 보호되어 있는 프로퍼티

API version number
protected string $version
리턴 string

$volumes 보호되어 있는 프로퍼티

Storages (root dirs)
protected array $volumes
리턴 array

$volumesCnt 공개적으로 정적으로 프로퍼티

Mounted volumes count Required to create unique volume id
public static int $volumesCnt
리턴 integer