Skip to content

Latest commit

 

History

History
295 lines (141 loc) · 5.77 KB

class.PrestaShopBackupCore.md

File metadata and controls

295 lines (141 loc) · 5.77 KB

Class PrestaShopBackupCore

Contents

Properties

Methods

Properties

$backupDir

public string $backupDir = '/backups/'

$customBackupDir

public string $customBackupDir = null

$error

public string $error

$id

public integer $id

$psBackupAll

public mixed $psBackupAll = true

$psBackupDropTable

public mixed $psBackupDropTable = true

Methods

__construct

mixed PrestaShopBackupCore::__construct(string $filename)

Creates a new backup object

Arguments

  • $filename string - Filename of the backup file

add

boolean PrestaShopBackupCore::add()

Creates a new backup file

backupExist

boolean PrestaShopBackupCore::backupExist(string $filename)

Check if a backup file exist

Arguments

  • $filename string - prefix of the backup file (datetime will be the second part)

delete

boolean PrestaShopBackupCore::delete()

Delete the current backup file

deleteSelection

boolean PrestaShopBackupCore::deleteSelection($list)

Deletes a range of backup files

Arguments

  • $list mixed

getBackupPath

string PrestaShopBackupCore::getBackupPath(string $filename)

Get the full path of the backup file

Arguments

  • $filename string - prefix of the backup file (datetime will be the second part)

getBackupURL

string PrestaShopBackupCore::getBackupURL()

Get the URL used to retrieve this backup file

getRealBackupPath

string PrestaShopBackupCore::getRealBackupPath(string $filename)

get the path to use for backup (customBackupDir if specified, or default)

Arguments

  • $filename string - filename to use

setCustomBackupPath

boolean PrestaShopBackupCore::setCustomBackupPath(string $dir)

you can set a different path with that function

Arguments

  • $dir string