Commit | Line | Data |
---|---|---|
158bd3ca | 1 | <?php |
a9229942 | 2 | |
158bd3ca | 3 | namespace wcf\system\template; |
158bd3ca TD |
4 | |
5 | /** | |
a17de04e | 6 | * Loads and displays template during the setup process. |
a9229942 TD |
7 | * |
8 | * @author Alexander Ebert | |
9 | * @copyright 2001-2019 WoltLab GmbH | |
10 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | |
158bd3ca | 11 | */ |
a9229942 TD |
12 | class SetupTemplateEngine extends TemplateEngine |
13 | { | |
14 | /** | |
15 | * @inheritDoc | |
16 | */ | |
17 | protected function loadTemplateGroupCache() | |
18 | { | |
19 | // does nothing | |
20 | } | |
21 | ||
a9229942 TD |
22 | /** |
23 | * @inheritDoc | |
24 | */ | |
25 | public function getSourceFilename($templateName, $application) | |
26 | { | |
27 | return $this->compileDir . 'setup/template/' . $templateName . '.tpl'; | |
28 | } | |
29 | ||
30 | /** | |
31 | * @inheritDoc | |
32 | */ | |
33 | public function getCompiledFilename($templateName, $application) | |
34 | { | |
35 | return $this->compileDir . 'setup/template/compiled/' . $this->languageID . '_' . $templateName . '.php'; | |
36 | } | |
37 | ||
38 | /** | |
39 | * @inheritDoc | |
40 | */ | |
41 | public function getMetaDataFilename($templateName) | |
42 | { | |
43 | return $this->compileDir . 'setup/template/compiled/' . $this->languageID . '_' . $templateName . '.meta.php'; | |
44 | } | |
dcb3a44c | 45 | } |