PHP Class Molajo\Copy

Since: 1.0.0
Afficher le fichier Open project: molajo/framework

Protected Properties

Свойство 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

Méthodes publiques

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

Méthodes protégées

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

Method Details

__construct() public méthode

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

Copy Source to Target
Since: 1.0.0
protected copySourceToTarget ( ) : object
Résultat object

process() public méthode

Process Request
Since: 1.0.0
public process ( )

removeTargetFiles() protected méthode

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
Résultat string

$exclude_folders protected_oe property

Exclude Folders
Since: 1.0.0
protected array $exclude_folders
Résultat array

$files protected_oe property

Files
Since: 1.0.0
protected array $files
Résultat array

$folders protected_oe property

Folders
Since: 1.0.0
protected array $folders
Résultat array

$source_path protected_oe property

Source Path
Since: 1.0.0
protected string $source_path
Résultat string

$target_path protected_oe property

Target Path
Since: 1.0.0
protected string $target_path
Résultat string