Class elFinder
elFinder - file manager for web. Core class.
Author: Dmitry (dio) Levashov
Author: Troex Nevelin
Author: Alexey Sukhotin
Located at zp-extensions/elFinder/php/elFinder.class.php
| 
			 public 
			
			
			 | |
| 
			 public 
			 | |
| 
			 public 
			boolean
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 public 
			 | |
| 
			 public 
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			boolean
			
			 | |
| 
			 public 
			 | |
| 
			 public 
			array
			
			 | |
| 
			 public 
			array
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 public 
			 | |
| 
			 public 
			 | |
| 
			 public 
			boolean
			
			 | 
		#
		 updateNetVolumeOption( string $netKey, string $optionKey, mixed $val )Update sesstion value of a NetVolume option | 
| 
			 public 
			
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			
			
			 | |
| 
			 protected 
			boolean
			
			 | |
| 
			 protected 
			object
			
			 | 
		#
		 getPluginInstance( string $name, array $opts = array() )Get plugin instance & set to $this->plugins | 
| 
			 public 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			
			
			 | |
| 
			 protected 
			string,
			
			 | 
		#
		 get_remote_contents( string & $url, integer $timeout = 30, integer $redirect_max = 5, string $ua = 'Mozilla/5.0', resource $fp = null )Get remote contents | 
| 
			 protected 
			string,
			
			 | 
		#
		 curl_get_contents( string & $url, integer $timeout, integer $redirect_max, string $ua, resource $outfp )Get remote contents with cURL | 
| 
			 protected 
			string,
			
			 | 
		#
		 fsock_get_contents( string & $url, integer $timeout, integer $redirect_max, string $ua, resource $outfp )Get remote contents with fsockopen() | 
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			string
			
			 | |
| 
			 protected 
			string
			
			 | 
		#
		 detectFileExtension( object $volume, string $path, string $name )Detect file type extension by local path | 
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			
			
			 | |
| 
			 protected 
			boolean
			
			 | 
		#
		 toastErrorHandler( integer $errno, string $errstr, string $errfile, integer $errline )Error handler for send toast message to client side | 
| 
			 public static
			boolean
			
			 | 
		#
		 phpErrorHandler( integer $errno, string $errstr, string $errfile, integer $errline )PHP error handler, catch error types only E_WARNING | E_NOTICE | E_USER_WARNING | E_USER_NOTICE | 
| 
			 protected 
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			array
			
			 | |
| 
			 protected 
			
			
			 | |
| 
			 protected 
			string|false
			
			 | 
		#
		 getNetVolumeUniqueId( array $netVolumes = null, string $prefix = 'nm' )Return Network mount volume unique ID | 
| 
			 protected 
			boolean
			
			 | |
| 
			 protected 
			
			
			 | |
| 
			 protected 
			boolean
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 protected 
			array|false
			
			 | 
		#
		 ensureDirsRecursively( object $volume, string $target, array $dirs, string $path = '' )Ensure directories recursively | 
| 
			 public 
			
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 public static
			string
			
			 | |
| 
			 public static
			boolean
			
			 | |
| 
			 public static
			boolean
			
			 | |
| 
			 public static
			boolean
			
			 | |
| 
			 public static
			
			
			 | |
| 
			 public static
			boolean
			
			 | |
| 
			 public static
			mixed|string
			
			 | |
| 
			 public static
			boolean|mixed
			
			 | 
		#
		 sessionDataDecode( mixed & $var, boolean $checkIs = null )base64_decode and unserialize of session data (If needed) | 
| 
			 public static
			
			
			 | |
| 
			 public static
			mixed|null
			
			 | |
| 
			 public static
			
			
			 | 
		#
		 extendTimeLimit( Int $time = null )Extend PHP execution time limit and also check connection is aborted | 
| 
			 public static
			
			
			 | |
| 
			 public static
			number
			
			 | |
| 
			 public static
			number
			
			 | |
| 
			 public static
			string
			
			 | |
| 
			 public static
			resource|boolean
			
			 | |
| 
			 public 
			string
			
			 | |
| 
			 public static
			mixed
			
			 | |
