PHP 클래스 HM\BackUpWordPress\Backup

파일 보기 프로젝트 열기: humanmade/backupwordpress 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$errors
$warnings

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

public __construct ( $backup_filename, $database_dump_filename = null )

backup_database() 공개 메소드

public backup_database ( )

backup_files() 공개 메소드

public backup_files ( )

error() 공개 메소드

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

get_archive_filepath() 공개 메소드

Back compat with old method name
또한 보기: Backup::get_backup_filepath()
사용 중단: 3.4 Use Backup::get_backup_filepath()

get_backup_filepath() 공개 메소드

public get_backup_filepath ( )

get_database_backup_filepath() 공개 메소드

get_errors() 공개 메소드

public get_errors ( )

get_warnings() 공개 메소드

public get_warnings ( )

perform_backup() 공개 메소드

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
리턴 Backup_Engine | false The successful backup engine or false on failure.

run() 공개 메소드

public run ( )

set_backup_filename() 공개 메소드

public set_backup_filename ( $filename )

set_excludes() 공개 메소드

public set_excludes ( Excludes $excludes )
$excludes Excludes

set_status() 공개 메소드

public set_status ( Backup_Status $status )
$status Backup_Status

set_type() 공개 메소드

public set_type ( $type )

warning() 공개 메소드

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.

프로퍼티 상세

$errors 공개적으로 프로퍼티

public $errors

$warnings 공개적으로 프로퍼티

public $warnings