3 namespace Friendica\Util\Config;
5 abstract class ConfigCacheManager
8 * The Sub directory of the config-files
11 const SUBDIRECTORY = 'config';
16 public function __construct($baseDir)
18 $this->baseDir = $baseDir;
19 $this->configDir = $baseDir . DIRECTORY_SEPARATOR . self::SUBDIRECTORY;
22 protected function getConfigFullName($name)
24 $fullName = $this->configDir . DIRECTORY_SEPARATOR . $name . '.config.php';
25 return file_exists($fullName) ? $fullName : '';
28 protected function getIniFullName($name)
30 $fullName = $this->configDir . DIRECTORY_SEPARATOR . $name . '.ini.php';
31 return file_exists($fullName) ? $fullName : '';
34 protected function getHtConfigFullName($name)
36 $fullName = $this->baseDir . DIRECTORY_SEPARATOR . '.' . $name . '.php';
37 return file_exists($fullName) ? $fullName : '';