PHP 클래스 HM\BackUpWordPress\Database_Backup_Engine

All Database Backup Engine implementations should extend this class
상속: extends Backup_Engine
파일 보기 프로젝트 열기: humanmade/backupwordpress 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$backup_filename string The filename for the resulting Backup

공개 메소드들

메소드 설명
__construct ( ) Setup some general database backup settings
backup ( ) : boolean Individual Database Backup Engine implementations must include a backup method at a minimum.
get_charset ( ) : string Get the database charset setting.
get_collate ( ) : string Get the database collate setting.
get_host ( ) : string Get the database hostname.
get_name ( ) : string Get the database name.
get_password ( ) : string Get the database password.
get_port ( ) : integer Get the database port.
get_socket ( ) : string Get the database socket.
get_user ( ) : string Get the database user.
parse_db_host_constant ( string $constant = 'DB_HOST' ) Parse the DB_HOST constant.
verify_backup ( ) : boolean Verify that the database backup was successful.

메소드 상세

__construct() 공개 메소드

Child classes must call parent::__construct in their own constructor.
public __construct ( )

backup() 추상적인 공개 메소드

Individual Database Backup Engine implementations must include a backup method at a minimum.
abstract public backup ( ) : boolean
리턴 boolean Whether the backup completed successfully or not.

get_charset() 공개 메소드

Get the database charset setting.
public get_charset ( ) : string
리턴 string The database charset.

get_collate() 공개 메소드

Get the database collate setting.
public get_collate ( ) : string
리턴 string The database collage setting.

get_host() 공개 메소드

Get the database hostname.
public get_host ( ) : string
리턴 string The database hostname.

get_name() 공개 메소드

Get the database name.
public get_name ( ) : string
리턴 string The database name.

get_password() 공개 메소드

Get the database password.
public get_password ( ) : string
리턴 string The database password.

get_port() 공개 메소드

Get the database port.
public get_port ( ) : integer
리턴 integer The database port.

get_socket() 공개 메소드

Get the database socket.
public get_socket ( ) : string
리턴 string The database socket.

get_user() 공개 메소드

Get the database user.
public get_user ( ) : string
리턴 string The database user.

parse_db_host_constant() 공개 메소드

The DB_HOST constant potentially contains the hostname, port or socket. We need to parse it to figure out the type of mysql connection to make.
public parse_db_host_constant ( string $constant = 'DB_HOST' )
$constant string The Constant to parse. If the string isn't a defined Constant then it will be parsed directly.

verify_backup() 공개 메소드

It's important this function is performant as it's called after every backup.
public verify_backup ( ) : boolean
리턴 boolean Whether the backup completed successfully

프로퍼티 상세

$backup_filename 공개적으로 프로퍼티

The filename for the resulting Backup
public string $backup_filename
리턴 string