354fb9abbc374d7ac4503f607fe98165087d4d79
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / template / SetupTemplateEngine.class.php
1 <?php
2
3 namespace wcf\system\template;
4
5 /**
6 * Loads and displays template during the setup process.
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>
11 */
12 class SetupTemplateEngine extends TemplateEngine
13 {
14 /**
15 * @inheritDoc
16 */
17 protected function loadTemplateGroupCache()
18 {
19 // does nothing
20 }
21
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 }
45 }