PHP Class ManaPHP\Filesystem\Adapter\File

Inheritance: extends ManaPHP\Component, implements ManaPHP\FilesystemInterface
Mostrar archivo Open project: manaphp/manaphp

Public Methods

Method Description
_dirCreate ( string $dir, integer $mode = 493 ) : void
dirCopy ( string $src, string $dst, boolean $overwrite = false ) : void
dirCreate ( string $dir, integer $mode = 493 ) : void
dirDelete ( string $dir, boolean $recursive = false ) : void
dirExists ( string $dir ) : boolean
dirMove ( string $src, string $dst, boolean $overwrite = false ) : void
directories ( string $dir ) : array
fileAppend ( string $file, string $data ) : void
fileCopy ( string $src, string $dst, boolean $overwrite = false ) : void
fileDelete ( string $file ) : void
fileExists ( string $file ) : boolean Determine if a file exists.
fileGet ( string $file ) : string | false
fileMove ( string $src, string $dst, boolean $overwrite = false ) : void
filePut ( string $file, string $data ) : 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

Protected Methods

Method Description
_dirCopy ( string $src, string $dst, boolean $overwrite ) : void
_dirDelete ( string $dir, boolean $recursive )

Method Details

_dirCopy() protected method

protected _dirCopy ( string $src, string $dst, boolean $overwrite ) : 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() protected method

protected _dirDelete ( string $dir, boolean $recursive )
$dir string
$recursive boolean

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 $dir, boolean $recursive = false ) : void
$dir string
$recursive boolean
return void

dirExists() public method

public dirExists ( string $dir ) : boolean
$dir 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 $data ) : void
$file string
$data 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

Determine if a file exists.
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 $data ) : void
$file string
$data 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