You are here

static function hackedFileGroup::fromList in Hacked! 7.2

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

Return a new hackedFileGroup listing all files specified.

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

File

includes/hackedFileGroup.inc, line 36

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