PHP 클래스 elFinderVolumeDriver

Provide 2 layers: 1. Public API (commands) 2. abstract fs API All abstract methods begin with "_"
저자: Dmitry (dio) Levashov
저자: Troex Nevelin
저자: Alexey Sukhotin
파일 보기 프로젝트 열기: studio-42/elfinder 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$netMountKey string Net mount key

보호된 프로퍼티들

프로퍼티 타입 설명
$ARGS array Request args $_POST or $_GET values
$URL string Base URL
$access mixed Access control function/class
$added array Store files added files info
$archivers array Archivers config
$attributes mixed Access control function/class
$cache array Cache storage
$cryptLib string Library to crypt files name
$defaults array Defaults permissions
$dirsCache array Cache by folders
$disabled array List of disabled client's commands
$doSearchCurrentQuery string Current query word on doSearch
$driverId string Driver id Must be started from letter and contains [a-z0-9] Used as part of volume id
$encoding Server character encoding
$error array Errors from last failed action
$extractToNewdir integer Force make dirctory on extract
$finfo object Finfo object for mimeDetect == 'finfo'
$id string Volume id - used as prefix for files hashes
$imgConverter array Video to Image converter
$imgLib string Image manipulation lib name auto|imagick|gd|convert
$mimeDetect string Mimetype detect method
$mimetypes array default extensions/mimetypes for mimeDetect == 'internal'
$mounted boolean Flag - volume "mounted" and available
$onlyMimes array Mimetypes allowed to display
$options array Object configuration
$removed array Store files moved or overwrited files info
$root string Root directory path
$rootModified boolean Is root modified (for clear root stat cache)
$rootName string Root basename | alias
$searchStart integer Search start time
$separator string Directory separator - required by client
$session elFinderSessionInterface elFinder session wrapper object
$sessionCache array This volume session cache
$sessionCaching array Session caching item list
$startPath string Default directory to open
$subdirsCache array You should use $this->sessionCache['subdirs'] instead
$systemRoot string ..)
$tmbPath string Thumbnails dir path
$tmbPathWritable boolean Is thumbnails dir writable
$tmbSize integer Thumbnails size in px
$tmbURL string Thumbnails base URL
$today integer Today 24:00 timestamp
$treeDeep integer How many subdirs levels return for tree
$uploadAllow array Mime types allowed to upload
$uploadDeny array Mime types denied to upload
$uploadMaxSize integer | string Set as number or string with unit - "10M", "500K", "1G"
$uploadOrder array Order to validate uploadAllow and uploadDeny
$yesterday integer Yesterday 24:00 timestamp

공개 메소드들

메소드 설명
__destruct ( ) Destracter
added ( ) : array Return list of added files
archive ( $hashes, $mime, string $name = '' ) : array | boolean Add files to archive
chmod ( string $hash, string $mode ) : array | false chmod a file or folder
clearcaches ( string $hash = null ) Clear inner stat caches for target hash
clearstatcache ( ) Clear PHP stat cache & all of inner stat caches
close ( Resource $fp, string $hash ) : void Close file pointer
closest ( string $hash, string $attr, boolean $val ) : string | false Return file/dir hash or first founded child hash with required attr == $val
commandDisabled ( string $cmd ) : boolean Return true if command disabled in options
convEncIn ( mixed $var = null, boolean $restoreLocale = false, string $unknown = '_' ) : mixed Converts character encoding from UTF-8 to server's one
convEncOut ( mixed $var = null, boolean $restoreLocale = true, string $unknown = '_' ) : mixed Converts character encoding from server's one to UTF-8
copyFromAllowed ( ) : boolean Return true if copy from this volume allowed
debug ( ) : array Return debug info for client
defaultPath ( ) : string Return root or startPath hash
dimensions ( string $hash ) : array Return image dimensions
dir ( string $hash, boolean $resolveLink = false ) : array | false Return folder info
driverId ( ) : string Return driver id. Used as a part of volume id.
duplicate ( string $hash, string $suffix = 'copy' ) : array | false Create file copy with suffix "copy number" and return its info
error ( ) : array Return error message from last failed action
extract ( string $hash, null $makedir = null ) : array | boolean Extract files from archive
ffmpegToImg ( $file, $stat ) : boolean Convert Video To Image by ffmpeg
file ( string $hash ) : array | false Return file info or false on error
fstat ( string $hash ) : array stat a file or folder for elFinder cmd exec
getContentUrl ( string $hash, array $options = [] ) : boolean | string Return content URL (for netmout volume driver) If file.url == 1 requests from JavaScript client with XHR
getContents ( string $hash ) : string | false Return file contents
getExtentionByMime ( string $mime, string $suffix = '' ) : string Return file extention detected by MIME type
getHash ( string $path, string $name = '' ) : string Return target path hash
getImageSize ( string $path, string $mime = '' ) : array | false Get image size array with dimensions
getMimeTable ( ) : array Return Extention/MIME Table (elFinderVolumeDriver::$mimetypes)
getOption ( string $name ) : null | mixed Get option value of this volume
getOptionsPlugin ( string $name = '' ) : null | array Get plugin values of this options
getPath ( string $hash ) : string Return decoded path of target hash This method do not check the stat of target Use method realpath() to do check of the stat of target
getTempPath ( ) : string Return temp path
getUploadMaxSize ( ) : integer Return this uploadMaxSize value
getUploadTaget ( string $baseTargetHash, string $path, array &$result ) : boolean | string (Make &) Get upload taget dirctory hash
id ( ) : string Return volume id
imageUtil ( string $mode, string $src, array $options = [] ) : boolean Image file utility
isReadable ( ) : boolean Return true if voume is readable.
isUploadableByName ( string $name, boolean $allowUnknown = true ) : boolean Return is uploadable that given file name
ls ( string $hash, null $intersect = null ) : array Return dir files names list
mimeAccepted ( string $mime, array $mimes = null, boolean | null $empty = true ) : boolean | null Return true if mime is required mimes list
mkdir ( string $dsthash, string $name ) : array | false Create directory and return dir info
mkfile ( string $dst, string $name ) : array | false Create empty file and return its info
mount ( array $opts ) : boolean "Mount" volume.
open ( $hash ) : Resource Open file for reading and return file pointer
options ( $hash ) : array Return volume options required by client:
parents ( string $hash, boolean | null $lineal = false ) : array Return part of dirs tree from required dir up to root dir
paste ( Object $volume, $src, string $dst, boolean $rmSrc = false, array $hashes = [] ) : array | false Paste files
path ( string $hash ) : string Return file path related to root with convert encoging
putContents ( string $hash, string $content ) : array Put content in text file and return file info.
realpath ( string $hash ) : string | false Return file real path if file exists
removed ( ) : array Return list of moved/overwrited files
rename ( string $hash, string $name ) : array | false Rename file and return file info
resetRemoved ( ) : void Clean removed files list
resetResultStat ( ) : void Clean added/removed files list
resize ( string $hash, integer $width, integer $height, integer $x, integer $y, string $mode = 'resize', string $bg = '', integer $degree, integer $jpgQuality = null ) : array | false Resize image
rm ( string $hash ) : boolean Remove file/dir
rmdirRecursive ( string $dir ) : boolean Remove directory recursive on local file system
root ( ) : string Return root folder hash
scandir ( string $hash ) : array | false Return directory content or false on error
search ( string $q, array $mimes, null $hash = null ) : array Search files
setMimesFilter ( array $mimes ) : void Set mimetypes allowed to display to client
setSession ( $session ) Assign elFinder session wrapper object
size ( $hash ) : integer Return file size / total directory size
tmb ( $hash ) : false | string Create thumbnail for required file and return its name of false on failed
tree ( string $hash = '', integer $deep, string $exclude = '' ) : array | false Return subfolders for required folder or false on error
umount ( ) : void Some "unmount" stuffs - may be required by virtual fs
uniqueName ( $dir, $name, string $suffix = ' copy', boolean $checkNum = true, integer $start = 1 ) : string Return new unique name based on file name and suffix
upload ( Resource $fp, string $dst, $name, string $tmpname, array $hashes = [] ) : array | false Save uploaded file.
zipdl ( array $hashes ) : string Return path to archive of target items

