function backup_migrate_profile::get_source in Backup and Migrate 6.2
Same name and namespace in other branches
- 8.2 includes/profiles.inc \backup_migrate_profile::get_source()
- 8.3 includes/profiles.inc \backup_migrate_profile::get_source()
- 6.3 includes/profiles.inc \backup_migrate_profile::get_source()
- 7.3 includes/profiles.inc \backup_migrate_profile::get_source()
- 7.2 includes/profiles.inc \backup_migrate_profile::get_source()
Get the source of the profile.
1 call to backup_migrate_profile::get_source()
- backup_migrate_profile::get_source_name in includes/
profiles.inc - Get the name of the source.
File
- includes/
profiles.inc, line 259
Class
- backup_migrate_profile
- A profile class for crud operations.
Code
function get_source() {
backup_migrate_include('destinations');
if (!empty($this->source_id) && (empty($this->source) || $this->source->destination_id !== $this->source_id)) {
$this->source = backup_migrate_get_destination($this->source_id);
}
return empty($this->source) ? NULL : $this->source;
}