| 
			 public static
			boolean
			
			 | |
| 
			 public static
			array
			
			 | 
		#
		 splitFileExtention( string $name )Return array ["name without extention", "extention"] by filename | 
| 
			 public static
			integer
			
			 | |
| 
			 public static
			
			
			 | |
| 
			 public static
			integer
			
			 | |
| 
			 protected static
			string
			
			 | |
| 
			 protected static
			string
			
			 | |
| 
			 public static
			
			
			 | |
| 
			 public static
			
			
			 | |
| 
			 public static
			
			
			 | 
| string | 
				ERROR_ACCESS_DENIED
			 | 
				#
				 'errAccess' | 
| string | 
				ERROR_ARC_MAXSIZE
			 | 
				#
				 'errArcMaxSize' | 
| string | 
				ERROR_ARC_SYMLINKS
			 | 
				#
				 'errArcSymlinks' | 
| string | 
				ERROR_ARCHIVE
			 | 
				#
				 'errArchive' | 
| string | 
				ERROR_ARCHIVE_EXEC
			 | 
				#
				 'errArchiveExec' | 
| string | 
				ERROR_ARCHIVE_TYPE
			 | 
				#
				 'errArcType' | 
| string | 
				ERROR_CONF
			 | 
				#
				 'errConf' | 
| string | 
				ERROR_CONF_NO_JSON
			 | 
				#
				 'errJSON' | 
| string | 
				ERROR_CONF_NO_VOL
			 | 
				#
				 'errNoVolumes' | 
| string | 
				ERROR_CONV_UTF8
			 | 
				#
				 'errConvUTF8' | 
| string | 
				ERROR_COPY
			 | 
				#
				 'errCopy' | 
| string | 
				ERROR_COPY_FROM
			 | 
				#
				 'errCopyFrom' | 
| string | 
				ERROR_COPY_ITSELF
			 | 
				#
				 'errCopyInItself' | 
| string | 
				ERROR_COPY_TO
			 | 
				#
				 'errCopyTo' | 
| string | 
				ERROR_CREATING_TEMP_DIR
			 | 
				#
				 'errCreatingTempDir' | 
| string | 
				ERROR_DIR_NOT_FOUND
			 | 
				#
				 'errFolderNotFound' | 
| string | 
				ERROR_EXISTS
			 | 
				#
				 'errExists' | 
| string | 
				ERROR_EXTRACT
			 | 
				#
				 'errExtract' | 
| string | 
				ERROR_EXTRACT_EXEC
			 | 
				#
				 'errExtractExec' | 
| string | 
				ERROR_FILE_NOT_FOUND
			 | 
				#
				 'errFileNotFound' | 
| string | 
				ERROR_FTP_DOWNLOAD_FILE
			 | 
				#
				 'errFtpDownloadFile' | 
| string | 
				ERROR_FTP_MKDIR
			 | 
				#
				 'errFtpMkdir' | 
| string | 
				ERROR_FTP_UPLOAD_FILE
			 | 
				#
				 'errFtpUploadFile' | 
| string | 
				ERROR_INV_PARAMS
			 | 
				#
				 'errCmdParams' | 
| string | 
				ERROR_INVALID_DIRNAME
			 | 
				#
				 'errInvDirname' | 
| string | 
				ERROR_INVALID_NAME
			 | 
				#
				 'errInvName' | 
| string | 
				ERROR_LOCKED
			 | 
				#
				 'errLocked' | 
| string | 
				ERROR_MAX_TARGTES
			 | 
				#
				 'errMaxTargets' | 
| string | 
				ERROR_MKDIR
			 | 
				#
				 'errMkdir' | 
| string | 
				ERROR_MKFILE
			 | 
				#
				 'errMkfile' | 
| string | 
				ERROR_MKOUTLINK
			 | 
				#
				 'errMkOutLink' | 
| string | 
				ERROR_MOVE
			 | 
				#
				 'errMove' | 
| string | 
				ERROR_NETMOUNT
			 | 
				#
				 'errNetMount' | 
| string | 
				ERROR_NETMOUNT_FAILED
			 | 
				#
				 'errNetMountFailed' | 
