The ModelBackup class is a model helper that handles backing up records into a separate table before editing or deleting them. For example if a user needs deleting from the regular table but should exist in a user backup table somewhere.
if (AppLoader::includeExtension('helpers/', 'ModelBackup')) {
$this->appendHelper('backup', 'ModelBackup', array(
'BackupTable' => 'foo-deleted'
));
$this->initHelper('backup', array('backupSave'), array(
'Batch' => true,
'Fatal' => false
));
}
if (AppLoader::includeExtension('helpers/', 'ModelBackup')) {
$this->appendHelper('backup', 'ModelBackup', array(
'BackupTable' => 'foo-deleted'
));
$this->initHelper('backup', array('backupDelete'), array(
'Batch' => true,
'Fatal' => false
));
}