You are here

public function MigrateFileBase::__construct in Migrate 7.2

1 call to MigrateFileBase::__construct()
MigrateFile::__construct in plugins/destinations/file.inc
1 method overrides MigrateFileBase::__construct()
MigrateFile::__construct in plugins/destinations/file.inc

File

plugins/destinations/file.inc, line 69
Support for file entity as destination. Note that File Fields have their own destination in fields.inc

Class

MigrateFileBase

Code

public function __construct($arguments = array(), $default_file = NULL) {
  if (isset($arguments['preserve_files'])) {
    $this->preserveFiles = $arguments['preserve_files'];
  }
  if (isset($arguments['file_replace'])) {
    $this->fileReplace = $arguments['file_replace'];
  }
  if ($default_file) {
    $this->defaultFile = $default_file;
  }
  else {
    $this->defaultFile = new stdClass();
  }
}