PHP Class Kedrigern\phpIO\Files

Afficher le fichier Open project: kedrigern/phpio

Protected Properties

Свойство Type Description
$dir string
$files array
$filter string
$originDir string

Méthodes publiques

Méthode 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 méthode

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)
Résultat Files $this

delete() public méthode

Delete files
public delete ( )

dir() public méthode

public dir ( string $path ) : Files
$path string
Résultat Files $this

getDir() public méthode

public getDir ( ) : string
Résultat string

getFiles() public méthode

public getFiles ( ) : array
Résultat array

getFilter() public méthode

public getFilter ( ) : string
Résultat string

move() public méthode

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

writeable() public méthode

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

Property Details

$dir protected_oe property

protected string $dir
Résultat string

$files protected_oe property

protected array $files
Résultat array

$filter protected_oe property

protected string $filter
Résultat string

$originDir protected_oe property

protected string $originDir
Résultat string