You are here

function hackedProject::file_get_location in Hacked! 6.2

Same name and namespace in other branches
  1. 7.2 includes/hackedProject.inc \hackedProject::file_get_location()

File

includes/hacked_project.inc, line 308

Class

hackedProject
Ensapsulates a Hacked! project.

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;
}