| string | 
				ERROR_NETMOUNT_NO_DRIVER
			 | 
				#
				 'errNetMountNoDriver' | 
| string | 
				ERROR_NETUNMOUNT
			 | 
				#
				 'errNetUnMount' | 
| string | 
				ERROR_NOT_ARCHIVE
			 | 
				#
				 'errNoArchive' | 
| string | 
				ERROR_NOT_DIR
			 | 
				#
				 'errNotFolder' | 
| string | 
				ERROR_NOT_FILE
			 | 
				#
				 'errNotFile' | 
| string | 
				ERROR_NOT_REPLACE
			 | 
				#
				 'errNotReplace' | 
| string | 
				ERROR_NOT_UTF8_CONTENT
			 | 
				#
				 'errNotUTF8Content' | 
| string | 
				ERROR_OPEN
			 | 
				#
				 'errOpen' | 
| string | 
				ERROR_PERM_DENIED
			 | 
				#
				 'errPerm' | 
| string | 
				ERROR_REAUTH_REQUIRE
			 | 
				#
				 'errReauthRequire' | 
| string | 
				ERROR_RENAME
			 | 
				#
				 'errRename' | 
| string | 
				ERROR_REPLACE
			 | 
				#
				 'errReplace' | 
| string | 
				ERROR_RESIZE
			 | 
				#
				 'errResize' | 
| string | 
				ERROR_RESIZESIZE
			 | 
				#
				 'errResizeSize' | 
| string | 
				ERROR_RM
			 | 
				#
				 'errRm' | 
| string | 
				ERROR_RM_SRC
			 | 
				#
				 'errRmSrc' | 
| string | 
				ERROR_SAVE
			 | 
				#
				 'errSave' | 
| string | 
				ERROR_SEARCH_TIMEOUT
			 | 
				#
				 'errSearchTimeout' | 
| string | 
				ERROR_SESSION_EXPIRES
			 | 
				#
				 'errSessionExpires' | 
| string | 
				ERROR_TRGDIR_NOT_FOUND
			 | 
				#
				 'errTrgFolderNotFound' | 
| string | 
				ERROR_UNKNOWN
			 | 
				#
				 'errUnknown' | 
| string | 
				ERROR_UNKNOWN_CMD
			 | 
				#
				 'errUnknownCmd' | 
| string | 
				ERROR_UNSUPPORT_TYPE
			 | 
				#
				 'errUsupportType' | 
| string | 
				ERROR_UPLOAD
			 | 
				#
				 'errUpload' | 
| string | 
				ERROR_UPLOAD_FILE
			 | 
				#
				 'errUploadFile' | 
| string | 
				ERROR_UPLOAD_FILE_MIME
			 | 
				#
				 'errUploadMime' | 
| string | 
				ERROR_UPLOAD_FILE_SIZE
			 | 
				#
				 'errUploadFileSize' | 
| string | 
				ERROR_UPLOAD_NO_FILES
			 | 
				#
				 'errUploadNoFiles' | 
| string | 
				ERROR_UPLOAD_TEMP
			 | 
				#
				 'errUploadTemp' | 
| string | 
				ERROR_UPLOAD_TOTAL_SIZE
			 | 
				#
				 'errUploadTotalSize' | 
| string | 
				ERROR_UPLOAD_TRANSFER
			 | 
				#
				 'errUploadTransfer' | 
| 
			protected static 
			float
		 | $ApiVersion API version number | 
				#
				 2.1 | 
| 
			protected  
			string
		 | $version API version number | |
| 
			protected static 
			integer
		 | $ApiRevision API revision that this connector supports all functions | 
				#
				 57 | 
| 
			protected  
			array
		 | $volumes Storages (root dirs) | 
				#
				 array() | 
| 
			public static 
			object
		 | $instance elFinder instance | 
				#
				 null | 
| 
			public static 
			array
		 | $currentArgs Current request args | 
				#
				 array() | 
| 
			public static 
			array
		 | $netDrivers Network mount drivers | 
				#
				 array() | 
| 
			public static 
			string
		 | $locale elFinder global locale | 
				#
				 '' | 
