You are here

function backup_migrate_schedule::get_last_run in Backup and Migrate 8.2

Same name and namespace in other branches
  1. 8.3 includes/schedules.inc \backup_migrate_schedule::get_last_run()
  2. 6.3 includes/schedules.inc \backup_migrate_schedule::get_last_run()
  3. 6.2 includes/schedules.inc \backup_migrate_schedule::get_last_run()
  4. 7.3 includes/schedules.inc \backup_migrate_schedule::get_last_run()
  5. 7.2 includes/schedules.inc \backup_migrate_schedule::get_last_run()

Set the last run time of a schedule to the given timestamp, or now if none specified.

File

includes/schedules.inc, line 364

Class

backup_migrate_schedule
A schedule class for crud operations.

Code

function get_last_run($timestamp = NULL) {
  return variable_get('backup_migrate_schedule_last_run_' . $this
    ->get('id'), 0);
}