PHP Class HM\BackUpWordPress\Mysqldump_Database_Backup_Engine

Inheritance: extends Database_Backup_Engine
Afficher le fichier Open project: humanmade/backupwordpress

Méthodes publiques

Méthode 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 méthode

public __construct ( )

backup() public méthode

Perform the database backup.
public backup ( ) : boolean
Résultat boolean Whether the backup completed successfully or not.

get_mysql_connection_args() public méthode

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

get_mysqldump_executable_path() public méthode

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
Résultat string | false The path to the executable or false.