toolkit->getFileLocator($paths, $files_group); return $locator->locate($name); } function getFileLocator($path, $files_group) { if(isset($this->file_locators[$path][$files_group])) return $this->file_locators[$path][$files_group]; $file_locations = new lmbIncludePathFileLocations(explode(';', $path)); if(defined('LIMB_VAR_DIR')) $locator = new lmbCachingFileLocator(new lmbFileLocator($file_locations), LIMB_VAR_DIR . '/locators/', $files_group); else $locator = new lmbFileLocator($file_locations); $this->file_locators[$path][$files_group] = $locator; return $locator; } } ?>