1<?php 2 3namespace ComboStrap; 4 5/** 6 * A class that contains static method that returns known directory 7 * of the application 8 */ 9class DirectoryLayout 10{ 11 12 13 14 public static function getPluginInfoPath(): LocalPath 15 { 16 return self::getComboHome()->resolve("plugin.info.txt"); 17 } 18 19 public static function getConfLocalFilePath(): LocalPath 20 { 21 return self::getConfDirectory()->resolve('local.php'); 22 } 23 24 public static function getConfDirectory(): LocalPath{ 25 return LocalPath::createFromPathString(DOKU_CONF); 26 } 27 28 public static function getComboHome(): LocalPath 29 { 30 return LocalPath::createFromPathString(DOKU_PLUGIN . PluginUtility::PLUGIN_BASE_NAME); 31 } 32 33 public static function getComboImagesDirectory(): LocalPath 34 { 35 return self::getComboResourcesDirectory()->resolve("images"); 36 } 37 38 public static function getComboResourcesDirectory(): LocalPath 39 { 40 return DirectoryLayout::getComboHome()->resolve("resources"); 41 } 42 43 public static function getComboDictionaryDirectory(): LocalPath 44 { 45 return DirectoryLayout::getComboResourcesDirectory()->resolve("dictionary"); 46 } 47 48 49 50} 51