You are here

static function hackedFileGroup::fromList in Hacked! 6.2

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

Return a new hackedFileGroup listing all files specified.

1 call to hackedFileGroup::fromList()
hackedProject::hash_local_project in includes/hacked_project.inc
Hash the local version of the project.

File

includes/hacked_project.inc, line 631

Class

hackedFileGroup
Represents a group of files on the local filesystem.

Code

static function fromList($path, $files) {
  $filegroup = new hackedFileGroup($path);

  // Find all the files in the path, and add them to the file group.
  $filegroup->files = $files;
  return $filegroup;
}