本文整理匯總了PHP中backup_helper::clear_backup_dir方法的典型用法代碼示例。如果您正苦於以下問題:PHP backup_helper::clear_backup_dir方法的具體用法?PHP backup_helper::clear_backup_dir怎麽用?PHP backup_helper::clear_backup_dir使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類backup_helper
的用法示例。
在下文中一共展示了backup_helper::clear_backup_dir方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: define_execution
protected function define_execution() {
$progress = $this->task->get_progress();
$progress->start_progress('Deleting backup directories');
backup_helper::check_and_create_backup_dir($this->get_backupid());// Create backup temp dir
backup_helper::clear_backup_dir($this->get_backupid(), $progress); // Empty temp dir, just in case
backup_controller_dbops::drop_backup_ids_temp_table($this->get_backupid()); // Drop ids temp table
backup_controller_dbops::create_backup_ids_temp_table($this->get_backupid()); // Create ids temp table
$progress->end_progress();
}
示例2: define_execution
protected function define_execution()
{
backup_helper::check_and_create_backup_dir($this->get_backupid());
// Create backup temp dir
backup_helper::clear_backup_dir($this->get_backupid());
// Empty temp dir, just in case
backup_helper::delete_old_backup_dirs(time() - 4 * 60 * 60);
// Delete > 4 hours temp dirs
backup_controller_dbops::create_backup_ids_temp_table($this->get_backupid());
// Create ids temp table
}