Свойство | Тип | Описание | |
---|---|---|---|
$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 ) : |
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 ) : |
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 |
public bind ( $cmd, $handler ) : |
||
Результат |
public commandArgsList ( $cmd ) : array | ||
Результат | array |
public commandExists ( $cmd ) : boolean | ||
Результат | boolean |
protected getNetVolumes ( ) : array | ||
Результат | array |
protected saveNetVolumes ( array $volumes ) : void | ||
$volumes | array | volumes config |
Результат | void |
public unbind ( $cmd, $handler ) : |
||
Результат |
protected volume ( $hash ) : elFinderStorageDriver | ||
Результат | elFinderStorageDriver |
protected array $commands | ||
Результат | array |
protected elFinderStorageDriver $default | ||
Результат | elFinderStorageDriver |
public array $mountErrors | ||
Результат | array |
protected string $uploadDebug | ||
Результат | string |
public static int $volumesCnt | ||
Результат | integer |