| 1 | <?php |
||
| 5 | class ThemeService { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var Theme |
||
| 9 | */ |
||
| 10 | private $theme; |
||
| 11 | |||
| 12 | /** @var string */ |
||
| 13 | private $defaultThemeDirectory; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * ThemeService constructor. |
||
| 17 | * |
||
| 18 | * @param string $themeName |
||
| 19 | * @param string $defaultThemeDirectory |
||
| 20 | */ |
||
| 21 | public function __construct($themeName = '', $defaultThemeDirectory = '') { |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $defaultThemeDirectory |
||
| 28 | */ |
||
| 29 | private function setDefaultThemeDirectory($defaultThemeDirectory = '') { |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $themeName |
||
| 39 | */ |
||
| 40 | private function createTheme($themeName = '') { |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $themeName |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | private function getThemeDirectory($themeName) { |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return bool |
||
| 62 | */ |
||
| 63 | private function defaultThemeExists() { |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return Theme |
||
| 73 | */ |
||
| 74 | public function getTheme() { |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @param string $appName |
||
| 80 | */ |
||
| 81 | public function setAppTheme($appName = '') { |
||
| 88 | } |
||
| 89 |