You are here

function hackedProject::file_get_location in Hacked! 8.2

File

src/hackedProject.php, line 364

Class

hackedProject
Encapsulates a Hacked! project.

Namespace

Drupal\hacked

Code

function file_get_location($storage = 'local', $file) {
  switch ($storage) {
    case 'remote':
      $this
        ->download_remote_project();
      return $this->remote_files
        ->file_get_location($file);
    case 'local':
      $this
        ->hash_local_project();
      return $this->local_files
        ->file_get_location($file);
  }
  return FALSE;
}