public function backup_migrate_schedule::update_last_run in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/schedules.inc \backup_migrate_schedule::update_last_run()
- 8.3 includes/schedules.inc \backup_migrate_schedule::update_last_run()
- 6.3 includes/schedules.inc \backup_migrate_schedule::update_last_run()
- 6.2 includes/schedules.inc \backup_migrate_schedule::update_last_run()
- 7.2 includes/schedules.inc \backup_migrate_schedule::update_last_run()
Set the last run time of a schedule to the given timestamp, or now if none specified.
1 call to backup_migrate_schedule::update_last_run()
- backup_migrate_schedule::run in includes/
schedules.inc - Run the actual schedule.
File
- includes/
schedules.inc, line 706 - All of the schedule handling code needed for Backup and Migrate.
Class
- backup_migrate_schedule
- A schedule class for crud operations.
Code
public function update_last_run($timestamp = NULL) {
if ($timestamp === NULL) {
$timestamp = time();
}
variable_set('backup_migrate_schedule_last_run_' . $this
->get('id'), $timestamp);
}