PHP Class HM\BackUpWordPress\File_Backup_Engine

All File Backup Engine implementations should extend this class
Inheritance: extends Backup_Engine
Datei anzeigen Open project: humanmade/backupwordpress Class Usage Examples

Protected Properties

Property Type Description
$excludes Excludes The array of excludes rules

Public Methods

Method Description
__construct ( ) Set the default backup filename.
get_files ( ) : SplFileInfo[] Returns a Finder instance for the files that will be included in the backup.
set_excludes ( Excludes $excludes ) Set the excludes rules for the backup.
verify_backup ( ) : boolean Verify that the file backup completed successfully.

Method Details

__construct() public method

Set the default backup filename.
public __construct ( )

get_files() public method

By default we ignore unreadable files and directories as well as, common version control folders / files, "Dot" files and anything matching the exclude rules.
public get_files ( ) : SplFileInfo[]
return SplFileInfo[] The array of all files to be included

set_excludes() public method

Set the excludes rules for the backup.
public set_excludes ( Excludes $excludes )
$excludes Excludes The exclude rules.

verify_backup() public method

This should be called from backup method of any final file backup engine implementations.
public verify_backup ( ) : boolean
return boolean Whether the backup completed successfully.

Property Details

$excludes protected_oe property

The array of excludes rules
protected Excludes,HM\BackUpWordPress $excludes
return Excludes