PlaceFile
in package
Class PlaceFile
Table of Contents
Properties
- $backupList : array<string|int, mixed>
- $exclusionMoveFile : array<string|int, mixed>
- $logger : LoggerInterface
- $moveList : array<string|int, mixed>
Methods
- __construct() : mixed
- PlaceFile constructor.
- exec() : mixed
- Run
- validate() : mixed
- Validate
- backup() : mixed
- Backup
- copyFiles() : mixed
- Copy files
- removeSetup() : mixed
- Remove setup
- rollback() : mixed
- Rollback
- updateFiles() : mixed
- System Update
Properties
$backupList
protected
array<string|int, mixed>
$backupList
$exclusionMoveFile
protected
array<string|int, mixed>
$exclusionMoveFile
$logger
protected
LoggerInterface
$logger
$moveList
protected
array<string|int, mixed>
$moveList
Methods
__construct()
PlaceFile constructor.
public
__construct(LoggerInterface $logger) : mixed
Parameters
- $logger : LoggerInterface
exec()
Run
public
exec(mixed $new_path, mixed $backup_dir[, mixed $new_setup = false ]) : mixed
Parameters
- $new_path : mixed
- $backup_dir : mixed
- $new_setup : mixed = false
Tags
validate()
Validate
public
validate(mixed $new_path, mixed $backup_dir) : mixed
Parameters
- $new_path : mixed
- $backup_dir : mixed
Tags
backup()
Backup
protected
backup(string $backup_dir) : mixed
Parameters
- $backup_dir : string
copyFiles()
Copy files
protected
copyFiles(array<string|int, mixed> $list, string $from_dir, string $to_dir) : mixed
Parameters
- $list : array<string|int, mixed>
- $from_dir : string
- $to_dir : string
removeSetup()
Remove setup
protected
removeSetup() : mixed
rollback()
Rollback
protected
rollback(string $backup_dir) : mixed
Parameters
- $backup_dir : string
updateFiles()
System Update
protected
updateFiles(string $new_path, string $backup_dir) : mixed
Parameters
- $new_path : string
- $backup_dir : string