apps/gallery/lib/Service/ConfigService.php
/**
	 * Returns a parsed configuration if one was found in the current folder or generates an error
	 * message to send back
	 *
	 * @param Folder $folder the current folder
	 * @param string $configName name of the configuration file
	 * @param array $collectedConfig the configuration collected so far
	 * @param int $level the starting level is 0 and we add 1 each time we visit a parent folder
	 *
	 * @return array
	 */
Returns a parsed configuration if one was found in the current folder or generates an error
message to send back

@param Folder $folder the current folder
@param string $configName name of the configuration file
@param array $collectedConfig the configuration collected so far
@param int $level the starting level is 0 and we add 1 each time we visit a parent folder

@return array
Returns a parsed configuration if one was found in the current folder or generates an error message to send back @param Folder $folder the current folder @param string $configName name of the configuration file @param array $collectedConfig the configuration collected so far @param int $level the starting level is 0 and we add 1 each time we visit a parent folder @return array
private function buildFolderConfig($folder, $configName, $collectedConfig, $level) {
		try {
			list($collectedConfig, $completionStatus) = $this->configParser->getFolderConfig(
				$folder, $configName, $collectedConfig, $this->completionStatus, $level
			);
			$this->completionStatus = $completionStatus;
		} catch (ConfigException $exception) {
			$collectedConfig = $this->buildErrorMessage($exception, $folder);
		}
		return $collectedConfig;
	}
private function buildFolderConfig ( $ folder , $ configName , $ collectedConfig , $ level ) { try { list ( $ collectedConfig , $ completionStatus ) = $ this -> configParser -> getFolderConfig ( $ folder , $ configName , $ collectedConfig , $ this -> completionStatus , $ level ) ; $ this -> completionStatus = $ completionStatus ; } catch ( ConfigException $ exception ) { $ collectedConfig = $ this -> buildErrorMessage ( $ exception , $ folder ) ; } return $ collectedConfig ; }
Returns a parsed configuration if one was found in the current folder or generates an error
 message to send back
Returns a parsed configuration if one was found in the current folder or generates an error message to send back