function backup_migrate_profile::get_source in Backup and Migrate 6.3
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.2 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 272
Class
- backup_migrate_profile
- A profile class for crud operations.
Code
function get_source() {
backup_migrate_include('locations');
if (!empty($this->source_id) && (empty($this->source) || $this->source
->get_id() !== $this->source_id)) {
$this->source = backup_migrate_get_source($this->source_id);
}
return empty($this->source) ? NULL : $this->source;
}