public function getAll($searchPattern)
{
$files = glob($searchPattern);
foreach (glob(dirname($searchPattern) . '/*', GLOB_ONLYDIR) as $dir) {
$files = array_merge($files, $this->getAll($dir . '/' . basename($searchPattern)));
}
return $files;
}