PHP Class Molajo\Copy

Since: 1.0.0
Datei anzeigen Open project: molajo/framework

Protected Properties

Property Type Description
$base_path string Base Path
$exclude_folders array Exclude Folders
$files array Files
$folders array Folders
$source_path string Source Path
$target_path string Target Path

Public Methods

Method Description
__construct ( string $base_path, string $source_path, string $target_path, array $exclude_folders ) Constructor
process ( ) Process Request

Protected Methods

Method Description
copySourceToTarget ( ) : object Copy Source to Target
removeTargetFiles ( string $directory ) Remove Directory and all contents

Method Details

__construct() public method

Constructor
Since: 1.0.0
public __construct ( string $base_path, string $source_path, string $target_path, array $exclude_folders )
$base_path string
$source_path string
$target_path string
$exclude_folders array

copySourceToTarget() protected method

Copy Source to Target
Since: 1.0.0
protected copySourceToTarget ( ) : object
return object

process() public method

Process Request
Since: 1.0.0
public process ( )

removeTargetFiles() protected method

Remove Directory and all contents
Since: 1.0.0
protected removeTargetFiles ( string $directory )
$directory string

Property Details

$base_path protected_oe property

Base Path
Since: 1.0.0
protected string $base_path
return string

$exclude_folders protected_oe property

Exclude Folders
Since: 1.0.0
protected array $exclude_folders
return array

$files protected_oe property

Files
Since: 1.0.0
protected array $files
return array

$folders protected_oe property

Folders
Since: 1.0.0
protected array $folders
return array

$source_path protected_oe property

Source Path
Since: 1.0.0
protected string $source_path
return string

$target_path protected_oe property

Target Path
Since: 1.0.0
protected string $target_path
return string