PHP Interface ManaPHP\FilesystemInterface

Exibir arquivo Open project: manaphp/manaphp

Public Methods

Method Description
dirCopy ( string $src, string $dst, boolean $overwrite = false ) : void
dirCreate ( string $dir, integer $mode = 493 ) : void
dirDelete ( string $file ) : void
dirExists ( string $file ) : boolean
dirMove ( string $src, string $dst, boolean $overwrite = false ) : void
directories ( string $dir ) : array
fileAppend ( string $file, string $content ) : void
fileCopy ( string $src, string $dst, boolean $overwrite = false ) : void
fileDelete ( string $file ) : void
fileExists ( string $file ) : boolean
fileGet ( string $file ) : string | false
fileMove ( string $src, string $dst, boolean $overwrite = false ) : void
filePut ( string $file, string $content ) : void
fileSize ( string $file ) : integer | false
files ( string $dir, string $pattern = null ) : array
glob ( string $pattern, integer $flags ) : array
scandir ( string $dir, integer $sorting_order = SCANDIR_SORT_ASCENDING ) : array

Method Details

dirCopy() public method

public dirCopy ( string $src, string $dst, boolean $overwrite = false ) : void
$src string
$dst string
$overwrite boolean
return void

dirCreate() public method

public dirCreate ( string $dir, integer $mode = 493 ) : void
$dir string
$mode integer
return void

dirDelete() public method

public dirDelete ( string $file ) : void
$file string
return void

dirExists() public method

public dirExists ( string $file ) : boolean
$file string
return boolean

dirMove() public method

public dirMove ( string $src, string $dst, boolean $overwrite = false ) : void
$src string
$dst string
$overwrite boolean
return void

directories() public method

public directories ( string $dir ) : array
$dir string
return array

fileAppend() public method

public fileAppend ( string $file, string $content ) : void
$file string
$content string
return void

fileCopy() public method

public fileCopy ( string $src, string $dst, boolean $overwrite = false ) : void
$src string
$dst string
$overwrite boolean
return void

fileDelete() public method

public fileDelete ( string $file ) : void
$file string
return void

fileExists() public method

public fileExists ( string $file ) : boolean
$file string
return boolean

fileGet() public method

public fileGet ( string $file ) : string | false
$file string
return string | false

fileMove() public method

public fileMove ( string $src, string $dst, boolean $overwrite = false ) : void
$src string
$dst string
$overwrite boolean
return void

filePut() public method

public filePut ( string $file, string $content ) : void
$file string
$content string
return void

fileSize() public method

public fileSize ( string $file ) : integer | false
$file string
return integer | false

files() public method

public files ( string $dir, string $pattern = null ) : array
$dir string
$pattern string
return array

glob() public method

public glob ( string $pattern, integer $flags ) : array
$pattern string
$flags integer
return array

scandir() public method

public scandir ( string $dir, integer $sorting_order = SCANDIR_SORT_ASCENDING ) : array
$dir string
$sorting_order integer
return array