PHP Class HM\BackUpWordPress\Backup

Datei anzeigen Open project: humanmade/backupwordpress Class Usage Examples

Public Properties

Property Type Description
$errors
$warnings

Public Methods

Method Description
__construct ( $backup_filename, $database_dump_filename = null )
backup_database ( )
backup_files ( )
error ( $context, $message ) Back compat with old error method
get_archive_filepath ( ) Back compat with old method name
get_backup_filepath ( )
get_database_backup_filepath ( )
get_errors ( )
get_warnings ( )
perform_backup ( array $backup_engines ) : Backup_Engine | false Perform the backup by iterating through each Backup_Engine in turn until we find one which works. If a backup filename or any excludes have been set then those are passed to each Backup_Engine.
run ( )
set_backup_filename ( $filename )
set_excludes ( Excludes $excludes )
set_status ( Backup_Status $status )
set_type ( $type )
warning ( string $context, string $warning ) Add an warning to the errors warnings.

Method Details

__construct() public method

public __construct ( $backup_filename, $database_dump_filename = null )

backup_database() public method

public backup_database ( )

backup_files() public method

public backup_files ( )

error() public method

Only the backup engines themselves can fire fatal errors
Deprecation: 3.4 Backup->warning( $context, $warning )
public error ( $context, $message )

get_archive_filepath() public method

Back compat with old method name
See also: Backup::get_backup_filepath()
Deprecation: 3.4 Use Backup::get_backup_filepath()

get_backup_filepath() public method

public get_backup_filepath ( )

get_database_backup_filepath() public method

get_errors() public method

public get_errors ( )

get_warnings() public method

public get_warnings ( )

perform_backup() public method

Perform the backup by iterating through each Backup_Engine in turn until we find one which works. If a backup filename or any excludes have been set then those are passed to each Backup_Engine.
public perform_backup ( array $backup_engines ) : Backup_Engine | false
$backup_engines array
return Backup_Engine | false The successful backup engine or false on failure.

run() public method

public run ( )

set_backup_filename() public method

public set_backup_filename ( $filename )

set_excludes() public method

public set_excludes ( Excludes $excludes )
$excludes Excludes

set_status() public method

public set_status ( Backup_Status $status )
$status Backup_Status

set_type() public method

public set_type ( $type )

warning() public method

A warning is always treat as non-fatal and should only be used for recoverable issues with the backup process.
public warning ( string $context, string $warning )
$context string The context for the warning.
$warning string The warning that was encountered.

Property Details

$errors public_oe property

public $errors

$warnings public_oe property

public $warnings