FileHandler
FileHandler (전역 클래스) 클래스의 공개 메서드 목록입니다. 이 문서는 Zittme 코어 소스에서 자동 생성되었습니다.
소스: classes/file/FileHandler.class.php
공개 메서드
static function getRealPath($source)- Changes path of target file, directory into absolute path
static function copyDir($source_dir, $target_dir, $filter = '')- Copy a directory to target
static function copyFile($source, $target, $force = 'Y')- Copy a file to target
static function readFile($filename)- Returns the content of the file
static function writeFile($filename, $buff, $mode = "w")- Write $buff into the specified file
static function removeFile($filename)- Remove a file
static function rename($source, $target)- Rename a file
static function moveFile($source, $target)- Move a file
static function moveDir($source_dir, $target_dir)- Move a directory
static function readDir($path, $filter = '', $to_lower = FALSE, $concat_prefix = FALSE)- Return list of the files in the path
static function makeDir($path_string)- Creates a directory
static function removeDir($path)- Remove all files under the path
static function removeBlankDir($path)- Remove a directory only if it is empty
static function removeFilesInDir($path)- Remove files in the target directory
static function filesize($size)- Makes file size byte into KB, MB according to the size
static function getRemoteResource($url, $body = null, $timeout = 3, $method = 'GET', $content_type = null, $headers = array()- Return remote file's content via HTTP
static function getRemoteFile($url, $target_filename, $body = null, $timeout = 3, $method = 'GET', $content_type = null, $headers = array()- Retrieves remote file, then stores it into target path.
static function returnBytes($val)- Convert size in string into numeric value
static function checkMemoryLoadImage($imageInfo, $resizeInfo = [])- Check available memory to load image file
static function checkImageRotation(string $filename)- Check if image needs rotation
static function createImageFile($source_file, $target_file, $resize_width = 0, $resize_height = 0, $target_type = '', $thumbnail_type = 'fill', $quality = 100, $rotate = 0)- Moves an image file (resizing is possible)
static function readIniFile($filename)- Reads ini file, and puts result into array
static function writeIniFile($filename, $arr)- Write array into ini file
static function _makeIniBuff($arr)- Make array to ini string
static function openFile($filename, $mode)- Returns a file object
static function hasContent($filename)- Check whether the given file has the content.
static function exists($filename)- Check file exists.
static function isDir($path)- Check it is dir
static function isWritableDir($path)- Check is writable dir
static function clearStatCache($target, $include = false)- Clears file status cache
static function invalidateOpcache($target, $force = true)- Invalidates a cached script of OPcache