You are here

function backup_migrate_schedule::update_last_run in Backup and Migrate 7.2

Same name and namespace in other branches
  1. 8.2 includes/schedules.inc \backup_migrate_schedule::update_last_run()
  2. 8.3 includes/schedules.inc \backup_migrate_schedule::update_last_run()
  3. 6.3 includes/schedules.inc \backup_migrate_schedule::update_last_run()
  4. 6.2 includes/schedules.inc \backup_migrate_schedule::update_last_run()
  5. 7.3 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::cron in includes/schedules.inc
Perform the cron action. Run the backup if enough time has elapsed.

File

includes/schedules.inc, line 354

Class

backup_migrate_schedule
A schedule class for crud operations.

Code

function update_last_run($timestamp = NULL) {
  if ($timestamp === NULL) {
    $timestamp = time();
  }
  variable_set('backup_migrate_schedule_last_run_' . $this
    ->get('id'), $timestamp);
}