Merge branch '2.0'
[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
ca4ba303 8 * @copyright 2001-2014 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 /**
0ad90fc3 16 * @see \wcf\system\template\TemplateEngine::loadTemplateGroupCache()
158bd3ca 17 */
a17de04e
MS
18 protected function loadTemplateGroupCache() {
19 // does nothing
20 }
158bd3ca 21
5daa425d 22 /**
0ad90fc3 23 * @see \wcf\system\template\TemplateEngine::getCompiler()
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 /**
0ad90fc3 34 * @see \wcf\system\template\TemplateEngine::getSourceFilename()
158bd3ca 35 */
58fda665 36 public function getSourceFilename($templateName, $application) {
54fc3007 37 return $this->compileDir.'setup/template/'.$templateName.'.tpl';
158bd3ca
TD
38 }
39
40 /**
0ad90fc3 41 * @see \wcf\system\template\TemplateEngine::getCompiledFilename()
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 /**
0ad90fc3 48 * @see \wcf\system\template\TemplateEngine::getMetaDataFilename()
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}