You are here

public function backup_migrate_profile::get_source in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.2 includes/profiles.inc \backup_migrate_profile::get_source()
  2. 8.3 includes/profiles.inc \backup_migrate_profile::get_source()
  3. 6.3 includes/profiles.inc \backup_migrate_profile::get_source()
  4. 6.2 includes/profiles.inc \backup_migrate_profile::get_source()
  5. 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 298

Class

backup_migrate_profile
A profile class for crud operations.

Code

public function get_source() {
  require_once dirname(__FILE__) . '/locations.inc';
  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;
}