PHP Class HM\BackUpWordPress\Backup_Status

Show file Open project: humanmade/backupwordpress

Public Methods

Method Description
__construct ( $id )
finish ( )
get_backup_filename ( ) : string | null Get the filename of the backup.
get_start_time ( ) : integer Get the time that the current running backup was started
get_status ( ) : string Get the status of the running backup.
get_status_filepath ( ) : string Get the path to the backup running file that stores the running backup status
is_started ( )
set_status ( string $message ) : null Set the status of the running backup
start ( $backup_filename, $status_message )

Method Details

__construct() public method

public __construct ( $id )

finish() public method

public finish ( )

get_backup_filename() public method

Get the filename of the backup.
public get_backup_filename ( ) : string | null
return string | null The backup filename.

get_start_time() public method

Get the time that the current running backup was started
public get_start_time ( ) : integer
return integer $timestamp

get_status() public method

Get the status of the running backup.
public get_status ( ) : string
return string

get_status_filepath() public method

Get the path to the backup running file that stores the running backup status
public get_status_filepath ( ) : string
return string

is_started() public method

public is_started ( )

set_status() public method

Set the status of the running backup
public set_status ( string $message ) : null
$message string
return null

start() public method

public start ( $backup_filename, $status_message )