/** * Read the configuration values for all the files with the provided file name in the Zibo file system structure * @param string $fileName name of the section file eg system.ini * @param array $values Array with the values which are already read * @return array Values array with the read configuration values added */ private function readIncludePaths($fileName, array $values) { $fileName = Zibo::DIRECTORY_CONFIG . File::DIRECTORY_SEPARATOR . $fileName; $files = array_reverse($this->browser->getFiles($fileName)); foreach ($files as $file) { $path = str_replace(File::DIRECTORY_SEPARATOR . $fileName, '', $file->getPath()); $this->parser->setVariables(array('path' => $path)); $values = $this->readFile($file, $values); $this->parser->setVariables(null); } return $values; }
/** * Get multiple files from the Zibo file system structure * @param string $file file name relative to the Zibo file system structure * @return array Array with File objects which have the provided name */ public function getFiles($file) { return $this->browser->getFiles($file); }