PHP Класс HM\BackUpWordPress\Zip_File_Backup_Engine

Наследование: extends File_Backup_Engine
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( )
backup ( ) : boolean Perform the file backup.
get_exclude_string ( ) : string Convert the exclude rules to a format zip accepts
get_zip_executable_path ( ) : string | false Calculate the path to the zip executable.

Описание методов

__construct() публичный Метод

public __construct ( )

backup() публичный Метод

Perform the file backup.
public backup ( ) : boolean
Результат boolean Whether the backup completed successfully or not.

get_exclude_string() публичный Метод

Convert the exclude rules to a format zip accepts
public get_exclude_string ( ) : string
Результат string The exclude string ready to pass to `zip -x`

get_zip_executable_path() публичный Метод

The executable path can be overridden using either the HMBKP_ZIP_PATH Constant or the hmbkp_zip_executable_path filter. If neither of those are set then we fallback to checking a number of common locations.
public get_zip_executable_path ( ) : string | false
Результат string | false The path to the executable or false.