보호된 메소드들

메소드 설명
_abspath ( string $path ) : string Convert path related to root dir into real path
_archive ( string $dir, array $files, string $name, array $arc ) : string | boolean Create archive and return its path
_basename ( string $path ) : string Return file name
_checkArchivers ( ) : void Detect available archivers
_chmod ( string $path, string $mode ) : boolean Change file mode (chmod)
_copy ( string $source, $targetDir, string $name ) : boolean | string Copy file into another file (only inside one volume)
_dimensions ( string $path, string $mime ) : string Return object width and height Ususaly used for images, but can be realize for video etc.
_dirname ( string $path ) : string Return parent directory path
_extract ( string $path, array $arc ) : boolean Extract files from archive
_fclose ( resource $fp, string $path = '' ) : boolean Close opened file
_filePutContents ( string $path, string $content ) : boolean Write a string to a file
_fopen ( string $path, string $mode = "rb" ) : resource | false Open file and return file pointer
_getContents ( string $path ) : string | false Get file contents
_inpath ( string $path, string $parent ) : boolean Return true if $path is children of $parent
_joinPath ( string $dir, string $name ) : string Join dir name and file name and return full path.
_mkdir ( string $path, string $name ) : string | boolean Create dir and return created dir path or false on failed
_mkfile ( string $path, string $name ) : string | boolean Create file and return it's path or false on failed
_move ( string $source, $targetDir, string $name ) : boolean | string Move file into another parent dir.
_normpath ( string $path ) : string Return normalized path
_path ( string $path ) : string Return fake path started from root dir.
_relpath ( string $path ) : string Return file path related to root dir
_rmdir ( string $path ) : boolean Remove dir
_save ( resource $fp, string $dir, string $name, array $stat ) : boolean | string Create new file and write into it from file pointer.
_scandir ( string $path ) : array Return files list in directory
_stat ( string $path ) : array | false Return stat for given path.
_subdirs ( string $path ) : boolean Return true if path is dir and has at least one childs directory
_symlink ( string $source, string $targetDir, string $name ) : boolean Create symlink
_unlink ( string $path ) : boolean Remove file
abspathCE ( string $path ) : string Convert path related to root dir into real path (with convert encoding)
allowCreate ( string $dir, string $name, null $isDir = null ) : boolean Return true if file with given name can be created in given folder.
allowPutMime ( string $mime ) : boolean Return true if file MIME type can save with check uploadOrder config.
attr ( string $path, string $name, boolean $val = null, boolean $isDir = null ) : boolean Check file attribute
basenameCE ( string $path ) : string Return file name (with convert encoding)
cacheDir ( string $path ) : void Get stat for folder content and put in cache
canCreateTmb ( string $path, array $stat, boolean $checkTmbPath = true ) : string | boolean Return true if thumnbnail for required file can be created
canResize ( string $path, array $stat ) : string | boolean Return true if required file can be resized.
childsByAttr ( string $path, string $attr, boolean $val ) : string | false Return first found children with required attr == $val
clearcache ( ) : void Clean cache
closestByAttr ( string $path, string $attr, boolean $val ) : string | false If file has required attr == $val - return file path, If dir has child with has required attr == $val - return child path
configure ( ) : void Configure after successfull mount.
convEnc ( mixed $var, string $from, string $to, string $locale, $restoreLocale, string $unknown = '_' ) : mixed Converts character encoding (base function)
copy ( string $src, string $dst, string $name ) : string | false Copy file/recursive copy dir only in current volume.
copyFrom ( Object $volume, string $src, string $destination, string $name ) : string | false Copy file from another volume.
countSize ( string $path ) : integer Return file/total directory size
createTmb ( string $path, $stat ) : false | string Create thumnbnail and return it's URL on success
crypt ( $path ) : mixed Return crypted path Not implemented
decode ( $hash ) : string Decode path from hash
delTree ( string $localpath ) : boolean Delete dirctory trees
dirnameCE ( string $path ) : string Return parent directory path (with convert encoding)
doSearch ( string $path, string $q, array $mimes ) : array Recursive files search
encode ( $path ) : string Encode path into hash
fcloseCE ( resource $fp, string $path = '' ) : boolean Close opened file (with convert encoding)
fopenCE ( string $path, string $mode = 'rb' ) : false | resource Open file and return file pointer (with convert encoding)
gdImage ( resource $image, string $filename, string $destformat, string $mime, integer $jpgQuality = null ) : boolean Output gd image to file
gdImageBackground ( resource $image, string $bgcolor ) Assign the proper background to a gd image
gdImageCreate ( string $path, string $mime ) : gd Create an gd image according to the specified mime type
getArchivers ( boolean $use_cache = true ) : array Get server side available archivers
getFullPath ( string $path, string $base ) : string Resolve relative / (Unix-like)absolute path
getItemsInHand ( array $hashes, string $dir = null ) : string | false Copy items to a new temporary directory on the local server
getRootStatExtra ( ) : array Get root stat extra key values
getScandir ( string $path ) : array Return required dir's files info.
getTempFile ( string $path = '' ) : string | false Get temporary filename. Tempfile will be removed when after script execution finishes or exit() is called.
getWorkFile ( string $path ) : string File path of local server side work file path
gettmb ( string $path, array $stat ) : string | false Return thumnbnail name if exists
gettree ( string $path, integer $deep, string $exclude = '' ) : array Return subdirs tree
imageMagickConvertPrepare ( string $path, string $destformat, integer $jpgQuality, array $imageSize = null ) : array Prepare variables for exec convert of ImageMagick
imagickImage ( resource $img, string $filename, string $destformat, integer $jpgQuality = null ) : boolean Output imagick image to file
imgCrop ( string $path, integer $width, integer $height, boolean $x, boolean $y, string $destformat = null, integer $jpgQuality = null ) : string | false Crop image
imgResize ( string $path, integer $width, integer $height, boolean $keepProportions = false, boolean $resizeByBiggerSide = true, string $destformat = null, integer $jpgQuality = null, array $options = [] ) : string | false Resize image
imgRotate ( string $path, integer $degree, string $bgcolor = '#ffffff', string $destformat = null, integer $jpgQuality = null ) : string | false Rotate image
imgSquareFit ( string $path, integer $width, integer $height, integer | string $align = 'center', integer | string $valign = 'middle', string $bgcolor = '#0000ff', string $destformat = null, integer $jpgQuality = null ) : false | string Put image to square
init ( ) : boolean Prepare driver before mount volume.
inpathCE ( string $path, string $parent ) : boolean Return true if $path is children of $parent (with convert encoding)
isMyReload ( $target = '', $ARGtarget = '' )
isNameExists ( string $path ) : array Return fileinfo based on filename For item ID based path file system Please override if needed on each drivers
isSameType ( string $mime1, string $mime2 ) : boolean Return true if all mimes is directory or files
joinPathCE ( string $dir, string $name ) : string Join dir name and file name and return full path. (with convert encoding) Some drivers (db) use int as path - so we give to concat path to driver itself
localScandir ( string $dir ) : array Return files of target directory that is dotfiles excludes.
makeArchive ( string $dir, array $files, string $name, array $arc ) : string | boolean Create archive and return its path
mimetype ( string $path, string $name = '' ) : string Return file mimetype
mimetypeInternalDetect ( string $path = '' ) : string Detect file mimetype using "internal" method or Loading mime.types with $path = ''
move ( string $src, string $dst, string $name ) : string | false Move file Return new file path or false.
nameAccepted ( string $name ) : boolean Validate file name based on $this->options['acceptedName'] regexp or function
normpathCE ( string $path ) : string Return normalized path (with convert encoding)
procExec ( string $command, array &$output = null, array | integer &$return_var, array &$error_output = null ) : integer Execute shell command
relpathCE ( string $path ) : string Return file path related to root dir (with convert encoding)
remove ( string $path, boolean $force = false ) : boolean Remove file/ recursive remove dir
rmTmb ( string $stat ) : void Remove thumbnail, also remove recursively if stat is directory
saveCE ( resource $fp, string $dir, string $name, array $stat ) : boolean | string Create new file and write into it from file pointer. (with convert encoding) Return new file path or false on error.
scandirCE ( string $path ) : array Return files list in directory (with convert encoding)
sessionRestart ( )
setError ( $error ) : false Save error message
stat ( string $path ) : array Return fileinfo
stripos ( string $haystack, string $needle, integer $offset ) : integer | boolean Find position of first occurrence of string in a string with multibyte support
subdirsCE ( string $path ) : boolean Return true if path is dir and has at least one childs directory (with convert encoding)
symlinkCE ( string $source, string $targetDir, string $name ) : boolean Create symlink (with convert encoding)
tmbname ( array $stat ) : string Return thumbnail file name for required file
uncrypt ( $hash ) : mixed Return uncrypted path Not implemented
unpackArchive ( string $path, array $arc, boolean $remove = true ) : void Unpack archive
updateCache ( string $path, array $stat ) : array Put file stat in cache and return it
zipArchiveUnzip ( string $zipPath, string $toDir ) : boolean Unpack Zip archive using PHP class ZipArchive
zipArchiveZip ( string $dir, array $files, string | object $zipPath ) : boolean Create Zip archive using PHP class ZipArchive

메소드 상세

__destruct() 공개 메소드

Destracter
public __destruct ( )

_abspath() 추상적인 보호된 메소드

Convert path related to root dir into real path
저자: Dmitry (dio) Levashov
abstract protected _abspath ( string $path ) : string
$path string rel file path
리턴 string

_archive() 추상적인 보호된 메소드

Create archive and return its path
저자: Dmitry (dio) Levashov,
저자: Alexey Sukhotin
abstract protected _archive ( string $dir, array $files, string $name, array $arc ) : string | boolean
$dir string target dir
$files array files names list
$name string archive name
$arc array archiver options
리턴 string | boolean

_basename() 추상적인 보호된 메소드

Return file name
저자: Dmitry (dio) Levashov
abstract protected _basename ( string $path ) : string
$path string file path
리턴 string

_checkArchivers() 추상적인 보호된 메소드

Detect available archivers
저자: Dmitry (dio) Levashov,
저자: Alexey Sukhotin
abstract protected _checkArchivers ( ) : void
리턴 void

_chmod() 추상적인 보호된 메소드

Change file mode (chmod)
저자: David Bartle,
abstract protected _chmod ( string $path, string $mode ) : boolean
$path string file path
$mode string octal string such as '0755'
리턴 boolean

_copy() 추상적인 보호된 메소드

Copy file into another file (only inside one volume)
저자: Dmitry (dio) Levashov
abstract protected _copy ( string $source, $targetDir, string $name ) : boolean | string
$source string source file path
$targetDir
$name string file name
리턴 boolean | string

_dimensions() 추상적인 보호된 메소드

..
저자: Dmitry (dio) Levashov
abstract protected _dimensions ( string $path, string $mime ) : string
$path string file path
$mime string file mime type
리턴 string

_dirname() 추상적인 보호된 메소드

Return parent directory path
저자: Dmitry (dio) Levashov
abstract protected _dirname ( string $path ) : string
$path string file path
리턴 string

_extract() 추상적인 보호된 메소드

Extract files from archive
저자: Dmitry (dio) Levashov,
저자: Alexey Sukhotin
abstract protected _extract ( string $path, array $arc ) : boolean
$path string file path
$arc array archiver options
리턴 boolean

_fclose() 추상적인 보호된 메소드

Close opened file
저자: Dmitry (dio) Levashov
abstract protected _fclose ( resource $fp, string $path = '' ) : boolean
$fp resource file pointer
$path string file path
리턴 boolean

_filePutContents() 추상적인 보호된 메소드

Write a string to a file
저자: Dmitry (dio) Levashov
abstract protected _filePutContents ( string $path, string $content ) : boolean
$path string file path
$content string new file content
리턴 boolean

_fopen() 추상적인 보호된 메소드

Open file and return file pointer
저자: Dmitry (dio) Levashov
abstract protected _fopen ( string $path, string $mode = "rb" ) : resource | false
$path string file path
$mode string open mode
리턴 resource | false

_getContents() 추상적인 보호된 메소드

Get file contents
저자: Dmitry (dio) Levashov
abstract protected _getContents ( string $path ) : string | false
$path string file path
리턴 string | false

_inpath() 추상적인 보호된 메소드

Return true if $path is children of $parent
저자: Dmitry (dio) Levashov
abstract protected _inpath ( string $path, string $parent ) : boolean
$path string path to check
$parent string parent path
리턴 boolean

_joinPath() 추상적인 보호된 메소드

Some drivers (db) use int as path - so we give to concat path to driver itself
저자: Dmitry (dio) Levashov
abstract protected _joinPath ( string $dir, string $name ) : string
$dir string dir path
$name string file name
리턴 string

_mkdir() 추상적인 보호된 메소드

Create dir and return created dir path or false on failed
저자: Dmitry (dio) Levashov
abstract protected _mkdir ( string $path, string $name ) : string | boolean
$path string parent dir path
$name string new directory name
리턴 string | boolean

_mkfile() 추상적인 보호된 메소드

Create file and return it's path or false on failed
저자: Dmitry (dio) Levashov
abstract protected _mkfile ( string $path, string $name ) : string | boolean
$path string parent dir path
$name string new file name
리턴 string | boolean

_move() 추상적인 보호된 메소드

Return new file path or false.
저자: Dmitry (dio) Levashov
abstract protected _move ( string $source, $targetDir, string $name ) : boolean | string
$source string source file path
$targetDir
$name string file name
리턴 boolean | string

_normpath() 추상적인 보호된 메소드

Return normalized path
저자: Dmitry (dio) Levashov
abstract protected _normpath ( string $path ) : string
$path string file path
리턴 string

_path() 추상적인 보호된 메소드

Required to show path on client side.
저자: Dmitry (dio) Levashov
abstract protected _path ( string $path ) : string
$path string file path
리턴 string

_relpath() 추상적인 보호된 메소드

Return file path related to root dir
저자: Dmitry (dio) Levashov
abstract protected _relpath ( string $path ) : string
$path string file path
리턴 string

_rmdir() 추상적인 보호된 메소드

Remove dir
저자: Dmitry (dio) Levashov
abstract protected _rmdir ( string $path ) : boolean
$path string dir path
리턴 boolean

_save() 추상적인 보호된 메소드

Return new file path or false on error.
저자: Dmitry (dio) Levashov
abstract protected _save ( resource $fp, string $dir, string $name, array $stat ) : boolean | string
$fp resource file pointer
$dir string target dir path
$name string file name
$stat array file stat (required by some virtual fs)
리턴 boolean | string

_scandir() 추상적인 보호된 메소드

Return files list in directory
저자: Dmitry (dio) Levashov
abstract protected _scandir ( string $path ) : array
$path string dir path
리턴 array

_stat() 추상적인 보호된 메소드

Stat contains following fields: - (int) size file size in b. required - (int) ts file modification time in unix time. required - (string) mime mimetype. required for folders, others - optionally - (bool) read read permissions. required - (bool) write write permissions. required - (bool) locked is object locked. optionally - (bool) hidden is object hidden. optionally - (string) alias for symlinks - link target path relative to root path. optionally - (string) target for symlinks - link target path. optionally If file does not exists - returns empty array or false.
저자: Dmitry (dio) Levashov
abstract protected _stat ( string $path ) : array | false
$path string file path
리턴 array | false

_subdirs() 추상적인 보호된 메소드

Return true if path is dir and has at least one childs directory
저자: Dmitry (dio) Levashov
abstract protected _subdirs ( string $path ) : boolean
$path string dir path
리턴 boolean

abspathCE() 보호된 메소드

Convert path related to root dir into real path (with convert encoding)
저자: Naoki Sawada
protected abspathCE ( string $path ) : string
$path string rel file path
리턴 string

added() 공개 메소드

Return list of added files
사용 중단:
저자: Naoki Sawada
public added ( ) : array
리턴 array

allowCreate() 보호된 메소드

Return true if file with given name can be created in given folder.
저자: Dmitry (dio) Levashov
protected allowCreate ( string $dir, string $name, null $isDir = null ) : boolean
$dir string parent dir path
$name string new file name
$isDir null
리턴 boolean

allowPutMime() 보호된 메소드

Return true if file MIME type can save with check uploadOrder config.
protected allowPutMime ( string $mime ) : boolean
$mime string
리턴 boolean

archive() 공개 메소드

Add files to archive
public archive ( $hashes, $mime, string $name = '' ) : array | boolean
$hashes
$mime
$name string
리턴 array | boolean

attr() 보호된 메소드

Check file attribute
저자: Dmitry (dio) Levashov
protected attr ( string $path, string $name, boolean $val = null, boolean $isDir = null ) : boolean
$path string file path
$name string attribute name (read|write|locked|hidden)
$val boolean attribute value returned by file system
$isDir boolean path is directory (true: directory, false: file)
리턴 boolean

basenameCE() 보호된 메소드

Return file name (with convert encoding)
저자: Naoki Sawada
protected basenameCE ( string $path ) : string
$path string file path
리턴 string

cacheDir() 보호된 메소드

Get stat for folder content and put in cache
저자: Dmitry (dio) Levashov
protected cacheDir ( string $path ) : void
$path string
리턴 void

canCreateTmb() 보호된 메소드

Return true if thumnbnail for required file can be created
저자: Dmitry (dio) Levashov
protected canCreateTmb ( string $path, array $stat, boolean $checkTmbPath = true ) : string | boolean
$path string thumnbnail path
$stat array file stat
$checkTmbPath boolean
리턴 string | boolean

canResize() 보호된 메소드

By default - the same as canCreateTmb
저자: Dmitry (dio) Levashov
protected canResize ( string $path, array $stat ) : string | boolean
$path string thumnbnail path
$stat array file stat
리턴 string | boolean

childsByAttr() 보호된 메소드

Return first found children with required attr == $val
저자: Dmitry (dio) Levashov
protected childsByAttr ( string $path, string $attr, boolean $val ) : string | false
$path string file path
$attr string attribute name
$val boolean attribute value
리턴 string | false

chmod() 공개 메소드

chmod a file or folder
저자: David Bartle
public chmod ( string $hash, string $mode ) : array | false
$hash string file or folder hash to chmod
$mode string octal string representing new permissions
리턴 array | false

clearcache() 보호된 메소드

Clean cache
저자: Dmitry (dio) Levashov
protected clearcache ( ) : void
리턴 void

clearcaches() 공개 메소드

Clear inner stat caches for target hash
public clearcaches ( string $hash = null )
$hash string

clearstatcache() 공개 메소드

Clear PHP stat cache & all of inner stat caches
public clearstatcache ( )

close() 공개 메소드

Close file pointer
저자: Dmitry (dio) Levashov
public close ( Resource $fp, string $hash ) : void
$fp Resource file pointer
$hash string file hash
리턴 void

closest() 공개 메소드

Return file/dir hash or first founded child hash with required attr == $val
저자: Dmitry (dio) Levashov
public closest ( string $hash, string $attr, boolean $val ) : string | false
$hash string file hash
$attr string attribute name
$val boolean attribute value
리턴 string | false

closestByAttr() 보호된 메소드

If file has required attr == $val - return file path, If dir has child with has required attr == $val - return child path
저자: Dmitry (dio) Levashov
protected closestByAttr ( string $path, string $attr, boolean $val ) : string | false
$path string file path
$attr string attribute name
$val boolean attribute value
리턴 string | false

commandDisabled() 공개 메소드

Return true if command disabled in options
저자: Dmitry (dio) Levashov
public commandDisabled ( string $cmd ) : boolean
$cmd string command name
리턴 boolean

configure() 보호된 메소드

By default set thumbnails path and image manipulation library.
저자: Dmitry (dio) Levashov
protected configure ( ) : void
리턴 void

convEnc() 보호된 메소드

Converts character encoding (base function)
protected convEnc ( mixed $var, string $from, string $to, string $locale, $restoreLocale, string $unknown = '_' ) : mixed
$var mixed target string or array var
$from string from character encoding
$to string to character encoding
$locale string local locale
$restoreLocale
$unknown string replaces character for unknown
리턴 mixed

convEncIn() 공개 메소드

Converts character encoding from UTF-8 to server's one
저자: Naoki Sawada
public convEncIn ( mixed $var = null, boolean $restoreLocale = false, string $unknown = '_' ) : mixed
$var mixed target string or array var
$restoreLocale boolean do retore global locale, default is false
$unknown string replaces character for unknown
리턴 mixed

convEncOut() 공개 메소드

Converts character encoding from server's one to UTF-8
저자: Naoki Sawada
public convEncOut ( mixed $var = null, boolean $restoreLocale = true, string $unknown = '_' ) : mixed
$var mixed target string or array var
$restoreLocale boolean do retore global locale, default is true
$unknown string replaces character for unknown
리턴 mixed

copy() 보호된 메소드

Return new file path or false.
저자: Dmitry (dio) Levashov
protected copy ( string $src, string $dst, string $name ) : string | false
$src string source path
$dst string destination dir path
$name string new file name (optionaly)
리턴 string | false

copyFrom() 보호된 메소드

Return new file path or false.
저자: Dmitry (dio) Levashov
protected copyFrom ( Object $volume, string $src, string $destination, string $name ) : string | false
$volume Object source volume
$src string source file hash
$destination string destination dir path
$name string file name
리턴 string | false

copyFromAllowed() 공개 메소드

Return true if copy from this volume allowed
저자: Dmitry (dio) Levashov
public copyFromAllowed ( ) : boolean
리턴 boolean

countSize() 보호된 메소드

Return file/total directory size
저자: Dmitry (dio) Levashov
protected countSize ( string $path ) : integer
$path string file path
리턴 integer

createTmb() 보호된 메소드

Create thumnbnail and return it's URL on success
저자: Dmitry (dio) Levashov
protected createTmb ( string $path, $stat ) : false | string
$path string file path
$stat
리턴 false | string

crypt() 보호된 메소드

Return crypted path Not implemented
저자: Dmitry (dio) Levashov
protected crypt ( $path ) : mixed
리턴 mixed

debug() 공개 메소드

Return debug info for client
저자: Dmitry (dio) Levashov
public debug ( ) : array
리턴 array

decode() 보호된 메소드

Decode path from hash
저자: Dmitry (dio) Levashov
저자: Troex Nevelin
protected decode ( $hash ) : string
리턴 string

defaultPath() 공개 메소드

Return root or startPath hash
저자: Dmitry (dio) Levashov
public defaultPath ( ) : string
리턴 string

delTree() 보호된 메소드

Delete dirctory trees
저자: Naoki Sawada
protected delTree ( string $localpath ) : boolean
$localpath string path need convert encoding to server encoding
리턴 boolean

dimensions() 공개 메소드

Return image dimensions
저자: Dmitry (dio) Levashov
public dimensions ( string $hash ) : array
$hash string file hash
리턴 array

dir() 공개 메소드

Return folder info
저자: Dmitry (dio) Levashov
public dir ( string $hash, boolean $resolveLink = false ) : array | false
$hash string folder hash
$resolveLink boolean
리턴 array | false

dirnameCE() 보호된 메소드

Return parent directory path (with convert encoding)
저자: Naoki Sawada
protected dirnameCE ( string $path ) : string
$path string file path
리턴 string

doSearch() 보호된 메소드

Recursive files search
저자: Dmitry (dio) Levashov
protected doSearch ( string $path, string $q, array $mimes ) : array
$path string dir path
$q string search string
$mimes array
리턴 array

driverId() 공개 메소드

Return driver id. Used as a part of volume id.
저자: Dmitry (dio) Levashov
public driverId ( ) : string
리턴 string

duplicate() 공개 메소드

Create file copy with suffix "copy number" and return its info
저자: Dmitry (dio) Levashov
public duplicate ( string $hash, string $suffix = 'copy' ) : array | false
$hash string file hash
$suffix string suffix to add to file name
리턴 array | false

encode() 보호된 메소드

Encode path into hash
저자: Dmitry (dio) Levashov
저자: Troex Nevelin
protected encode ( $path ) : string
리턴 string

error() 공개 메소드

Return error message from last failed action
저자: Dmitry (dio) Levashov
public error ( ) : array
리턴 array

extract() 공개 메소드

Extract files from archive
저자: Dmitry (dio) Levashov,
저자: Alexey Sukhotin
public extract ( string $hash, null $makedir = null ) : array | boolean
$hash string archive hash
$makedir null
리턴 array | boolean

fcloseCE() 보호된 메소드

Close opened file (with convert encoding)
저자: Naoki Sawada
protected fcloseCE ( resource $fp, string $path = '' ) : boolean
$fp resource file pointer
$path string file path
리턴 boolean

ffmpegToImg() 공개 메소드

Convert Video To Image by ffmpeg
저자: Naoki Sawada
public ffmpegToImg ( $file, $stat ) : boolean
$file video source file path
$stat file stat array
리턴 boolean

file() 공개 메소드

Return file info or false on error
저자: Dmitry (dio) Levashov
public file ( string $hash ) : array | false
$hash string file hash
리턴 array | false

fopenCE() 보호된 메소드

Open file and return file pointer (with convert encoding)
저자: Naoki Sawada
protected fopenCE ( string $path, string $mode = 'rb' ) : false | resource
$path string file path
$mode string
리턴 false | resource

fstat() 공개 메소드

stat a file or folder for elFinder cmd exec
저자: Naoki Sawada
public fstat ( string $hash ) : array
$hash string file or folder hash to chmod
리턴 array

gdImage() 보호된 메소드

Output gd image to file
protected gdImage ( resource $image, string $filename, string $destformat, string $mime, integer $jpgQuality = null ) : boolean
$image resource gd image resource
$filename string The path to save the file to.
$destformat string The Image type to use for $filename
$mime string The original image mime type
$jpgQuality integer JEPG quality (1-100)
리턴 boolean

gdImageBackground() 보호된 메소드

Assign the proper background to a gd image
protected gdImageBackground ( resource $image, string $bgcolor )
$image resource gd image resource
$bgcolor string background color in #rrggbb format

gdImageCreate() 보호된 메소드

Create an gd image according to the specified mime type
protected gdImageCreate ( string $path, string $mime ) : gd
$path string image file
$mime string
리턴 gd image resource identifier

getArchivers() 보호된 메소드

Get server side available archivers
protected getArchivers ( boolean $use_cache = true ) : array
$use_cache boolean
리턴 array

getContentUrl() 공개 메소드

Return content URL (for netmout volume driver) If file.url == 1 requests from JavaScript client with XHR
저자: Naoki Sawada
public getContentUrl ( string $hash, array $options = [] ) : boolean | string
$hash string file hash
$options array options array
리턴 boolean | string

getContents() 공개 메소드

Return file contents
저자: Dmitry (dio) Levashov
public getContents ( string $hash ) : string | false
$hash string file hash
리턴 string | false

getExtentionByMime() 공개 메소드

Return file extention detected by MIME type
저자: Naoki Sawada
public getExtentionByMime ( string $mime, string $suffix = '' ) : string
$mime string MIME type
$suffix string Additional suffix
리턴 string

getFullPath() 보호된 메소드

Resolve relative / (Unix-like)absolute path
protected getFullPath ( string $path, string $base ) : string
$path string target path
$base string base path
리턴 string

getHash() 공개 메소드

Return target path hash
저자: Naoki Sawada
public getHash ( string $path, string $name = '' ) : string
$path string
$name string
리턴 string

getImageSize() 공개 메소드

Get image size array with dimensions
public getImageSize ( string $path, string $mime = '' ) : array | false
$path string path need convert encoding to server encoding
$mime string file mime type
리턴 array | false

getItemsInHand() 보호된 메소드

Copy items to a new temporary directory on the local server
저자: Naoki Sawada
protected getItemsInHand ( array $hashes, string $dir = null ) : string | false
$hashes array target hashes
$dir string destination directory (for recurcive)
리턴 string | false saved path name

getMimeTable() 공개 메소드

Return Extention/MIME Table (elFinderVolumeDriver::$mimetypes)
저자: Naoki Sawada
public getMimeTable ( ) : array
리턴 array

getOption() 공개 메소드

Get option value of this volume
저자: Naoki Sawada
public getOption ( string $name ) : null | mixed
$name string target option name
리턴 null | mixed target option value

getOptionsPlugin() 공개 메소드

Get plugin values of this options
저자: Naoki Sawada
public getOptionsPlugin ( string $name = '' ) : null | array
$name string Plugin name
리턴 null | array Plugin values

getPath() 공개 메소드

Return decoded path of target hash This method do not check the stat of target Use method realpath() to do check of the stat of target
저자: Naoki Sawada
public getPath ( string $hash ) : string
$hash string
리턴 string

getRootStatExtra() 보호된 메소드

Get root stat extra key values
저자: Naoki Sawada
protected getRootStatExtra ( ) : array
리턴 array stat extras

getScandir() 보호된 메소드

If onlyMimes is set - return only dirs and files of required mimes
저자: Dmitry (dio) Levashov
protected getScandir ( string $path ) : array
$path string dir path
리턴 array

getTempFile() 보호된 메소드

When needing the unique file to a path, give $path to parameter.
저자: Naoki Sawada
protected getTempFile ( string $path = '' ) : string | false
$path string for get unique file to a path
리턴 string | false

getTempPath() 공개 메소드

Return temp path
저자: Naoki Sawada
public getTempPath ( ) : string
리턴 string

getUploadMaxSize() 공개 메소드

Return this uploadMaxSize value
저자: Naoki Sawada
public getUploadMaxSize ( ) : integer
리턴 integer

getUploadTaget() 공개 메소드

(Make &) Get upload taget dirctory hash
저자: Naoki Sawada
public getUploadTaget ( string $baseTargetHash, string $path, array &$result ) : boolean | string
$baseTargetHash string
$path string
$result array
리턴 boolean | string

getWorkFile() 보호된 메소드

File path of local server side work file path
저자: Naoki Sawada
protected getWorkFile ( string $path ) : string
$path string path need convert encoding to server encoding
리턴 string

gettmb() 보호된 메소드

Return thumnbnail name if exists
저자: Dmitry (dio) Levashov
protected gettmb ( string $path, array $stat ) : string | false
$path string file path
$stat array file stat
리턴 string | false

gettree() 보호된 메소드

Return subdirs tree
저자: Dmitry (dio) Levashov
protected gettree ( string $path, integer $deep, string $exclude = '' ) : array
$path string parent dir path
$deep integer tree deep
$exclude string
리턴 array

id() 공개 메소드

Return volume id
저자: Dmitry (dio) Levashov
public id ( ) : string
리턴 string

imageMagickConvertPrepare() 보호된 메소드

Prepare variables for exec convert of ImageMagick
protected imageMagickConvertPrepare ( string $path, string $destformat, integer $jpgQuality, array $imageSize = null ) : array
$path string
$destformat string
$jpgQuality integer
$imageSize array
리턴 array

imageUtil() 공개 메소드

Image file utility
저자: Naoki Sawada
public imageUtil ( string $mode, string $src, array $options = [] ) : boolean
$mode string 'resize', 'rotate', 'propresize', 'crop', 'fitsquare'
$src string Image file local path
$options array excute options
리턴 boolean

imagickImage() 보호된 메소드

Output imagick image to file
protected imagickImage ( resource $img, string $filename, string $destformat, integer $jpgQuality = null ) : boolean
$img resource imagick image resource
$filename string The path to save the file to.
$destformat string The Image type to use for $filename
$jpgQuality integer JEPG quality (1-100)
리턴 boolean

imgCrop() 보호된 메소드

Crop image
저자: Dmitry (dio) Levashov
저자: Alexey Sukhotin
protected imgCrop ( string $path, integer $width, integer $height, boolean $x, boolean $y, string $destformat = null, integer $jpgQuality = null ) : string | false
$path string image file
$width integer crop width
$height integer crop height
$x boolean crop left offset
$y boolean crop top offset
$destformat string image destination format
$jpgQuality integer JEPG quality (1-100)
리턴 string | false

imgResize() 보호된 메소드

Resize image
저자: Dmitry (dio) Levashov
저자: Alexey Sukhotin
protected imgResize ( string $path, integer $width, integer $height, boolean $keepProportions = false, boolean $resizeByBiggerSide = true, string $destformat = null, integer $jpgQuality = null, array $options = [] ) : string | false
$path string image file
$width integer new width
$height integer new height
$keepProportions boolean crop image
$resizeByBiggerSide boolean resize image based on bigger side if true
$destformat string image destination format
$jpgQuality integer JEPG quality (1-100)
$options array Other extra options
리턴 string | false

imgRotate() 보호된 메소드

Rotate image
저자: nao-pon
저자: Troex Nevelin
protected imgRotate ( string $path, integer $degree, string $bgcolor = '#ffffff', string $destformat = null, integer $jpgQuality = null ) : string | false
$path string image file
$degree integer rotete degrees
$bgcolor string square background color in #rrggbb format
$destformat string image destination format
$jpgQuality integer JEPG quality (1-100)
리턴 string | false

imgSquareFit() 보호된 메소드

Put image to square
저자: Dmitry (dio) Levashov
저자: Alexey Sukhotin
protected imgSquareFit ( string $path, integer $width, integer $height, integer | string $align = 'center', integer | string $valign = 'middle', string $bgcolor = '#0000ff', string $destformat = null, integer $jpgQuality = null ) : false | string
$path string image file
$width integer square width
$height integer square height
$align integer | string reserved
$valign integer | string reserved
$bgcolor string square background color in #rrggbb format
$destformat string image destination format
$jpgQuality integer JEPG quality (1-100)
리턴 false | string

init() 보호된 메소드

Return true if volume is ready.
저자: Dmitry (dio) Levashov
protected init ( ) : boolean
리턴 boolean

inpathCE() 보호된 메소드

Return true if $path is children of $parent (with convert encoding)
저자: Naoki Sawada
protected inpathCE ( string $path, string $parent ) : boolean
$path string path to check
$parent string parent path
리턴 boolean

isMyReload() 보호된 메소드

protected isMyReload ( $target = '', $ARGtarget = '' )

isNameExists() 보호된 메소드

Return fileinfo based on filename For item ID based path file system Please override if needed on each drivers
protected isNameExists ( string $path ) : array
$path string file cache
리턴 array

isReadable() 공개 메소드

Return true if voume is readable.
저자: Dmitry (dio) Levashov
public isReadable ( ) : boolean
리턴 boolean

isSameType() 보호된 메소드

Return true if all mimes is directory or files
저자: Dmitry (dio) Levashov
protected isSameType ( string $mime1, string $mime2 ) : boolean
$mime1 string mimetype
$mime2 string mimetype
리턴 boolean

isUploadableByName() 공개 메소드

Return is uploadable that given file name
저자: Naoki Sawada
public isUploadableByName ( string $name, boolean $allowUnknown = true ) : boolean
$name string file name
$allowUnknown boolean
리턴 boolean

joinPathCE() 보호된 메소드

Join dir name and file name and return full path. (with convert encoding) Some drivers (db) use int as path - so we give to concat path to driver itself
저자: Naoki Sawada
protected joinPathCE ( string $dir, string $name ) : string
$dir string dir path
$name string file name
리턴 string

localScandir() 보호된 정적인 메소드

Return files of target directory that is dotfiles excludes.
저자: Naoki Sawada
protected static localScandir ( string $dir ) : array
$dir string target directory path
리턴 array

ls() 공개 메소드

Return dir files names list
저자: Dmitry (dio) Levashov
public ls ( string $hash, null $intersect = null ) : array
$hash string file hash
$intersect null
리턴 array

makeArchive() 보호된 메소드

Create archive and return its path
저자: Dmitry (dio) Levashov,
저자: Alexey Sukhotin
저자: Naoki Sawada
protected makeArchive ( string $dir, array $files, string $name, array $arc ) : string | boolean
$dir string target dir
$files array files names list
$name string archive name
$arc array archiver options
리턴 string | boolean

mimeAccepted() 공개 메소드

Return true if mime is required mimes list
저자: Dmitry (dio) Levashov
저자: Troex Nevelin
public mimeAccepted ( string $mime, array $mimes = null, boolean | null $empty = true ) : boolean | null
$mime string mime type to check
$mimes array allowed mime types list or not set to use client mimes list
$empty boolean | null what to return on empty list
리턴 boolean | null

mimetype() 보호된 메소드

Return file mimetype
저자: Dmitry (dio) Levashov
protected mimetype ( string $path, string $name = '' ) : string
$path string file path
$name string
리턴 string

mimetypeInternalDetect() 보호된 정적인 메소드

Detect file mimetype using "internal" method or Loading mime.types with $path = ''
저자: Dmitry (dio) Levashov
protected static mimetypeInternalDetect ( string $path = '' ) : string
$path string file path
리턴 string

mkdir() 공개 메소드

Create directory and return dir info
저자: Dmitry (dio) Levashov
public mkdir ( string $dsthash, string $name ) : array | false
$dsthash string destination directory hash
$name string directory name
리턴 array | false

mkfile() 공개 메소드

Create empty file and return its info
저자: Dmitry (dio) Levashov
public mkfile ( string $dst, string $name ) : array | false
$dst string destination directory
$name string file name
리턴 array | false

mount() 공개 메소드

Return true if volume available for read or write, false - otherwise
저자: Dmitry (dio) Levashov
저자: Alexey Sukhotin
public mount ( array $opts ) : boolean
$opts array
리턴 boolean

move() 보호된 메소드

Move file Return new file path or false.
저자: Dmitry (dio) Levashov
protected move ( string $src, string $dst, string $name ) : string | false
$src string source path
$dst string destination dir path
$name string new file name
리턴 string | false

nameAccepted() 보호된 메소드

Validate file name based on $this->options['acceptedName'] regexp or function
저자: Dmitry (dio) Levashov
protected nameAccepted ( string $name ) : boolean
$name string file name
리턴 boolean

normpathCE() 보호된 메소드

Return normalized path (with convert encoding)
저자: Naoki Sawada
protected normpathCE ( string $path ) : string
$path string file path
리턴 string

open() 공개 메소드

Open file for reading and return file pointer
저자: Dmitry (dio) Levashov
public open ( $hash ) : Resource
리턴 Resource

options() 공개 메소드

Return volume options required by client:
저자: Dmitry (dio) Levashov
public options ( $hash ) : array
$hash
리턴 array

parents() 공개 메소드

Return part of dirs tree from required dir up to root dir
저자: Dmitry (dio) Levashov
public parents ( string $hash, boolean | null $lineal = false ) : array
$hash string directory hash
$lineal boolean | null only lineal parents
리턴 array

paste() 공개 메소드

Paste files
저자: Dmitry (dio) Levashov
public paste ( Object $volume, $src, string $dst, boolean $rmSrc = false, array $hashes = [] ) : array | false
$volume Object source volume
$src
$dst string destination dir hash
$rmSrc boolean remove source after copy?
$hashes array
리턴 array | false

path() 공개 메소드

Return file path related to root with convert encoging
저자: Dmitry (dio) Levashov
public path ( string $hash ) : string
$hash string file hash
리턴 string

procExec() 보호된 메소드

Execute shell command
저자: Alexey Sukhotin
protected procExec ( string $command, array &$output = null, array | integer &$return_var, array &$error_output = null ) : integer
$command string command line
$output array stdout strings
$return_var array | integer process exit code
$error_output array stderr strings
리턴 integer exit code

putContents() 공개 메소드

Put content in text file and return file info.
저자: Dmitry (dio) Levashov
public putContents ( string $hash, string $content ) : array
$hash string file hash
$content string new file content
리턴 array

realpath() 공개 메소드

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

relpathCE() 보호된 메소드

Return file path related to root dir (with convert encoding)
저자: Naoki Sawada
protected relpathCE ( string $path ) : string
$path string file path
리턴 string

remove() 보호된 메소드

Remove file/ recursive remove dir
저자: Dmitry (dio) Levashov
protected remove ( string $path, boolean $force = false ) : boolean
$path string file path
$force boolean try to remove even if file locked
리턴 boolean

removed() 공개 메소드

Return list of moved/overwrited files
저자: Dmitry (dio) Levashov
public removed ( ) : array
리턴 array

rename() 공개 메소드

Rename file and return file info
저자: Dmitry (dio) Levashov
public rename ( string $hash, string $name ) : array | false
$hash string file hash
$name string new file name
리턴 array | false

resetRemoved() 공개 메소드

Clean removed files list
저자: Dmitry (dio) Levashov
public resetRemoved ( ) : void
리턴 void

resetResultStat() 공개 메소드

Clean added/removed files list
public resetResultStat ( ) : void
리턴 void

resize() 공개 메소드

Resize image
저자: Dmitry (dio) Levashov
저자: Alexey Sukhotin
저자: nao-pon
저자: Troex Nevelin
public resize ( string $hash, integer $width, integer $height, integer $x, integer $y, string $mode = 'resize', string $bg = '', integer $degree, integer $jpgQuality = null ) : array | false
$hash string image file
$width integer new width
$height integer new height
$x integer X start poistion for crop
$y integer Y start poistion for crop
$mode string action how to mainpulate image
$bg string background color
$degree integer rotete degree
$jpgQuality integer JEPG quality (1-100)
리턴 array | false

rm() 공개 메소드

Remove file/dir
저자: Dmitry (dio) Levashov
public rm ( string $hash ) : boolean
$hash string file hash
리턴 boolean

rmTmb() 보호된 메소드

Remove thumbnail, also remove recursively if stat is directory
저자: Dmitry (dio) Levashov
저자: Naoki Sawada
저자: Troex Nevelin
protected rmTmb ( string $stat ) : void
$stat string file stat
리턴 void

rmdirRecursive() 공개 메소드

Remove directory recursive on local file system
저자: Naoki Sawada
public rmdirRecursive ( string $dir ) : boolean
$dir string Target dirctory path
리턴 boolean

root() 공개 메소드

Return root folder hash
저자: Dmitry (dio) Levashov
public root ( ) : string
리턴 string

saveCE() 보호된 메소드

Create new file and write into it from file pointer. (with convert encoding) Return new file path or false on error.
저자: Naoki Sawada
protected saveCE ( resource $fp, string $dir, string $name, array $stat ) : boolean | string
$fp resource file pointer
$dir string target dir path
$name string file name
$stat array file stat (required by some virtual fs)
리턴 boolean | string

scandir() 공개 메소드

Return directory content or false on error
저자: Dmitry (dio) Levashov
public scandir ( string $hash ) : array | false
$hash string file hash
리턴 array | false

scandirCE() 보호된 메소드

Return files list in directory (with convert encoding)
저자: Naoki Sawada
protected scandirCE ( string $path ) : array
$path string dir path
리턴 array

sessionRestart() 보호된 메소드

사용 중단:
protected sessionRestart ( )

setError() 보호된 메소드

Save error message
저자: Dmitry(dio) Levashov
protected setError ( $error ) : false
리턴 false

setMimesFilter() 공개 메소드

Set mimetypes allowed to display to client
저자: Dmitry (dio) Levashov
public setMimesFilter ( array $mimes ) : void
$mimes array
리턴 void

setSession() 공개 메소드

Assign elFinder session wrapper object
public setSession ( $session )
$session elFinderSessionInterface

size() 공개 메소드

Return file size / total directory size
저자: Dmitry (dio) Levashov
public size ( $hash ) : integer
리턴 integer

stat() 보호된 메소드

Return fileinfo
저자: Dmitry (dio) Levashov
protected stat ( string $path ) : array
$path string file cache
리턴 array

stripos() 보호된 메소드

Find position of first occurrence of string in a string with multibyte support
저자: Alexey Sukhotin
protected stripos ( string $haystack, string $needle, integer $offset ) : integer | boolean
$haystack string The string being checked.
$needle string The string to find in haystack.
$offset integer The search offset. If it is not specified, 0 is used.
리턴 integer | boolean

