\applicationESPCMS_FileTool

Summary

Methods
Properties
Constants
filemode()
downloadFile()
writeFile()
fileArrayet()
delFile()
delDir()
delDirFile()
list_dir()
getMimeType()
mime()
format_size()
get_file_format()
fgetcsv_reg()
file_type_screen()
file_copy()
is_dir_writeable()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

filemode()

filemode(  $file,   $checktype = 'w') 

Parameters

$file
$checktype

downloadFile()

downloadFile(  $file_url = false,   $save_path = false) 

Parameters

$file_url
$save_path

writeFile()

writeFile(  $fileName,   $content,   $type = "wb+") 

Parameters

$fileName
$content
$type

fileArrayet()

fileArrayet(  $path) 

Parameters

$path

delFile()

delFile(  $file) 

Parameters

$file

delDir()

delDir(  $dirName) 

Parameters

$dirName

delDirFile()

delDirFile(  $dirPath) 

Parameters

$dirPath

list_dir()

list_dir(  $dirpath,   $extension = array(),   $file_type = 'dir',   $is_traversal = true) 

Parameters

$dirpath
$extension
$file_type
$is_traversal

getMimeType()

getMimeType(  $file) 

Parameters

$file

mime()

mime(  $file) 

Parameters

$file

format_size()

format_size(  $size) 

Parameters

$size

get_file_format()

get_file_format(  $filetitle_list = array(),   $filepath_list = array(),   $fileext_list = array(),   $filesize_list = array(),   $filecontent_list = array()) 

Parameters

$filetitle_list
$filepath_list
$fileext_list
$filesize_list
$filecontent_list

fgetcsv_reg()

fgetcsv_reg(  $handle,   $length = null,   $d = ',',   $e = '"') 

Parameters

$handle
$length
$d
$e

file_type_screen()

file_type_screen(  $extension = false) 

Parameters

$extension

file_copy()

file_copy(  $path,   $dest) 

Parameters

$path
$dest

is_dir_writeable()

is_dir_writeable(  $dir) 

Parameters

$dir