| 
			public static 
			string
		 | $defaultMimefile elFinderVolumeDriver default mime.type file path | 
				#
				 '' | 
| 
			public static 
			string
		 | $tmpLinkPath A file save destination path when a temporary content URL is required on a network volume or the like It can be overwritten by volume route setting | 
				#
				 '' | 
| 
			public static 
			string
		 | $tmpLinkUrl A file save destination URL when a temporary content URL is required on a network volume or the like It can be overwritten by volume route setting | 
				#
				 '' | 
| 
			public static 
			integer
		 | $tmpLinkLifeTime Temporary content URL lifetime (seconds) | 
				#
				 3600 | 
| 
			public static 
			array
		 | $textMimes MIME type list handled as a text file | 
				#
				 array(
    'application/dash+xml',
    'application/docbook+xml',
    'application/javascript',
    'application/json',
    'application/plt',
    'application/sat',
    'application/sql',
    'application/step',
    'application/vnd.hp-hpgl',
    'application/x-awk',
    'application/x-config',
    'application/x-csh',
    'application/x-empty',
    'application/x-mpegurl',
    'application/x-perl',
    'application/x-php',
    'application/x-web-config',
    'application/xhtml+xml',
    'application/xml',
    'audio/x-mp3-playlist',
    'image/cgm',
    'image/svg+xml',
    'image/vnd.dxf',
    'model/iges'
) | 
| 
			public static 
			integer|string
		 | $memoryLimitGD Maximum memory size to be extended during GD processing (0: not expanded, -1: unlimited or memory size notation) | 
				#
				 0 | 
| 
			protected static 
			string
		 | $abortCheckFile Path of current request flag file for abort check | 
				#
				 null | 
| 
			protected  
			 | $session elFinder session wrapper object | |
| 
			public static 
			string
		 | $sessionCacheKey elFinder global sessionCacheKey | 
				#
				 '' | 
| 
			protected static 
			boolean
		 | $base64encodeSessionData elFinder base64encodeSessionData
elFinder save session data as  | 
				#
				 false | 
| 
			protected static 
			string
		 | $commonTempPath elFinder common tempraly path | 
				#
				 '' | 
| 
			protected  
			callable
		 | $urlUploadFilter Callable function for URL upload filter The first argument is a URL and the second argument is an instance of the elFinder class A filter should be return true (to allow) / false (to disallow) | 
				#
				 null | 
| 
			protected static 
			string
		 | $connectionFlagsPath Connection flag files path that connection check of current request | 
				#
				 '' | 
| 
			protected  
			array
		 | $optionsNetVolumes Additional volume root options for network mounting volume | 
				#
				 array() | 
| 
			protected  
			string
		 | $netVolumesSessionKey Session key of net mount volumes | 
				#
				 '' | 
| 
			public static 
			integer
		 | $volumesCnt Mounted volumes count Required to create unique volume id | 
				#
				 1 | 
| 
			protected  
			 | $default Default root (storage) | 
				#
				 null | 
| 
			protected  
			array
		 | $commands Commands and required arguments list | 
				#
				 array(
    'abort' => array('id' => true),
    'archive' => array('targets' => true, 'type' => true, 'mimes' => false, 'name' => false),
    'callback' => array('node' => true, 'json' => false, 'bind' => false, 'done' => false),
    'chmod' => array('targets' => true, 'mode' => true),
    'dim' => array('target' => true, 'substitute' => false),
    'duplicate' => array('targets' => true, 'suffix' => false),
    'editor' => array('name' => true, 'method' => true, 'args' => false),
    'extract' => array('target' => true, 'mimes' => false, 'makedir' => false),
    'file' => array('target' => true, 'download' => false, 'cpath' => false, 'onetime' => false),
    'get' => array('target' => true, 'conv' => false),
    'info' => array('targets' => true, 'compare' => false),
    'ls' => array('target' => true, 'mimes' => false, 'intersect' => false),
    'mkdir' => array('target' => true, 'name' => false, 'dirs' => false),
    'mkfile' => array('target' => true, 'name' => true, 'mimes' => false),
    'netmount' => array('protocol' => true, 'host' => true, 'path' => false, 'port' => false, 'user' => false, 'pass' => false, 'alias' => false, 'options' => false),
    'open' => array('target' => false, 'tree' => false, 'init' => false, 'mimes' => false, 'compare' => false),
    'parents' => array('target' => true, 'until' => false),
    'paste' => array('dst' => true, 'targets' => true, 'cut' => false, 'mimes' => false, 'renames' => false, 'hashes' => false, 'suffix' => false),
    'put' => array('target' => true, 'content' => '', 'mimes' => false, 'encoding' => false),
    'rename' => array('target' => true, 'name' => true, 'mimes' => false, 'targets' => false, 'q' => false),
    'resize' => array('target' => true, 'width' => false, 'height' => false, 'mode' => false, 'x' => false, 'y' => false, 'degree' => false, 'quality' => false, 'bg' => false),
    'rm' => array('targets' => true),
    'search' => array('q' => true, 'mimes' => false, 'target' => false, 'type' => false),
    'size' => array('targets' => true),
    'subdirs' => array('targets' => true),
    'tmb' => array('targets' => true),
    'tree' => array('target' => true),
    'upload' => array('target' => true, 'FILES' => true, 'mimes' => false, 'html' => false, 'upload' => false, 'name' => false, 'upload_path' => false, 'chunk' => false, 'cid' => false, 'node' => false, 'renames' => false, 'hashes' => false, 'suffix' => false, 'mtime' => false, 'overwrite' => false, 'contentSaveId' => false),
    'url' => array('target' => true, 'options' => false),
    'zipdl' => array('targets' => true, 'download' => false)
) | 
| 
			protected  
			array
		 | $plugins Plugins instance | 
				#
				 array() | 
| 
			protected  
			array
		 | $listeners Commands listeners | 
				#
				 array() | 
| 
			protected  
			string
		 | $time script work time for debug | 
				#
				 0 | 
| 
			protected  
			boolean
		 | $loaded Is elFinder init correctly? | 
				#
				 false | 
| 
			protected  
			string
		 | $debug Send debug to client? | 
				#
				 false | 
| 
			protected  
			boolean
		 | $sessionCloseEarlier Call  | 
				#
				 true | 
| 
			protected  
			array
		 | $sessionUseCmds SESSION use commands @see __construct() | 
				#
				 array() | 
| 
			protected  
			integer
		 | $timeout session expires timeout | 
				#
				 0 | 
| 
			protected  
			string
		 | $uploadTempPath Temp dir path for Upload | 
				#
				 '' | 
| 
			protected  
			integer
		 | $maxArcFilesSize Max allowed archive files size (0 - no limit) | 
				#
				 0 | 
| 
			protected  
			string
		 | $uploadDebug undocumented class variable | 
				#
				 '' | 
| 
			public  
			integer
		 | $maxTargets Max allowed numbar of targets (0 - no limit) | 
				#
				 1000 | 
| 
			public static 
			array
		 | $phpErrors Errors from PHP | 
				#
				 array() | 
| 
			public  
			array
		 | $mountErrors Errors from not mounted volumes | 
				#
				 array() | 
| 
			public static 
			array
		 | $archivers Archivers cache | 
				#
				 array() | 
| 
			protected  
			string
		 | $callbackWindowURL URL for callback output window for CORS redirect to this URL when callback output | 
				#
				 '' | 
| 
			protected  
			array
		 | $autoUnlocks hash of items to unlock on command completion | 
				#
				 array() | 
| 
			protected  
			integer
		 | $itemLockExpire Item locking expiration (seconds) Default: 3600 secs | 
				#
				 3600 | 
| 
			protected  
			array|null
		 | $customData Additional request querys | 
				#
				 null | 
| 
			protected  
			array
		 | $removeContentSaveIds Ids to remove of session var "urlContentSaveIds" for contents uploading by URL | 
				#
				 array() | 
| 
			protected  
			boolean
		 | $throwErrorOnExec Flag of throw Error on exec() | 
				#
				 false | 
| 
			protected  
			array
		 | $toastParamsDefault Default params of toastParams | 
				#
				 array(
    'mode'   => 'warning',
    'prefix' => ''
) |