subdirsCE() 보호된 메소드

Return true if path is dir and has at least one childs directory (with convert encoding)
저자: Naoki Sawada
protected subdirsCE ( string $path ) : boolean
$path string dir path
리턴 boolean

symlinkCE() 보호된 메소드

Create symlink (with convert encoding)
저자: Naoki Sawada
protected symlinkCE ( string $source, string $targetDir, string $name ) : boolean
$source string file to link to
$targetDir string folder to create link in
$name string symlink name
리턴 boolean

tmb() 공개 메소드

Create thumbnail for required file and return its name of false on failed
저자: Dmitry (dio) Levashov
public tmb ( $hash ) : false | string
$hash
리턴 false | string

tmbname() 보호된 메소드

Return thumbnail file name for required file
저자: Dmitry (dio) Levashov
protected tmbname ( array $stat ) : string
$stat array file stat
리턴 string

tree() 공개 메소드

Return subfolders for required folder or false on error
저자: Dmitry (dio) Levashov
public tree ( string $hash = '', integer $deep, string $exclude = '' ) : array | false
$hash string folder hash or empty string to get tree from root folder
$deep integer subdir deep
$exclude string dir hash which subfolders must be exluded from result, required to not get stat twice on cwd subfolders
리턴 array | false

umount() 공개 메소드

Some "unmount" stuffs - may be required by virtual fs
저자: Dmitry (dio) Levashov
public umount ( ) : void
리턴 void

uncrypt() 보호된 메소드

Return uncrypted path Not implemented
저자: Dmitry (dio) Levashov
protected uncrypt ( $hash ) : mixed
리턴 mixed

uniqueName() 공개 메소드

Return new unique name based on file name and suffix
저자: Dmitry (dio) Levashov
public uniqueName ( $dir, $name, string $suffix = ' copy', boolean $checkNum = true, integer $start = 1 ) : string
$dir
$name
$suffix string suffix append to name
$checkNum boolean
$start integer
리턴 string

unpackArchive() 보호된 메소드

Unpack archive
저자: Dmitry (dio) Levashov
저자: Alexey Sukhotin
저자: Naoki Sawada
protected unpackArchive ( string $path, array $arc, boolean $remove = true ) : void
$path string archive path
$arc array archiver command and arguments (same as in $this->archivers)
$remove boolean remove archive ( unlink($path) )
리턴 void

updateCache() 보호된 메소드

Put file stat in cache and return it
저자: Dmitry (dio) Levashov
protected updateCache ( string $path, array $stat ) : array
$path string file path
$stat array file stat
리턴 array

upload() 공개 메소드

On success return array with new file stat and with removed file hash (if existed file was replaced)
저자: Dmitry (dio) Levashov
public upload ( Resource $fp, string $dst, $name, string $tmpname, array $hashes = [] ) : array | false
$fp Resource file pointer
$dst string destination folder hash
$name
$tmpname string file tmp name - required to detect mime type
$hashes array exists files hash array with filename as key
리턴 array | false

zipArchiveUnzip() 보호된 정적인 메소드

Unpack Zip archive using PHP class ZipArchive
저자: Naoki Sawada
protected static zipArchiveUnzip ( string $zipPath, string $toDir ) : boolean
$zipPath string Zip archive name
$toDir string Extract to path
리턴 boolean

zipArchiveZip() 보호된 정적인 메소드

Create Zip archive using PHP class ZipArchive
저자: Naoki Sawada
protected static zipArchiveZip ( string $dir, array $files, string | object $zipPath ) : boolean
$dir string target dir
$files array files names list
$zipPath string | object Zip archive name
리턴 boolean

zipdl() 공개 메소드

Return path to archive of target items
저자: Naoki Sawada
public zipdl ( array $hashes ) : string
$hashes array
리턴 string archive path

프로퍼티 상세

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

Request args $_POST or $_GET values
protected array $ARGS
리턴 array

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

Base URL
protected string $URL
리턴 string

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

Access control function/class
protected mixed $access
리턴 mixed

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

Store files added files info
protected array $added
리턴 array

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

Archivers config
protected array $archivers
리턴 array

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

Access control function/class
protected mixed $attributes
리턴 mixed

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

Cache storage
protected array $cache
리턴 array

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

Library to crypt files name
protected string $cryptLib
리턴 string

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

Defaults permissions
protected array $defaults
리턴 array

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

Cache by folders
protected array $dirsCache
리턴 array

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

List of disabled client's commands
protected array $disabled
리턴 array

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

Current query word on doSearch
protected string $doSearchCurrentQuery
리턴 string

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

Driver id Must be started from letter and contains [a-z0-9] Used as part of volume id
protected string $driverId
리턴 string

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

Server character encoding
protected $encoding

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

Errors from last failed action
protected array $error
리턴 array

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

Force make dirctory on extract
protected int $extractToNewdir
리턴 integer

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

Finfo object for mimeDetect == 'finfo'
protected object $finfo
리턴 object

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

Volume id - used as prefix for files hashes
protected string $id
리턴 string

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

Video to Image converter
protected array $imgConverter
리턴 array

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

Image manipulation lib name auto|imagick|gd|convert
protected string $imgLib
리턴 string

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

Mimetype detect method
protected string $mimeDetect
리턴 string

$mimetypes 보호되어 있는 정적으로 프로퍼티

default extensions/mimetypes for mimeDetect == 'internal'
protected static array $mimetypes
리턴 array

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

Flag - volume "mounted" and available
protected bool $mounted
리턴 boolean

$netMountKey 공개적으로 프로퍼티

Net mount key
public string $netMountKey
리턴 string

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

Mimetypes allowed to display
protected array $onlyMimes
리턴 array

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

Object configuration
protected array $options
리턴 array

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

Store files moved or overwrited files info
protected array $removed
리턴 array

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

Root directory path
protected string $root
리턴 string

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

Is root modified (for clear root stat cache)
protected bool $rootModified
리턴 boolean

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

Root basename | alias
protected string $rootName
리턴 string

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

Search start time
protected int $searchStart
리턴 integer

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

Directory separator - required by client
protected string $separator
리턴 string

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

elFinder session wrapper object
protected elFinderSessionInterface $session
리턴 elFinderSessionInterface

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

This volume session cache
protected array $sessionCache
리턴 array

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

Session caching item list
protected array $sessionCaching
리턴 array

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

Default directory to open
protected string $startPath
리턴 string

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

You should use $this->sessionCache['subdirs'] instead
사용 중단:
protected array $subdirsCache
리턴 array

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

..)
protected string $systemRoot
리턴 string

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

Thumbnails dir path
protected string $tmbPath
리턴 string

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

Is thumbnails dir writable
protected bool $tmbPathWritable
리턴 boolean

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

Thumbnails size in px
protected int $tmbSize
리턴 integer

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

Thumbnails base URL
protected string $tmbURL
리턴 string

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

Today 24:00 timestamp
protected int $today
리턴 integer

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

How many subdirs levels return for tree
protected int $treeDeep
리턴 integer

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

Mime types allowed to upload
protected array $uploadAllow
리턴 array

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

Mime types denied to upload
protected array $uploadDeny
리턴 array

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

Set as number or string with unit - "10M", "500K", "1G"
protected int|string $uploadMaxSize
리턴 integer | string

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

Order to validate uploadAllow and uploadDeny
protected array $uploadOrder
리턴 array

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

Yesterday 24:00 timestamp
protected int $yesterday
리턴 integer