1: <?php
2:
3: 4: 5: 6: 7: 8:
9:
10: namespace XSLTBenchmarking\TestsGenerator;
11:
12: require_once LIBS . '/PhpPath/PhpPath.min.php';
13: require_once ROOT . '/TestsGenerator/XmlGenerator/ToxgeneXmlGeneratorDriver.php';
14: require_once __DIR__ . '/ITemplatingDriver.php';
15: require_once ROOT . '/Exceptions.php';
16:
17:
18: use PhpPath\P;
19:
20: 21: 22: 23: 24:
25: class ToxgeneTemplatingDriver extends ToxgeneXmlGeneratorDriver implements ITemplatingDriver
26: {
27:
28:
29: 30: 31: 32: 33:
34: public function __construct($tmpDirectory)
35: {
36: parent::__construct($tmpDirectory);
37: }
38:
39:
40: 41: 42: 43: 44: 45: 46: 47: 48: 49:
50: public function generate($templatePath, $outputPath, array $settings = array())
51: {
52: $pathinfo = pathinfo($templatePath);
53: $templateDir = $pathinfo['dirname'];
54: $settings['template'] = $pathinfo['basename'];
55: parent::generate($outputPath, $templateDir, $settings);
56: }
57:
58:
59: }
60: