PHP Class HM\BackUpWordPress\Mysqldump_Database_Backup_Engine

Inheritance: extends Database_Backup_Engine
Show file Open project: humanmade/backupwordpress

Public Methods

Method Description
__construct ( )
backup ( ) : boolean Perform the database backup.
get_mysql_connection_args ( ) : string[] Get the connection args for the mysqldump command
get_mysqldump_executable_path ( ) : string | false Calculate the path to the mysqldump executable.

Method Details

__construct() public method

public __construct ( )

backup() public method

Perform the database backup.
public backup ( ) : boolean
return boolean Whether the backup completed successfully or not.

get_mysql_connection_args() public method

Get the connection args for the mysqldump command
public get_mysql_connection_args ( ) : string[]
return string[] The array of connection args

get_mysqldump_executable_path() public method

The executable path can be overridden using either the HMBKP_MYSQLDUMP_PATH Constant or the hmbkp_mysqldump_executable_path filter. If neither of those are set then we fallback to checking a number of common locations.
public get_mysqldump_executable_path ( ) : string | false
return string | false The path to the executable or false.