Fix warnings about unused local variables
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / template / SetupTemplateEngine.class.php
CommitLineData
158bd3ca
TD
1<?php
2namespace wcf\system\template;
158bd3ca
TD
3
4/**
a17de04e
MS
5 * Loads and displays template during the setup process.
6 *
9f959ced 7 * @author Alexander Ebert
7d739af0 8 * @copyright 2001-2016 WoltLab GmbH
158bd3ca
TD
9 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
10 * @package com.woltlab.wcf
11 * @subpackage system.template
9f959ced 12 * @category Community Framework
158bd3ca
TD
13 */
14class SetupTemplateEngine extends TemplateEngine {
15 /**
0fcfe5f6 16 * @inheritDoc
158bd3ca 17 */
a17de04e
MS
18 protected function loadTemplateGroupCache() {
19 // does nothing
20 }
158bd3ca 21
5daa425d 22 /**
0fcfe5f6 23 * @inheritDoc
5daa425d
AE
24 */
25 public function getCompiler() {
26 if ($this->compilerObj === null) {
27 $this->compilerObj = new SetupTemplateCompiler($this);
28 }
e3369fd2 29
5daa425d
AE
30 return $this->compilerObj;
31 }
32
158bd3ca 33 /**
0fcfe5f6 34 * @inheritDoc
158bd3ca 35 */
58fda665 36 public function getSourceFilename($templateName, $application) {
54fc3007 37 return $this->compileDir.'setup/template/'.$templateName.'.tpl';
158bd3ca
TD
38 }
39
40 /**
0fcfe5f6 41 * @inheritDoc
158bd3ca 42 */
5813c40b 43 public function getCompiledFilename($templateName, $application) {
158bd3ca
TD
44 return $this->compileDir.'setup/template/compiled/'.$this->languageID.'_'.$templateName.'.php';
45 }
46
9698378d 47 /**
0fcfe5f6 48 * @inheritDoc
9698378d 49 */
3d8cfc08 50 public function getMetaDataFilename($templateName) {
9698378d
AE
51 return $this->compileDir.'setup/template/compiled/'.$this->languageID.'_'.$templateName.'.meta.php';
52 }
dcb3a44c 53}