PHP Class Molajo\Copy

Since: 1.0.0
Show file 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 property

Base Path
Since: 1.0.0
protected string $base_path
return string

$exclude_folders protected property

Exclude Folders
Since: 1.0.0
protected array $exclude_folders
return array

$files protected property

Files
Since: 1.0.0
protected array $files
return array

$folders protected property

Folders
Since: 1.0.0
protected array $folders
return array

$source_path protected property

Source Path
Since: 1.0.0
protected string $source_path
return string

$target_path protected property

Target Path
Since: 1.0.0
protected string $target_path
return string