Свойство | Type | Description | |
---|---|---|---|
$defaultMimefile | string | elFinderVolumeDriver default mime.type file path | |
$instance | object | elFinder instance | |
$locale | string | elFinder global locale | |
$maxTargets | Max allowed numbar of @var targets (0 - no limit) | ||
$mountErrors | array | Errors from not mounted volumes | |
$netDrivers | array | Network mount drivers | |
$phpErrors | array | Errors from PHP | |
$sessionCacheKey | string | elFinder global sessionCacheKey | |
$volumesCnt | integer | Mounted volumes count Required to create unique volume id |
Свойство | Type | Description | |
---|---|---|---|
$base64encodeSessionData | boolean | elFinder base64encodeSessionData elFinder save session data as UTF-8 If the session storage mechanism of the system does not allow UTF-8 And it must be true option 'base64encodeSessionData' of elFinder | |
$callbackWindowURL | URL for callback output window for CORS redirect to this URL when callback output | ||
$commands | array | Commands and required arguments list | |
$commonTempPath | string | elFinder common tempraly path | |
$debug | string | Send debug to client? | |
$default | elFinderStorageDriver | Default root (storage) | |
$listeners | array | Commands listeners | |
$loaded | boolean | Is elFinder init correctly? | |
$maxArcFilesSize | integer | Max allowed archive files size (0 - no limit) | |
$netVolumesSessionKey | string | Session key of net mount volumes | |
$optionsNetVolumes | array | Additional volume root options for network mounting volume | |
$plugins | array | Plugins instance | |
$session | elFinderSessionInterface | elFinder session wrapper object | |
$sessionCloseEarlier | boolean | Call session_write_close() before exec command? | |
$sessionUseCmds | array | SESSION use commands @see __construct() | |
$time | string | script work time for debug | |
$timeout | integer | session expires timeout | |
$uploadDebug | string | undocumented class variable | |
$uploadTempPath | string | Temp dir path for Upload | |
$version | string | API version number | |
$volumes | array | Storages (root dirs) |
Méthode | Description | |
---|---|---|
__construct ( $opts ) | 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 | |
curlExec ( resource $curl, array $options = [], array $headers = [] ) : mixed | Call curl_exec() with supported redirect on safe_mode or open_basedir | |
error ( ) : array | Normalize error messages | |
exec ( string $cmd, array $args ) : array | Exec command and return result | |
extendTimeLimit ( Int $time = null ) : void | Extend PHP execution time limit | |
getConnectorUrl ( ) : string | Get script url. | |
getIniBytes ( string $iniName = '', string $val = '' ) : number | Return bytes from php.ini value | |
getSession ( ) : object | Return elFinder session wrapper instance | |
getStaticVar ( $key ) : mixed | null | Return elFinder static variable | |
getStreamByUrl ( array $data, number $redirectLimit = 5 ) : resource | boolean | Get stream resource pointer by URL | |
getVolume ( $hash ) : elFinderStorageDriver | Return root - file's owner (public func of volume()) | |
isAnimationGif ( string $path ) : boolean | Return Is Animation Gif | |
isSeekableStream ( resource $resource ) : boolean | Return Is seekable stream resource | |
loaded ( ) : boolean | Return true if fm init correctly | |
phpErrorHandler ( integer $errno, string $errstr, string $errfile, integer $errline ) : void | boolean | PHP error handler, catch error types only E_WARNING | E_NOTICE | E_USER_WARNING | E_USER_NOTICE | |
realpath ( string $hash ) : string | Return file real path | |
rewind ( resource $resource ) : void | Rewind stream resource | |
sessionDataDecode ( mixed &$var, boolean $checkIs = null ) : boolean | mixed | base64_decode and unserialize of session data (If needed) | |
sessionDataEncode ( mixed $var ) : mixed | string | serialize and base64_encode of session data (If needed) | |
sessionWrite ( ) : void | Call session_write_close() if session is restarted | |
unbind ( $cmd, $handler ) : elFinder | Remove event (command exec) handler | |
updateNetVolumeOption ( string $netKey, string $optionKey, mixed $val ) | Update sesstion value of a NetVolume option | |
version ( ) : string | Return version (api) number |
Méthode | Description | |
---|---|---|
archive ( array $args ) : array | Create archive | |
callback ( $args ) | Output callback result with JavaScript that control elFinder or HTTP redirect to callbackWindowURL | |
chmod ( $args ) : array | chmod | |
curl_get_contents ( string &$url, integer $timeout, integer $redirect_max, string $ua, resource $outfp ) : string | Get remote contents with cURL | |
detectFileExtension ( string $path ) : string | Detect file type extension by local path | |
dim ( array $args ) : array | Return image dimensions | |
duplicate ( array $args ) : array | Duplicate file - create copy with "copy %d" suffix | |
ensureDirsRecursively ( object $volume, string $target, string $dirs, string $path = '' ) : array | false | Ensure directories recursively | |
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 | |
fsock_get_contents ( string &$url, integer $timeout, integer $redirect_max, string $ua, resource $outfp ) : string | Get remote contents with fsockopen() | |
get ( array $args ) : array | Return file content | |
getNetVolumeUniqueId ( array $netVolumes = null, string $prefix = 'nm' ) : string | false | Return Network mount volume unique ID | |
getNetVolumes ( ) : array | Return network volumes config. | |
getPluginInstance ( string $name, array $opts = [] ) : object | boolean | Get plugin instance & set to $this->plugins | |
get_remote_contents ( string &$url, integer $timeout = 30, integer $redirect_max = 5, string $ua = 'Mozilla/5.0', resource $fp = null ) : string | Get remote contents | |
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 | |
parse_data_scheme ( string $str, array $extTable ) : array | Parse Data URI scheme | |
paste ( $args ) : array | Copy/move files into new destination | |
put ( $args ) : array | Save content into text file | |
removeNetVolume ( string $key, object $volume ) : boolean | Remove netmount volume | |
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 | |
url ( array $args ) : array | Return content URL | |
utime ( ) | ||
volume ( $hash ) : elFinderStorageDriver | Return root - file's owner | |
zipdl ( $args ) : array | Download files/folders as an archive file |
Méthode | Description | |
---|---|---|
checkChunkedFile ( string $tmpname, string $chunk, string $cid, string $tempDir, null $volume = null ) : array | Check chunked upload files | |
getTempDir ( string $volumeTempPath = null ) : string | Get temporary directory path | |
session_expires ( ) |
public bind ( $cmd, $handler ) : elFinder | ||
Résultat | elFinder |
protected callback ( $args ) |
public commandArgsList ( $cmd ) : array | ||
Résultat | array |
public commandExists ( $cmd ) : boolean | ||
Résultat | boolean |
protected detectFileExtension ( string $path ) : string | ||
$path | string | Local path |
Résultat | string | file type extension with dot |
protected ensureDirsRecursively ( object $volume, string $target, string $dirs, string $path = '' ) : array | false | ||
$volume | object | Volume object |
$target | string | Target hash |
$dirs | string | Array of directory tree to ensure |
$path | string | Relative path form target hash |
Résultat | array | false | array('stats' => array([stat of maked directory]), 'hashes' => array('[path]' => '[hash]')) |
public static extendTimeLimit ( Int $time = null ) : void | ||
$time | Int | |
Résultat | void |
public static getConnectorUrl ( ) : string | ||
Résultat | string | full URL |
protected getNetVolumes ( ) : array | ||
Résultat | array |
public getSession ( ) : object | ||
Résultat | object | elFinderSessionInterface |
public static getStaticVar ( $key ) : mixed | null | ||
$key | ||
Résultat | mixed | null |
public getVolume ( $hash ) : elFinderStorageDriver | ||
Résultat | elFinderStorageDriver |
protected get_remote_contents ( string &$url, integer $timeout = 30, integer $redirect_max = 5, string $ua = 'Mozilla/5.0', resource $fp = null ) : string | ||
$url | string | target url |
$timeout | integer | timeout (sec) |
$redirect_max | integer | redirect max count |
$ua | string | |
$fp | resource | |
Résultat | string | or bool(false) |
public static isAnimationGif ( string $path ) : boolean | ||
$path | string | server local path of target image |
Résultat | boolean |
public static isSeekableStream ( resource $resource ) : boolean | ||
$resource | resource | |
Résultat | boolean |
protected saveNetVolumes ( array $volumes ) : void | ||
$volumes | array | volumes config |
Résultat | void |
public static sessionWrite ( ) : void | ||
Résultat | void |
public unbind ( $cmd, $handler ) : elFinder | ||
Résultat | elFinder |
protected volume ( $hash ) : elFinderStorageDriver | ||
Résultat | elFinderStorageDriver |
protected static bool $base64encodeSessionData | ||
Résultat | boolean |
protected $callbackWindowURL |
protected array $commands | ||
Résultat | array |
protected static string $commonTempPath | ||
Résultat | string |
protected elFinderStorageDriver $default | ||
Résultat | elFinderStorageDriver |
public static string $defaultMimefile | ||
Résultat | string |
public static object $instance | ||
Résultat | object |
public static string $locale | ||
Résultat | string |
protected int $maxArcFilesSize | ||
Résultat | integer |
public array $mountErrors | ||
Résultat | array |
public static array $netDrivers | ||
Résultat | array |
protected string $netVolumesSessionKey | ||
Résultat | string |
protected array $optionsNetVolumes | ||
Résultat | array |
public static array $phpErrors | ||
Résultat | array |
protected elFinderSessionInterface $session | ||
Résultat | elFinderSessionInterface |
public static string $sessionCacheKey | ||
Résultat | string |
protected bool $sessionCloseEarlier | ||
Résultat | boolean |
protected array $sessionUseCmds | ||
Résultat | array |
protected string $uploadDebug | ||
Résultat | string |
protected string $uploadTempPath | ||
Résultat | string |
public static int $volumesCnt | ||
Résultat | integer |