You are here

public function backup_migrate_schedule::get_destinations in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.3 includes/schedules.inc \backup_migrate_schedule::get_destinations()
  2. 6.3 includes/schedules.inc \backup_migrate_schedule::get_destinations()

Get the destination object of the schedule.

3 calls to backup_migrate_schedule::get_destinations()
backup_migrate_schedule::get_destination in includes/schedules.inc
Get the destination object of the schedule.
backup_migrate_schedule::get_destination_name in includes/schedules.inc
Get the name of the destination.
backup_migrate_schedule::remove_expired_backups in includes/schedules.inc
Remove older backups keeping only the number specified by the aministrator.

File

includes/schedules.inc, line 236
All of the schedule handling code needed for Backup and Migrate.

Class

backup_migrate_schedule
A schedule class for crud operations.

Code

public function get_destinations() {
  require_once dirname(__FILE__) . '/destinations.inc';
  $out = array();
  foreach ($this
    ->get_destination_ids() as $id) {
    if ($dest = backup_migrate_get_destination($id)) {
      $out[$id] = $dest;
    }
  }
  return $out;
}