- Class name: PrestaShopBackupCore
- Source: classes/PrestaShopBackup.php line 27
- __construct
- add
- backupExist
- delete
- deleteSelection
- getBackupPath
- getBackupURL
- getRealBackupPath
- setCustomBackupPath
public string $backupDir = '/backups/'
- Visibility: public
- This property is static.
- Source: classes/PrestaShopBackup.php line 34.
public string $customBackupDir = null
- Visibility: public
- Source: classes/PrestaShopBackup.php line 36.
public string $error
- Visibility: public
- Source: classes/PrestaShopBackup.php line 32.
public integer $id
- Visibility: public
- Source: classes/PrestaShopBackup.php line 30.
public mixed $psBackupAll = true
- Visibility: public
- Source: classes/PrestaShopBackup.php line 38.
public mixed $psBackupDropTable = true
- Visibility: public
- Source: classes/PrestaShopBackup.php line 39.
mixed PrestaShopBackupCore::__construct(string $filename)
Creates a new backup object
- Visibility: public
- Source: classes/PrestaShopBackup.php line 46
- $filename string - Filename of the backup file
boolean PrestaShopBackupCore::add()
Creates a new backup file
- Visibility: public
- Source: classes/PrestaShopBackup.php line 187
boolean PrestaShopBackupCore::backupExist(string $filename)
Check if a backup file exist
- Visibility: public
- This method is static.
- Source: classes/PrestaShopBackup.php line 128
- $filename string - prefix of the backup file (datetime will be the second part)
boolean PrestaShopBackupCore::delete()
Delete the current backup file
- Visibility: public
- Source: classes/PrestaShopBackup.php line 152
boolean PrestaShopBackupCore::deleteSelection($list)
Deletes a range of backup files
- Visibility: public
- Source: classes/PrestaShopBackup.php line 168
- $list mixed
\The PrestaShopBackupCore::getBackupPath(string $filename)
Get the full path of the backup file
- Visibility: public
- This method is static.
- Source: classes/PrestaShopBackup.php line 103
- $filename string - prefix of the backup file (datetime will be the second part)
\The PrestaShopBackupCore::getBackupURL()
Get the URL used to retreive this backup file
- Visibility: public
- Source: classes/PrestaShopBackup.php line 142
string PrestaShopBackupCore::getRealBackupPath(string $filename)
get the path to use for backup (customBackupDir if specified, or default)
- Visibility: public
- Source: classes/PrestaShopBackup.php line 83
- $filename string - filename to use
boolean PrestaShopBackupCore::setCustomBackupPath(string $dir)
you can set a different path with that function
- Visibility: public
- Source: classes/PrestaShopBackup.php line 64
- $dir string