PHP Class Kedrigern\phpIO\Files

Datei anzeigen Open project: kedrigern/phpio

Protected Properties

Property Type Description
$dir string
$files array
$filter string
$originDir string

Public Methods

Method Description
call ( callable $function, null | callable $post = null, null | array &$log = null ) : Files
delete ( ) Delete files
dir ( string $path ) : Files
getDir ( ) : string
getFiles ( ) : array
getFilter ( ) : string
move ( string $path, boolean $create = false ) : Files Move files to the $path
writeable ( ) : Files Is files writeable? If not exception is throw.

Method Details

call() public method

public call ( callable $function, null | callable $post = null, null | array &$log = null ) : Files
$function callable apply to the files
$post null | callable function called after process all files
$log null | array array of callback results (event post callback)
return Files $this

delete() public method

Delete files
public delete ( )

dir() public method

public dir ( string $path ) : Files
$path string
return Files $this

getDir() public method

public getDir ( ) : string
return string

getFiles() public method

public getFiles ( ) : array
return array

getFilter() public method

public getFilter ( ) : string
return string

move() public method

Move files to the $path
public move ( string $path, boolean $create = false ) : Files
$path string
$create boolean
return Files $this

writeable() public method

Is files writeable? If not exception is throw.
public writeable ( ) : Files
return Files $this

Property Details

$dir protected_oe property

protected string $dir
return string

$files protected_oe property

protected array $files
return array

$filter protected_oe property

protected string $filter
return string

$originDir protected_oe property

protected string $originDir
return string