function backup_migrate_schedule::get_profile in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.2 includes/schedules.inc \backup_migrate_schedule::get_profile()
- 8.3 includes/schedules.inc \backup_migrate_schedule::get_profile()
- 6.2 includes/schedules.inc \backup_migrate_schedule::get_profile()
- 7.3 includes/schedules.inc \backup_migrate_schedule::get_profile()
- 7.2 includes/schedules.inc \backup_migrate_schedule::get_profile()
Get the destination of the schedule.
3 calls to backup_migrate_schedule::get_profile()
- backup_migrate_schedule::get_profile_name in includes/
schedules.inc - Get the name of the source.
- backup_migrate_schedule::is_enabled in includes/
schedules.inc - Is the schedule enabled and valid.
- backup_migrate_schedule::run in includes/
schedules.inc - Run the actual schedule.
File
- includes/
schedules.inc, line 268 - All of the schedule handling code needed for Backup and Migrate.
Class
- backup_migrate_schedule
- A schedule class for crud operations.
Code
function get_profile() {
backup_migrate_include('profiles');
if ($settings = backup_migrate_get_profile($this
->get('profile_id'))) {
$settings->file_info = empty($settings->file_info) ? array() : $settings->file_info;
$settings->file_info += array(
'bam_scheduleid' => $this
->get_id(),
'bam_schedulename' => $this
->get('name'),
'bam_scheduletype' => $this
->get('cron'),
'bam_schedulefrequency' => $this
->get('cron') == BACKUP_MIGRATE_CRON_BUILTIN ? $this->period : '',
'bam_schedulefreqdesc' => $this
->get_frequency_description(),
);
}
return $settings;
}